Upgrade to 2012 1.7 stops all email notifications

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
aap
Posts: 180
Joined: Wed Oct 12, 2011 4:01 am

Upgrade to 2012 1.7 stops all email notifications

Post by aap »

Hi,

I have just upgraded to 2012 1.7 and all email alerts and notifications have stopped.

Please assist.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade to 2012 1.7 stops all email notifications

Post by lmiltchev »

This is strange - the upgrade shouldn't change anything in your notification settings... Are your notifications enabled globally?

Go to: Home->Monitoring Process->Process Info

and see if you have a green dot next to the "Notifications".

Also, see when the last notification was sent:

Home->Incident Management->Notifications
Be sure to check out our Knowledgebase for helpful articles and solutions!
aap
Posts: 180
Joined: Wed Oct 12, 2011 4:01 am

Re: Upgrade to 2012 1.7 stops all email notifications

Post by aap »

Hi,

Thanks for your prompt reply.

Yes indeed there is a green dot and the notofications are showing on the notification screens. We are just not getting any emails.

Thanks
You do not have the required permissions to view the files attached to this post.
Last edited by aap on Fri Apr 05, 2013 9:39 am, edited 1 time in total.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade to 2012 1.7 stops all email notifications

Post by lmiltchev »

What happens when you try to send a test email?

Click on the "nagiosadmin" in the upper right corner next to the "Logged in as", click on "Send Test Notifications" under the "Notification Options" menu on the left, and click on the "Send Test Notifications".

You can also see what is in the mail log:

Code: Select all

tail /var/log/maillog
Be sure to check out our Knowledgebase for helpful articles and solutions!
aap
Posts: 180
Joined: Wed Oct 12, 2011 4:01 am

Re: Upgrade to 2012 1.7 stops all email notifications

Post by aap »

Hi,

I receive the test notification successfully. However, I still cannot receive any alerts and notifications. The tail of the log is below:

Apr 5 08:25:02 linapp20prdv postfix/pickup[15040]: 0770D22EBD: uid=0 from=<root>
Apr 5 08:25:02 linapp20prdv postfix/cleanup[2782]: 0770D22EBD: message-id=<[email protected]>
Apr 5 08:25:02 linapp20prdv postfix/qmgr[1700]: 0770D22EBD: from=<[email protected]>, size=2713, nrcpt=1 (queue active)
Apr 5 08:25:02 linapp20prdv postfix/local[2802]: 0770D22EBD: to=<[email protected]>, orig_to=<root>, relay=local, delay=0.33, delays=0.27/0.01/0/0.04, dsn=5.2.2, status=bounced (cannot update mailbox /var/mail/root for user root. error writing message: File too large)
Apr 5 08:25:02 linapp20prdv postfix/cleanup[2782]: 21EF322EC3: message-id=<[email protected]>
Apr 5 08:25:02 linapp20prdv postfix/bounce[2803]: 0770D22EBD: sender non-delivery notification: 21EF322EC3
Apr 5 08:25:02 linapp20prdv postfix/qmgr[1700]: 21EF322EC3: from=<>, size=4704, nrcpt=1 (queue active)
Apr 5 08:25:02 linapp20prdv postfix/qmgr[1700]: 0770D22EBD: removed
Apr 5 08:25:02 linapp20prdv postfix/local[2802]: 21EF322EC3: to=<[email protected]>, relay=local, delay=0.01, delays=0.01/0/0/0.01, dsn=5.2.2, status=bounced (cannot update mailbox /var/mail/root for user root. error writing message: File too large)
Apr 5 08:25:02 linapp20prdv postfix/qmgr[1700]: 21EF322EC3: removed
aap
Posts: 180
Joined: Wed Oct 12, 2011 4:01 am

Re: Upgrade to 2012 1.7 stops all email notifications

Post by aap »

Hi,

Any help is appreciated with this issue. I really cannot spot the problem. The notifications are being created but not generating an email.

This is a live system and impacting production minitoring.

Thanks.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Upgrade to 2012 1.7 stops all email notifications

Post by slansing »

Can you post the output of the following please:

Code: Select all

cat /etc/postfix/main.cf | grep mailbox_size

cat /etc/postfix/main.cf | grep message_size

cat /etc/postfix/main.cf | grep virtual_mail
And:

Code: Select all

/etc/init.d/postfix reload
For good measure.
uidaho
Posts: 89
Joined: Tue Feb 12, 2013 11:58 am

Re: Upgrade to 2012 1.7 stops all email notifications

Post by uidaho »

We are having the same problems, post upgrade. Fortunately, this is still on our POC box. Email notifications stopped after upgrading to 2012 1.7. We are running on RHEL6.

Oddly enough, emails to a pager address are working fine. However, emails to an email addresses are never getting to Postfix.

Here are some of the logs:

[root@nagios01 var]# grep NOTIF nagios.log
[1365198465] HOST NOTIFICATION: UnixTeam_Email;sys-ss-rhel5;DOWN;xi_host_notification_handler;CRITICAL - sys-ss-rhel5.its.uidaho.edu: rta nan, lost 100%
[1365198465] HOST NOTIFICATION: stephanyb;sys-ss-rhel5;DOWN;xi_host_notification_handler;CRITICAL - sys-ss-rhel5.its.uidaho.edu: rta nan, lost 100%
[1365198765] HOST NOTIFICATION: stephanyb_Escalation;sys-ss-rhel5;DOWN;xi_host_notification_handler;CRITICAL - sys-ss-rhel5.its.uidaho.edu: rta nan, lost 100%
[1365199365] HOST NOTIFICATION: stephanyb_Escalation;sys-ss-rhel5;DOWN;xi_host_notification_handler;CRITICAL - sys-ss-rhel5.its.uidaho.edu: rta nan, lost 100%
[1365199665] HOST NOTIFICATION: stephanyb_Escalation2;sys-ss-rhel5;DOWN;xi_host_notification_handler;CRITICAL - sys-ss-rhel5.its.uidaho.edu: rta nan, lost 100%

For that same time period, in /var/log/maillog

[root@nagios01 var]# tail /var/log/maillog
Apr 5 14:42:47 nagios01 postfix/qmgr[21579]: 3537D1FC67: from=<[email protected]>, size=1088, nrcpt=1 (queue active)
Apr 5 14:42:47 nagios01 postfix/smtp[1401]: 3537D1FC67: to=<[email protected]>, relay=smtpanon.uidaho.edu[129.101.177.56]:25, delay=0.09, delays=0.03/0.01/0/0.05, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> Queued mail for delivery)
Apr 5 14:42:47 nagios01 postfix/qmgr[21579]: 3537D1FC67: removed
Apr 5 14:47:47 nagios01 postfix/pickup[14049]: 6409A1FC67: uid=500 from=<[email protected]>
Apr 5 14:47:47 nagios01 postfix/cleanup[2793]: 6409A1FC67: message-id=<[email protected]>
Apr 5 14:47:47 nagios01 postfix/qmgr[21579]: 6409A1FC67: from=<[email protected]>, size=1088, nrcpt=1 (queue active)
Apr 5 14:47:47 nagios01 postfix/smtp[2795]: 6409A1FC67: to=<[email protected]>, relay=smtpanon.uidaho.edu[129.101.177.56]:25, delay=0.09, delays=0.02/0.01/0.02/0.04, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> Queued mail for delivery)
Apr 5 14:47:47 nagios01 postfix/qmgr[21579]: 6409A1FC67: removed
Apr 5 14:58:10 nagios01 postfix/postfix-script[5512]: refreshing the Postfix mail system
Apr 5 14:58:10 nagios01 postfix/master[21572]: reload -- version 2.6.6, configuration /etc/postfix
[root@nagios01 var]#
aap
Posts: 180
Joined: Wed Oct 12, 2011 4:01 am

Re: Upgrade to 2012 1.7 stops all email notifications

Post by aap »

Hi,

Output is below:

# the $virtual_mailbox_maps files.
# - destinations that match $virtual_mailbox_domains


Reloading postfix: [ OK ]


Still no email notifications. From the previous post, it looks like it is not an isolated issue.

Many thanks for your assistance.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Upgrade to 2012 1.7 stops all email notifications

Post by sreinhardt »

As slansing mentioned, could you please run the following commands. It would seem from your logs that nagios is sending alerts to postfix just fine, however they do not seem to be queuing or delivering properly.
slansing:
Can you post the output of the following please:

Code: Select all

    cat /etc/postfix/main.cf | grep mailbox_size
    cat /etc/postfix/main.cf | grep message_size
    cat /etc/postfix/main.cf | grep virtual_mail
And:

Code: Select all

    /etc/init.d/postfix reload
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked