getting warnings for connection refused with check_nrpe instead of critical

Marc Powell marc at ena.com
Thu Feb 26 20:18:16 CET 2009


On Feb 26, 2009, at 1:02 PM, Klaus Umbach wrote:

> Most of time I know the cause, but it is not solvable in a cheap  
> way :-)
> The relevant services are still working, but if the monitored values  
> pass
> the thresholds, I want to know it, not if connection fails.

Edit check_nrpe.c; look for

void alarm_handler(int sig){

         printf("CHECK_NRPE: Socket timeout after %d seconds. 
\n",socket_timeout);

         exit(STATE_CRITICAL);
         }


change STATE_CRITICAL to whatever state you think it should be and  
recompile.

--
Marc


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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