Hey all,
New to Nagios XI and Nagios in general. I've got most of my systems setup for monitor and all looks to be in order. This issue I'm having is the alerts are not being sent out. I've followed the troubleshooting guide found here... http://support.nagios.com/wiki/index.ph ... n_Problems ...and everything checks out but yet still no notification. Can see them being generated, and even receive the test email when logged in as Admin.
I'm trying to use only Contacts to be notified instead of Users. Logic being that I have a number of admin I don't want to have a Nagios logon as well I'd like to split up email and SMS depending on the criticality of the event. Therefore I setup to separate contact groups for each Contact, <Username>-Email and <Username>-SMS.
Version I'm running is 2012R2.7 on a VMware ESX VM.
Let me know if anyone has any ideas as I'm already the better part of 2 days into this issue and my once oversized Admin ego has taken a real hit.
Cheer, Steve
Nagios XI Notification Problem
Re: Nagios XI Notification Problem
Alright. Lets look at your maillogs:heritages wrote: Can see them being generated, and even receive the test email when logged in as Admin.
Code: Select all
tail -25 /var/log/maillogYou can do this with Nagios XI, but you should understand that contacts (who are not linked to a user) will not use the XI mail settings (php_mailer) on the admin page. They will be sent out using sendmail. Lets check what notification handlers your contacts are using:heritages wrote:I'm trying to use only Contacts to be notified instead of Users.
Go to --> Configure --> Core Config Manager --> Contacts --> Click a contact in question --> alert settings --> click each of: manage host/service notification commands.
They should be set to: notify_host_by_email and notify_service_by_email, respectively. What are they set to for the contacts in question?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Nagios XI Notification Problem
Sorry for the delay, missed the email saying I had a reply.
Here is some output from the mail log....
Jan 28 11:04:03 Mis1SmMo02 postfix/error[26766]: 4F95F3A00: to=<[email protected]>, relay=none, delay=298536, delays=298536/0.09/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to arivanow.com[192.228.20.39]:25: Connection refused)
Jan 28 11:04:03 Mis1SmMo02 postfix/error[26768]: 828794BC6: to=<[email protected]>, relay=none, delay=428837, delays=428837/0.08/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to arivanow.com[192.228.20.39]:25: Connection refused)
Jan 28 11:04:03 Mis1SmMo02 postfix/error[26767]: 8C44A4BCA: to=<[email protected]>, relay=none, delay=428837, delays=428837/0.08/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to arivanow.com[192.228.20.39]:25: Connection refused)
Jan 28 11:07:23 Mis1SmMo02 postfix/scache[26765]: statistics: start interval Jan 28 11:04:03
Jan 28 11:07:23 Mis1SmMo02 postfix/scache[26765]: statistics: domain lookup hits=0 miss=1 success=0%
Jan 28 11:07:23 Mis1SmMo02 postfix/scache[26765]: statistics: address lookup hits=0 miss=1 success=0%
I see that its attempting to hit the SMTP gateway for arivanow.com. even though the mail configuration I've put in the NagiosXI > ADMIN > System Config > Manage Mail Settings points to gateway for my internal NLB host. I think this was explained by your comment that since I'm using contacts its not using this config.
In the contacts I have the correct notification commands.
Correct me if I'm wrong, but the question now becomes is there a way to force Core to hit my local CAS NLB with its emails?
Cheers
Here is some output from the mail log....
Jan 28 11:04:03 Mis1SmMo02 postfix/error[26766]: 4F95F3A00: to=<[email protected]>, relay=none, delay=298536, delays=298536/0.09/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to arivanow.com[192.228.20.39]:25: Connection refused)
Jan 28 11:04:03 Mis1SmMo02 postfix/error[26768]: 828794BC6: to=<[email protected]>, relay=none, delay=428837, delays=428837/0.08/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to arivanow.com[192.228.20.39]:25: Connection refused)
Jan 28 11:04:03 Mis1SmMo02 postfix/error[26767]: 8C44A4BCA: to=<[email protected]>, relay=none, delay=428837, delays=428837/0.08/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to arivanow.com[192.228.20.39]:25: Connection refused)
Jan 28 11:07:23 Mis1SmMo02 postfix/scache[26765]: statistics: start interval Jan 28 11:04:03
Jan 28 11:07:23 Mis1SmMo02 postfix/scache[26765]: statistics: domain lookup hits=0 miss=1 success=0%
Jan 28 11:07:23 Mis1SmMo02 postfix/scache[26765]: statistics: address lookup hits=0 miss=1 success=0%
I see that its attempting to hit the SMTP gateway for arivanow.com. even though the mail configuration I've put in the NagiosXI > ADMIN > System Config > Manage Mail Settings points to gateway for my internal NLB host. I think this was explained by your comment that since I'm using contacts its not using this config.
In the contacts I have the correct notification commands.
Correct me if I'm wrong, but the question now becomes is there a way to force Core to hit my local CAS NLB with its emails?
Cheers
Re: Nagios XI Notification Problem
One additional question. If I decide to use only User config to manage the notifications so it adopts the XI SMTP configuration I put in place, how do I manage the notifications so some checks send out only emails and some send out emails and SMS.
What I have configured so far is...
2 Contact Groups
Admins (2 users with email and SMS configured)
Developers (4 users with email configured)
I'd like the Admins to receive SMS and email on some critical alerts and in some cases I'd like the developers to receive them to depending on the check.
How would I do this?
Thanks, Steve
What I have configured so far is...
2 Contact Groups
Admins (2 users with email and SMS configured)
Developers (4 users with email configured)
I'd like the Admins to receive SMS and email on some critical alerts and in some cases I'd like the developers to receive them to depending on the check.
How would I do this?
Thanks, Steve
Re: Nagios XI Notification Problem
In order to alert based on the service status you would need to write a wrapper script and pass it the status, then send alerts based on this.heritages wrote:I'd like the Admins to receive SMS and email on some critical alerts and in some cases I'd like the developers to receive them to depending on the check.
How would I do this?
Former Nagios employee
Re: Nagios XI Notification Problem
please close this case