Page 4 of 4
Re: Host recovery emails being sent while host is unreachabl
Posted: Fri Apr 07, 2017 12:36 pm
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?
Re: Host recovery emails being sent while host is unreachabl
Posted: Wed Apr 12, 2017 7:45 am
by BIB
Yes, problem is still present.
Re: Host recovery emails being sent while host is unreachabl
Posted: Wed Apr 12, 2017 1:26 pm
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
Re: Host recovery emails being sent while host is unreachabl
Posted: Mon May 22, 2017 1:53 am
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.
Re: Host recovery emails being sent while host is unreachabl
Posted: Mon May 22, 2017 10:12 am
by lmiltchev
Sounds good, BIB. We will keep the thread open for a few more days.
Re: Host recovery emails being sent while host is unreachabl
Posted: Mon May 22, 2017 10:47 am
by ssax
No problem, glad we could help, let us know the results.
Thank you
Re: Host recovery emails being sent while host is unreachabl
Posted: Thu Jun 08, 2017 12:44 am
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!
Re: Host recovery emails being sent while host is unreachabl
Posted: Thu Jun 08, 2017 9:27 am
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.