usage of check_nrpe

Marc Powell marc at ena.com
Wed Jun 3 23:42:59 CEST 2009


On Jun 3, 2009, at 2:46 PM, Anirudh Srinivasan wrote:

> I am using NRPE plugins to monitor the remote linux server.
>
> Here is my question :

>
> There are two queries  one is "DEAD" and the other is "error" in my  
> nrpe.cfg file
> command[check_log]=/usr/lib/nagios/plugins/check_log -F /var/log/ 
> messages -O /var/log/check_log.messages.error -q 'DEAD'
> command[check_log]=/usr/lib/nagios/plugins/check_log -F /var/log/ 
> messages -O /var/log/check_log.messages.error -q 'error'
>
> Will this check both the queries  DEAD and error and show on the web  
> interface or will this check only the query "DEAD". I would like to  
> check both the query .

It will check only one. You need to define unique command[names] for  
each check and specify unique service{} definitions for each. If you  
specify duplicate in nrpe.cfg, by testing I see that only the last  
defined command is executed.

--
Marc


------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list