check_nagios plugin

Jim Welch jim.welch at oit.gatech.edu
Fri Dec 19 01:00:06 CET 2014


| 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20141218/cf33a504/attachment.html>


More information about the Help mailing list