per-host notification command

Hugo van der Kooij hvdkooij at vanderkooij.org
Mon Jul 10 23:19:47 CEST 2006


On Mon, 10 Jul 2006, Francois Caen wrote:

> Sorry if this is a dumb question, can't figure out a clean way to do
> what I want.
>
> I want to be notified by email for the services on hostA and by pager
> for the services on hostB.
>
> I can see how to define notification methods on a per-contact basis. I
> don't see how to do it per-host.
>
> I could cheat/kludge and create 2 contacts for myself, one for pager
> and one for email. Is there a better way??

If you have serious numbers you might want to use 2 hostgroups for this
and rewrite a wrapper script.

Any contact in the email hostgroup gets it by email. Anyone in the pager
hostgroup ......

Well I leave it to you to connect the dots and drwa your own picture to
fit your needs.

Hugo.

-- 
	I hate duplicates. Just reply to the relevant mailinglist.
	hvdkooij at vanderkooij.org		http://hvdkooij.xs4all.nl/
		Don't meddle in the affairs of magicians,
		for they are subtle and quick to anger.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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