Page 1 of 2
Nagios XI 2009R1.1H - Sending Notifications
Posted: Mon Apr 26, 2010 5:32 pm
by natedmac
Hello,
I am evaluating a copy of Nagios XI 2009R1.1H for use for our production monitoring system. I have used nagios in the past but have never setup a full blow configuration and thus going with XI. However the problem I am having is that I cannot for the life of me get it to send notification that a service/host is down. It will notify on flap, and recovery.
I have gone in and created a new user, went in and added it to the nagios admin group. I have ensured notification was enabled. Everything is checked so it will alert for everything. I have tried several email accounts, and user accounts in nagios. Nothing has seemed to resolve the issue.
I know notifications are working since I can receive the recovery notice or the flapstate notice, but just the down is failing and test emails. Any suggestions would be helpful.
Thanks
Nate
Re: Nagios XI 2009R1.1H - Sending Notifications
Posted: Tue Apr 27, 2010 10:01 am
by natedmac
Well there is an update to what is happening here. If the server is rebooted the mail gets sent immediately upon reboot. Or it seems to send an hour or 2 later.
Re: Nagios XI 2009R1.1H - Sending Notifications
Posted: Tue Apr 27, 2010 11:18 am
by mmestnik
Click on your name just left of "Logged in as:" -> "Notification Preferences" on left nav bar. read under
Notification Types. The other screens under Notification Options may be of use to you.
In the Core Config Manager, Contact Groups unlike other types of groups like host groups don't carry any configuration with then. That is you can apply services to a host group, but you don't/can't apply notification options to a contact group.
Do this: Under the contact in misc settings change any "Additional templates" to be only "xi_contact_generic". For nagiosadmin this is a bug in 1.1H.
Re: Nagios XI 2009R1.1H - Sending Notifications
Posted: Tue Apr 27, 2010 1:21 pm
by natedmac
That was completed "Under the contact in misc settings change any "Additional templates" to be only "xi_contact_generic". For nagiosadmin this is a bug in 1.1H."
However still not sending notifications of a down host. Is there something else I should be looking at.
For testing purposes though I am going to re-deploy the VM and test it again from a scratch setup and make the contact config change before any hosts are configured to test with.
Thanks
Nate
Re: Nagios XI 2009R1.1H - Sending Notifications
Posted: Tue Apr 27, 2010 1:37 pm
by mmestnik
So you checked all the settings I pointed out, like the Notification Types in Nagios XI interface.
You said you were familiar with Nagios, have you checked the nagios config?
Service/Host options* on the contact?
Notification options on the Host/Service?
Do the Nagios logs report sending a notification?
Re: Nagios XI 2009R1.1H - Sending Notifications
Posted: Tue Apr 27, 2010 3:31 pm
by natedmac
Unsure on the logs I redeployed the VM with the things you suggested to ensure I had a clean config. I am now testing with what you had suggested. The one thing I want to ensure is that I do or dont need to change any of the Host command and Service command to have it alert by email.
Also so I am sure I did state this correctly all email is working except for down state. Everything for notifications was working fine. Config files looked ok from what i could tell. I will update here shortly how the new tests go.
Re: Nagios XI 2009R1.1H - Sending Notifications
Posted: Tue Apr 27, 2010 3:42 pm
by mmestnik
I did understand that email was generally working and that this was not vary likely to be an email client/server related issue.
I only ask that you check these settings as a troubleshooting step, the only thing that "should" need changing is the contact template on the one default nagiosadmin user... Unless you made other users and used that as an example.
Nagios Core should pass off notifications to Nagios XI for handling. Nagios XI currently dosen't do much other then to apply more rules onto the Notifications. The concept is that Nagios Core sends all notifications to NagiosXI and then the user can configure what NagiosXI will do with them. Previously the only way for a user to alter there notifications settings was to talk to an admin. Now the user can even create custom messages independently of the other users.
...However this all can cause problems, smaller is better you know.
Re: Nagios XI 2009R1.1H - Sending Notifications
Posted: Tue Apr 27, 2010 4:21 pm
by natedmac
Hello,
So after making the template change on a new re-deployed system with no new users created still having the same result of all working except the fail.
I am seeing the checks and it looks like it is working correctly.
[1272400627] SERVICE ALERT: lehiad01.xxx.lan;DNS Service;CRITICAL;SOFT;1;DNS: Stopped
[1272400687] SERVICE ALERT: lehiad01.xxx.lan;DNS Service;CRITICAL;SOFT;2;DNS: Stopped
[1272400747] SERVICE ALERT: lehiad01.xxx.lan;DNS Service;CRITICAL;HARD;3;DNS: Stopped
[1272400747] SERVICE NOTIFICATION: nagiosadmin;lehiad01.xxx.lan;DNS Service;CRITICAL;xi_service_notification_handler;DNS: Stopped
[1272401287] SERVICE ALERT: lehiad01.xxx.lan;DNS Service;OK;HARD;3;DNS: Started
[1272401287] SERVICE NOTIFICATION: nagiosadmin;lehiad01.xxx.lan;DNS Service;OK;xi_service_notification_handler;DNS: Started
When I looked through the /var/spool/mail/nagios no emails where there and I saw no rejects in the /var/log/maillog or in any of the previous files either.
Re: Nagios XI 2009R1.1H - Sending Notifications
Posted: Wed Apr 28, 2010 11:33 am
by mmestnik
You must be doing something different then I, how much help from me would you need to find out what that is?
I just tested all of this again and it's 100% plug and play, after the one template tweak.
Re: Nagios XI 2009R1.1H - Sending Notifications
Posted: Wed Apr 28, 2010 11:43 am
by natedmac
Would need a bit. Not sure what I am doing or where I could be messing up the configuration then. Cause I have gone in and set just the email addresses, passwords and made the template change in the user account on a fresh install.
I guess i wonder if it has something to do with using SMTP versus sendmail in the config. I am currently using an SMTP setup.
I have swapped it to a sendmail, and will test this. I will update here shortly.