Friday, 19th April 2024

Comment posted How to check Host is up with Nagios for servers with disabled ICMP (ping) protocol by .

Recent comments by

Share this on:

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

No Responses to “…”

  1. Faiz says:
    Firefox 12.0 Firefox 12.0 Windows 7 x64 Edition Windows 7 x64 Edition
    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0

    Hi,
    Do you have any idea how to do this on multiple host let say for 100 hosts? Do I have to do it manually 1-by-1?

    View CommentView Comment
    • admin says:
      Opera 11.00 Opera 11.00 GNU/Linux x64 GNU/Linux x64
      Opera/9.80 (X11; Linux x86_64; U; bg) Presto/2.7.62 Version/11.00

      Hi,

      Maybe you can check what kind of config is generated while clicked on to one of the unreachable hosts?
      Those conf might contain something concerning the disabled host you might take and later use some shell script to generate same config variables and place them in config?

      View CommentView Comment
      • Faiz says:
        Firefox 12.0 Firefox 12.0 Windows 7 x64 Edition Windows 7 x64 Edition
        Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0

        Hi,

        Thanks for your advice. I managed to do this by putting these host into one hostgroup and then I’ve assigned host check to that hostgroup to active check it using check_tcp on port 443 (I use SSL). In this way you can do it for a larger deployment and the same time get the benefit of active check.

        View CommentView Comment
  2. Rodrigo Oleriano says:
    Google Chrome 20.0.1132.57 Google Chrome 20.0.1132.57 Windows 7 x64 Edition Windows 7 x64 Edition
    Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11

    Falai ai galera!!!!

    Define a dummy service for SUCCESS

    # Dummy SUCCESS command, used for host we no means of checking
    define command{
    command_name SUCCESS
    command_line $USER1$/check_dummy 0
    }

    Then in your host definition, use

    check_command SUCCESS

    The host will then be presumed to be up, so the service will be checked.

    Simples like that!!!! Simples assim!!! Sou fã do nagios!!

    View CommentView Comment