Service checks on hosts which are not up 24x7

Hugo van der Kooij hvdkooij at vanderkooij.org
Sat Jan 26 11:18:37 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Patrick Morris wrote:
| On Sat, 26 Jan 2008, Jan Kohnert wrote:
|
|> Hello all,
|>
|> I'm monitoring my small private net using nagios and it works well.
But I have
|> a (hopefully simply to answer) question:
|>
|> Some of the hosts are workstations which may go down at some time due to
|> energy saving reasons. I want the services, which I monitor on those
hosts to
|> change their status to 'unknown' instead of 'critical' if those hosts are
|> down.
|>
|> Something like:
|> if $host up:
|>         check services and report errors
|> else:
|>         don't check and give 'unknown' status
|>
|> I'm sure this must be possible using service-dependencies but I'm not
sure how
|> to do this. Could somebody please give me a hint where to look in the
|> documentation or how this could be managable?
|>
|> If you need detailed configuration items, please let me know.
|
| Whether a service is critical, unknown or otherwise depends on how the
| plugin is implemented, and there's no global setting you can use to make
| them behave the way you're looking for.  Service dependencies also won't
| help, since all they do is determine whether or not to check or notify
| on a service based on the state of another service, but have no effect
| on the return value of the plugins.

I beg to differ.

If you setup dependencies correctly you should get close to the
requested results. Say you ping them every minute and make sure that the
ping service goes into hard state at the third failure it will just fail
that service.

Make all other service dependent on that and make sure they do not reach
hard state before ping does.

Now only ping will be able to bother you an if you choose not to notify
on that you should have no notifications when these machines are
switched off.

Why you bother to monitor machines like this in the first place is quite
another question. They obviously are not critical.

Hugo.

- --
hvdkooij at vanderkooij.org               http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc

	A: Yes.
	>Q: Are you sure?
	>>A: Because it reverses the logical flow of conversation.
	>>>Q: Why is top posting frowned upon?

Bored? Click on http://spamornot.org/ and rate those images.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHmwj7BvzDRVjxmYERAtG1AJ4tkHR3BndWByqb5DUJSPhn/IQarACeMAR5
cc8jJgi7BePpU7FcOVntWms=
=fGcm
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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