Host recovery emails being sent while host is unreachable

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Host recovery emails being sent while host is unreachabl

Post by avandemore »

I received your profile and have shared it. It's been awhile since we heard from you on this. Is the state of the system the same as when we left off?
Previous Nagios employee
BIB
Posts: 46
Joined: Tue Dec 27, 2016 3:13 pm

Re: Host recovery emails being sent while host is unreachabl

Post by BIB »

Yes, problem is still present.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Host recovery emails being sent while host is unreachabl

Post by ssax »

You have too many nagios processes running, please run these commands to fix that issue (it may resolve the problem):

Code: Select all

service npcd stop
service nagios stop
service ndo2db stop
service mysqld restart
rm -rf /usr/local/nagios/var/rw/nagios.cmd
for i in `ipcs -q | grep nagios |awk '{print $2}'`; do ipcrm -q $i; done
pkill -9 -u nagios
service ndo2db start
service nagios start
service npcd start
Then let us know if the issue is resolved.

If it's not, please include the output of this command as well:

Code: Select all

[ $(grep -c mysql /usr/local/nagiosxi/html/config.inc.php) -eq  "2" ] && echo "SELECT relname AS objectname, relkind AS objecttype, reltuples, pg_size_pretty(relpages::bigint*8*1024) AS size FROM pg_class WHERE relpages >= 8 ORDER BY relpages DESC;" | psql nagiosxi nagiosxi || echo "SELECT table_schema as 'DB', table_name AS 'Table', round(((data_length + index_length) / 1024 / 1024), 2) 'Size in MB' FROM information_schema.TABLES ORDER BY (data_length + index_length) DESC \t;" | mysql -uroot -pnagiosxi
Thank you
BIB
Posts: 46
Joined: Tue Dec 27, 2016 3:13 pm

Re: Host recovery emails being sent while host is unreachabl

Post by BIB »

The problem looks to be solved, for the past 10 days we had not received false recovery notifications. We will monitor the situation for a couple more days and we will confirm if the issue is resolved permanently.
Thank you very much for your assistance.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Host recovery emails being sent while host is unreachabl

Post by lmiltchev »

Sounds good, BIB. We will keep the thread open for a few more days.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Host recovery emails being sent while host is unreachabl

Post by ssax »

No problem, glad we could help, let us know the results.

Thank you
BIB
Posts: 46
Joined: Tue Dec 27, 2016 3:13 pm

Re: Host recovery emails being sent while host is unreachabl

Post by BIB »

Hi everyone,
I want to thank you all for assisting us with this problem.
Eventhough changing from check_ping to check_icmp did not help in the first time, after all checks and updates we have done together, we tried once more to change to check_icmp plugin and now it works OK.
Again, thanks to everyone participating.
Kind regards!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Host recovery emails being sent while host is unreachabl

Post by tgriep »

Thanks for reporting back your findings. I'll close and lock this post for you but if you have any new issues, feel free to open a new post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked