Notification sent out for contact groups but not for contact

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gregwhite
Posts: 206
Joined: Wed Jun 01, 2011 12:40 pm

Notification sent out for contact groups but not for contact

Post by gregwhite »

Our Citrix servers are put in scheduled downtime on Saturday and Sunday from 3am to 6am while they are rebooted. On the weekend of March 16th and 23rd, when these systems came out of downtime, the ones that were still down sent notification to 2 contact groups and a single contact. This past weekend, when the servers came out of downtime, those that were still down notifications went out to the 2 contact groups but no notification went out for the contact.

Thanks,
Greg
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Notification sent out for contact groups but not for con

Post by npolovenko »

Hello, @gregwhite. Could you upload pdf reports(state history and notification report) for the servers that went down, for the March 16th and 23rd? That way we can compare them and see if there were any differences between how they went into critical states&downtime.
What version of XI are you running?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
gregwhite
Posts: 206
Joined: Wed Jun 01, 2011 12:40 pm

Re: Notification sent out for contact groups but not for con

Post by gregwhite »

I have uploaded 2 notification files and 2 state history files. They show one of the devices that did not send a notification to the contact. The notification file with extension 324 is the one that worked and the file with 331 didn't. It sent out email to the notification groups but the contact - DL-Atrius_Citrix_level1 didn't. When you look at notifications for 324 you will see DL-Atrius_Citrix_level1. Also there are two state history reports 324 and 331.
We are running Nagios 5.4.12

Thanks,
Greg
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Notification sent out for contact groups but not for con

Post by ssax »

Please PM me a copy of your profile as well, you can download it from Admin > System Profile > Download Profile.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Notification sent out for contact groups but not for con

Post by ssax »

Looks like your timeperiod doesn't have anything defined for that contact:

Code: Select all

define timeperiod {
	timeperiod_name	DL-Atrius_Citrix_level1_notification_times
	alias	Notification Times for DL-Atrius_Citrix_level1
	}
Please run these commands and see if the issue is now resolved:

Please go to Configure > Core Config Manager > Tools > Config File Management:
- Click the Delete Files button (don't worry, it's safe, they will be rewritten)
- Then click the Write Configs button
- Once the files are done being written, (don't apply config), look at this file and see if the timeperiod still is empty:

Code: Select all

/usr/local/nagios/etc/timeperiods.cfg
If it IS still empty, run these commands (as root) and it should resolve the issue:

Code: Select all

cat << EOF > /usr/local/nagios/etc/import/timeperiods.cfg
define timeperiod {
    timeperiod_name  DL-Atrius_Citrix_level1_notification_times
    alias            Notification Times for DL-Atrius_Citrix_level1
    saturday         00:00-24:00
    friday           00:00-24:00
    thursday         00:00-24:00
    wednesday        00:00-24:00
    tuesday          00:00-24:00
    monday           00:00-24:00
    sunday           00:00-24:00
}
EOF
/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
Let us know the results.
gregwhite
Posts: 206
Joined: Wed Jun 01, 2011 12:40 pm

Re: Notification sent out for contact groups but not for con

Post by gregwhite »

Great!!! We have the timeperiods added back in. Any thoughts what may have caused them to disappear? They must have been there the prior two weeks because notifications did go out. They were the only group that were affected.

Thanks,
Greg
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Notification sent out for contact groups but not for con

Post by ssax »

It was only that single timeperiod so it was likely modified by someone, you could check CCM > CCM Admin > Audit log to see if it's listed.
gregwhite
Posts: 206
Joined: Wed Jun 01, 2011 12:40 pm

Re: Notification sent out for contact groups but not for con

Post by gregwhite »

Thanks. CCM audit log only had today's events so I looked at NagiosXI audit log. I did see where someone did delete a couple of time periods. But the log doesn't say which one got deleted. I know he was in there doing some cleanup of old accounts. It would be nice to have the audit log contain more detail.
It makes sense though that was probably what happened.
Thanks for your help and the resolution!!
Greg
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Notification sent out for contact groups but not for con

Post by lmiltchev »

It would be nice to have the audit log contain more detail.
Just to give you the heads up - the audit log in Nagios XI 5.6.0 will contain a lot more detailed information, practically about all actions performed under the CCM.
Thanks for your help and the resolution!!
I am glad your issue has been resolved! Let us know if it is OK to close this topic. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked