Page 4 of 5

Re: Nagios Freezes and Host Status not getting Updated

Posted: Fri Sep 15, 2017 12:17 pm
by tgriep
One thing, the systems time is moving around.
You may want to install the NTP daemon to keep the time in sync.

Edit the nagios.cfg file and add this option to the config file if it doesn't exist.

Code: Select all

max_concurrent_checks=1000
If it does exist, change it to the above.

Then run this as root so the change will take effect.

Code: Select all

service nagios stop
killall -9 nagios
service nagios start
Let us know if this helps.

Re: Nagios Freezes and Host Status not getting Updated

Posted: Mon Sep 18, 2017 4:46 am
by Teja
tgreip - I have changed the "max_concurrent_checks=1000" . But when i do "killall -9 nagios" its says "nagios: no process found". So i just restarted.

Re: Nagios Freezes and Host Status not getting Updated

Posted: Mon Sep 18, 2017 2:39 pm
by cdienger
Thanks for the update. You can make sure the service is running now by running service nagios status and you should also see 2 processes running for nagios when you run ps aux |grep nagios.cfg.

Re: Nagios Freezes and Host Status not getting Updated

Posted: Tue Sep 19, 2017 6:34 am
by Teja
Hi cdienger - When i do "service nagios status" it says " * checking /usr/local/nagios/bin/nagios... [ OK ]" but i don't know why " killall -9 nagios" says no process. So what i have done is ran "ps aux |grep nagios.cfg" and kill those two processes and started the nagios process, Will that work same ?

Re: Nagios Freezes and Host Status not getting Updated

Posted: Tue Sep 19, 2017 2:35 pm
by cdienger
Yes, that will work the same.

Re: Nagios Freezes and Host Status not getting Updated

Posted: Mon Sep 25, 2017 6:19 am
by Teja
The freeze issue has been fixed. But trends graph taking lot of time to load and failing due to the size of the logs . So is there a way that i can reduce the log size?

Re: Nagios Freezes and Host Status not getting Updated

Posted: Mon Sep 25, 2017 11:13 am
by scottwilkerson
Can you share your nagios.cfg I am guessing we have debugging on or something

Re: Nagios Freezes and Host Status not getting Updated

Posted: Tue Sep 26, 2017 5:40 am
by Teja
No the thing is that for last 20 days the logs have not been rotated and the log sizes are huge. Now since three days the logs are been rotated. So when we do "last 24 hours" or "last two days" report its working but when we do "last month" or "last 20 days" report it is loading and failing because of the file sizes.

Is there any way that i can cut the log size of last 20 days??

I hope you got my question.

Thanks Much!!

Re: Nagios Freezes and Host Status not getting Updated

Posted: Tue Sep 26, 2017 9:31 am
by scottwilkerson
Teja wrote:Is there any way that i can cut the log size of last 20 days??
The only thing I could think of would be to manually go through each log and delete everything before the timestamp that ended the previous days log

Re: Nagios Freezes and Host Status not getting Updated

Posted: Thu Sep 28, 2017 5:35 am
by Teja
As the Log sizes are big they are Not opening. Is there any other way that i can cut the Log ?