Ton,
That didn't seem to work.
To sum it up I just updated line #1331 of nagconfgen.pl
FROM
if ( $contact->mobile ) {
TO
if ( $contact->use_mobile && $contact->mobile ) {
Created a dummy host and have 3 contacts, one starts to notify at notification
1, one at notification 2, one at notification 3.
Since alerts are being generated from the master I am assuming I should be
looking at the contact definitions.
Interesting enough I do see notification level defined in the nagios
contacts.cfg for my masterprofile contacts so I'm not sure why it isn't working.
Where should I be looking to understand why notification level isn't being
recognized?
Here is an example of one of the nagios contact definition...
# 'jwhit3_hotmail.com' contact definition
define contact {
contact_name whittinj-hotmail-test/masterprofile
alias jwhit3_hotmail.com
use global-contact
service_notification_period workhours
host_notification_period workhours
notification_level 2
contactgroups
hostgroup2_servicegroup19/masterprofile,hostgroup2_servicegroup1/masterprofile,hostgroup2_servicegroup8/masterprofile,hostgroup2_servicegroup7/masterprofile,hostgroup2_servi
cegroup18/masterprofile,hostgroup11_servicegroup4/masterprofile,hostgroup100_servicegroup9/masterprofile,hostgroup100_servicegroup20/masterprofile
pager name:brief
host_notification_commands notify-by-master-email-notify
host_notification_options d,r
service_notification_commands notify-by-master-email-notify
service_notification_options c,r
}
From: [email protected]
[mailto:[email protected]] On Behalf Of Ton Voon
Sent: Friday, March 05, 2010 3:46 AM
To: Opsview Users
Subject: Re: [opsview-users] Bug in Opsview Escalations using SMS method
On 4 Mar 2010, at 21:44, James Whittington wrote:
Not sure if James or Ton can chime in on this one but I have come across an
anomaly regarding escalations in Opsview 3.5.
I've seen escalations work before in Opsview because I still get escalated
notifications from and old customer system I helped with in the past.
Now that we are looking to implement escalations on our distributed system it
appears notifications are going out to all escalated contacts from the first
notification onward.
I suspect it may be an anomaly with the using the SMS notification method.
We use a custom SMS script that runs from the master server to send out
notifications.
Has anyone else seen issues with Escalations using the SMS notification method
initiated from the master server?
Henry had notified us of a bug re: SMS notifications. This happens when sms
notifications are defined to come from the master and the contact has an sms
number defined (maybe due to LDAP syncing) but their contact info says that sms
is disabled.
The patch is here:
https://secure.opsera.com/wsvn/wsvn/opsview?op=comp&compare[]=%2ftr...@3979&compare[]=%2ftr...@3981
Do a reload afterwards.
Let us know if you still have a problem after that.
Ton
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users