Page 1 of 1

NagiosXI dont mail out notifications

Posted: Wed Feb 14, 2018 11:32 am
by Kbergros
Hi

We had a problem this morning that Nagios ran out of disk, we fixed that but after that Nagios dont sent out mail.
Everything look OK in Nagios, and it writes out that it sends notifications, if try to send a test mail from Nagios it works but not the notification mail what can be the cause?

Re: NagiosXI dont mail out notifications

Posted: Wed Feb 14, 2018 5:12 pm
by cdienger
You'll want to run the repair script as outlined in https://assets.nagios.com/downloads/nag ... tabase.pdf to correct any corruption that may have been caused by running out of space.

It would also be good to do a restart of everything to make sure there are no hanging processes or locks:

You ***must*** use mariadb instead of mysqld in the commands below ***if*** you have mariadb.

service nagios stop
service ndo2db stop
service mysqld stop
service crond stop
service httpd stop
killall -9 nagios
killall -9 ndo2db
rm -f /usr/local/nagios/var/rw/nagios.cmd
rm -f /usr/local/nagios/var/nagios.lock
rm -f /usr/local/nagios/var/ndo.sock
rm -f /usr/local/nagios/var/ndo2db.lock
rm -f /usr/local/nagiosxi/var/reconfigure_nagios.lock
for i in `ipcs -q | grep nagios |awk '{print $2}'`; do ipcrm -q $i; done
service mysqld start
service ndo2db start
service nagios start
service httpd start
service crond start

Re: NagiosXI dont mail out notifications

Posted: Fri Feb 16, 2018 10:19 am
by maoreyes76
Hi ...

Thank you, now i to works again:)

Re: NagiosXI dont mail out notifications

Posted: Fri Feb 16, 2018 2:37 pm
by cdienger
Glad to hear :) !