Hostnames and regex
Niall O Broin
niall at makalumedia.com
Thu Apr 9 15:14:44 CEST 2009
On 9 Apr 2009, at 13:14, Marc Powell wrote:
>
> 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
Sounds perfect Marc - but yet with this in the config
define service{
use generic-service
host_name host*,!host17
service_description Total Processes
check_command snmp_procs!120!150
}
I get this error
Reading configuration data...
Error: Could not find any host matching '!host17' (config file '/etc/
nagios3/conf.d/MM-snmp-checks.cfg', starting on line 43)
Error: Could not expand hostgroups and/or hosts specified in service
(config file '/etc/nagios3/conf.d/MM-snmp-checks.cfg', starting on
line 43)
Any more ideas?
Kindest regards,
Niall O Broin
------------------------------------------------------------------------------
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