Automatic Notifications stop after upgrades

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
thomasj
Posts: 9
Joined: Wed Apr 11, 2012 10:22 am

Automatic Notifications stop after upgrades

Post by thomasj »

Hi,

After upgrading to Nagios XI (2012R2.7) and updating the Linux kernel All automatic service and host notifications have stopped.
I am able to sent test notifications fine. However the automatic service and host notifications have stopped working.

Is there something simple that could have gone wrong in upgrading nagios versions and the kernel with a config file being overwritten or something?

Thanks

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

Re: Automatic Notifications stop after upgrades

Post by slansing »

Are notifications being listed in the Home > Notifications page? If so, can you run the following and share the output:

Code: Select all

tail -50 /var/log/maillog
Are notifications enabled on your hosts/services? Are they in downtime or commented?
thomasj
Posts: 9
Joined: Wed Apr 11, 2012 10:22 am

Re: Automatic Notifications stop after upgrades

Post by thomasj »

There is an error "(Cannot update mailbox /var/mail/root for user root. error writing message: file too large)"
Would I have to delete the /var/mail/root file and let it get recreated? or is there a way to truncate the file?

thanks for the quick reply compared to my slower one. :)
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Automatic Notifications stop after upgrades

Post by abrist »

There's a postfix setting called "mailbox_size_limit" which sets the maximum file size for a mailbox. By default it is set to 50MB, so you may need to increase the limit.
The solution to the "file too large" error is to modify this value in the /etc/postfix/main.cf file and either change it to a greater value, or set it to zero to have no limit. If the value is not already in the file then just add it to the end.
Edit:

Code: Select all

/etc/postfix/main.cf
Change the mailbox_size_limit value, or add the line if it does not exist:

Code: Select all

mailbox_size_limit = 0
Then you need to reload postfix - you can just reload, a full restart is not required:

Code: Select all

service postfix reload
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.
Locked