hostgroup expansion and regex
Terry
td3201 at gmail.com
Mon Aug 31 02:15:09 CEST 2009
On Sun, Aug 30, 2009 at 8:48 AM, Jim Avery<jim at jimavery.me.uk> wrote:
> 2009/8/29 Terry <td3201 at gmail.com>:
>
>>
>> I tried .* with regex and true_regex but I clearly didnt try * without
>> enable_regex. Thanks for helping!
>>
>
> I confess I don't use regular expressions myself, so I'm sorry I don't
> know why ".*" didn't work. Maybe "^.*$" would have done. I really
> must set myself up a test nagios system at home again so I can test
> these things out before offering dodgy advice! I'm glad at least one
> suggestion did the trick anyway.
>
> Cheers,
>
> Jim
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> 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
>
Your suggestion worked but I am having another, related problem:
define hostgroup {
hostgroup_name z-allhosts
alias z-allhosts
members *
}
define serviceescalation{
hostgroup_name z-allhosts
service_description *
contact_groups ms
first_notification 3
last_notification 0
notification_interval 30
escalation_options w,u,c,r
}
The hostgroup alone works fine but the serviceescalation gives this error:
Error: Could not expand services specified in service escalation
(config file '/etc/nagios/objects/serviceescalations.cfg', starting on
line 1)
I can replace z-allhosts with the windows host group (below) and it
checks out fine. So it appears to be a wildcarded hostgroup that's
the problem. Any thoughts?
define hostgroup {
hostgroup_name windows
alias windows
}
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
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