Hostnames and regex
Marc Powell
marc at ena.com
Thu Apr 9 14:14:57 CEST 2009
On Apr 8, 2009, at 6:05 PM, Niall O Broin wrote:
> Is there a way of doing what I want, apart from the obvious one of
> renaming the hosts which I don't want to match the regex?
Yes, I expect the following will work. http://nagios.sourceforge.net/docs/3_0/objecttricks.html#service
--
define service{
use generic-service
host_name host*, !hostNN
service_description Total Processes
check_command snmp_procs!120!150
define service{
use generic-service
host_name hostNN
service_description Total Processes
check_command snmp_procs!200!250
--
Marc
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
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