Re: check_nagios plugin

Jim Welch <jim.welch-r3/[email protected]> Thu, 18 Dec 2014 19:00:06 -0500
Newsgroups gmane.network.nagios.plugins
Message-ID <54936A86.4040804__45924.5238955647$1418947237$gmane$org@oit.gatech.edu>
| From the plugin page:  "This plugin checks the status of the Nagios process on the local machine"

If you want to check a remote machine, I'm guessing you will have to run this via ssh, nrpe, or
some such mechanism.|



On 12/18/2014 11:06 AM, Ditmar Tavares wrote:
>
> I’m new to Linux and also to Nagios monitoring, so it may be something 
> that I’m missing.
>
> I setup a second Nagios server so I can monitor my primary Nagios 
> server, basically if the primary Nagios stop monitoring I would like 
> to know via the secondary Nagios.
>
> Issue is that I setup the check_nagios plugin and its giving me the 
> status of the Nagios process of the primary server, but when I shutoff 
> the Nagios process on the primary server (for testing), I am NOT 
> getting any notification from the secondary server that something is 
> wrong with the primary, and its also keeps telling me the process on 
> the primary servers is OK.
>
> Could you please assist ? thank you in advance.
>
> See my host service definition below.
>
> define service {
>
>         use generic-service
>
>         host_name ClearMon02
>
>         service_description Nagios
>
>         check_command check_nagios
>
>         notifications_enabled           1
>
>           }
>
> My command definition is below
>
> define command{
>
>         command_name    check_nagios
>
>         command_line $USER1$/check_nagios -F 
> /usr/local/nagios/var/status.dat -e 1 -t  15 -C 
> /usr/local/nagios/bin/nagios
>
>         }
>
>
> ______________________________________________________________________
> This email has been scanned by the Symantec Email Security.cloud service.