Simulating downtime in nagios
Tom Throckmorton
throck at gmail.com
Tue Oct 7 04:17:08 CEST 2008
On Oct 06 18:57, Kelly Jones wrote:
> Thanks, Tom.
>
> Yes, I'm trying to simulate a host/service outage, not scheduled downtime.
>
> The problem w/ submitting a passive check is that the next ACTIVE check will
> invalidate it. Example: you tell nagios that machine foo is down. That's soft
> alert 1, not enough to generate any emails. Nagios then active checks foo and
> sees that it's up. Of course, you can submit another passive check, but
> you'll ping-pong (flap) between up and down states.
OK, so it sounds like you want to be able to have Nagios temporarily stop
managing the service check scheduling for this service, long enough for you to
inject some bogus results. Seems like rescheduling the next active check
(SCHEDULE_FORCED_SVC_CHECK) would do the right thing as far as pushing the next
scheduled check into the future. Or maybe you want to disable active checks
for the service (DISABLE_SVC_CHECK), run your simulation, and then re-enable
them...?
-tt
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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