NRPE and $SERVICESTATE$

Marc Powell marc at ena.com
Thu Mar 23 16:10:20 CET 2006



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Jean Frontin
> Sent: Thursday, March 23, 2006 2:21 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] NRPE and $SERVICESTATE$
> 
> Hello,
> 
> I run nagios 2.0 and nrpe 2.4.
> 
> How may I do to modify the $SERVICESTATE$ value resulting from a
request
> of
> nagios ?
> 
> I run chekc_nrpe to query nrpe on an host and I need to modify, seeing
> results of running nrpe, $SERVICESTATE$ to obtain a notification alarm

The service state is set by the plugin that is being executed by NRPE
via the plugin's exit code. NRPE simply passes that code back to nagios
unmodified. See
http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN75 for
the proper plugin exit codes for each state.

--
Marc


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
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