Re: [Nagios-devel] Re: Suggestion for service macro

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Re: Suggestion for service macro

Post by Guest »

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 [email protected]
OP5 AB www.op5.se
Lead Developer





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked