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
Automatic Notifications stop after upgrades
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Automatic Notifications stop after upgrades
Are notifications being listed in the Home > Notifications page? If so, can you run the following and share the output:
Are notifications enabled on your hosts/services? Are they in downtime or commented?
Code: Select all
tail -50 /var/log/maillogRe: Automatic Notifications stop after upgrades
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.
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.
Re: Automatic Notifications stop after upgrades
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:
Change the mailbox_size_limit value, or add the line if it does not exist:
Then you need to reload postfix - you can just reload, a full restart is not required:
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.cfCode: Select all
mailbox_size_limit = 0Code: Select all
service postfix reloadFormer 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.