Suggestion for service macro

Andreas Ericsson ae at op5.se
Fri Apr 1 09:42:59 CEST 2005


Leonardo Henrique Machado wrote:
> The reason for this question is that I need to force some hosts back
> to pending state.
> What is the number that represents a PENDING state?
> 

There is none. PENDING is what you get when Nagios hasn't checked it. If 
you want that to happen you need to delete the retention data for those 
objects (usually status.sav or nagios.sav or something similar).

> ---Documentation----------
> passivechecks.html: return_code (0=OK, 1=WARNING, 2=CRITICAL, 3=UNKNOWN)
> -----------------------
> 
> Again, no PENDING here...
> 

That's because you can't tell nagios (in a check-result) that it hasn't 
checked the service yet.

As for your previous question;
Originally, the $SERVICESTATE$ macros were only used in notifications. 
No notifications were (are, actually) ever sent on PENDING states. The 
$LASTSERVICESTATE$ could possibly contain it though, but I'm not so sure 
whether this is a good idea or not.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/Info/Sentarus/hamr30




More information about the Developers mailing list