Nagios Freezes and Host Status not getting Updated

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios Freezes and Host Status not getting Updated

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Teja
Posts: 53
Joined: Tue Jun 13, 2017 8:13 am

Re: Nagios Freezes and Host Status not getting Updated

Post 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.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios Freezes and Host Status not getting Updated

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Teja
Posts: 53
Joined: Tue Jun 13, 2017 8:13 am

Re: Nagios Freezes and Host Status not getting Updated

Post 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 ?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios Freezes and Host Status not getting Updated

Post by cdienger »

Yes, that will work the same.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Teja
Posts: 53
Joined: Tue Jun 13, 2017 8:13 am

Re: Nagios Freezes and Host Status not getting Updated

Post 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?
Attachments
Nagios logs.PNG
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Freezes and Host Status not getting Updated

Post by scottwilkerson »

Can you share your nagios.cfg I am guessing we have debugging on or something
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Teja
Posts: 53
Joined: Tue Jun 13, 2017 8:13 am

Re: Nagios Freezes and Host Status not getting Updated

Post 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!!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Freezes and Host Status not getting Updated

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Teja
Posts: 53
Joined: Tue Jun 13, 2017 8:13 am

Re: Nagios Freezes and Host Status not getting Updated

Post by Teja »

As the Log sizes are big they are Not opening. Is there any other way that i can cut the Log ?
Locked