From last two days ,Nagios XI jobs are showing critical for one of our server.We are getting below error in Nagios for Nagios XI jobs service:
ERROR: "Report Engine (reportengine) stale (149246 seconds old), Report Engine (reportengine) stale (149246 seconds old), System Statistics
(sysstat) stale (149205 seconds old), System Statistics (sysstat) stale (149205 seconds old), Event Manager (eventman) stale"
We have followed below steps but still it is critical.
service ndo2db stop
service mysqld stop
service postgresql stop
service npcd stop
service postgresql restart
service httpd start
service crond start
service ndo2db start
service nagios start
service npcd restart
Nagios XI jobs showing critical.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios XI jobs showing critical.
Hi @raamardhani7,
Looks like issue related to cron / event manager.
1. Click on the Admin menu. Is everything showing green in the System Component Status dashlet ( see image).
If no, you can try to re-start again:
or PM your system profile so we can take a closer look at the logs.
To Send Over a System ProfileTo send us your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and upload it to a cloud storage of your choice. You can share a link with me in a personal message.
After you upload the profile please post something in this thread to bring it up in the support queue.
Thanks.
Looks like issue related to cron / event manager.
1. Click on the Admin menu. Is everything showing green in the System Component Status dashlet ( see image).
If no, you can try to re-start again:
Code: Select all
systemctl stop crond
systemctl stop npcd
systemctl stop nagios
systemctl stop ndo2db
pkill -9 -u nagios
for i in $(ipcs -q | grep nagios |awk '{print $2}'); do ipcrm -q $i; done
rm -rf /usr/local/nagiosxi/var/dbmaint.lock
rm -rf /usr/local/nagiosxi/var/event_handler.lock
rm -rf /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
systemctl restart mysqld || systemctl restart mariadb
systemctl start ndo2db
systemctl start nagios
systemctl start npcd
systemctl start crond
systemctl restart httpd
To Send Over a System ProfileTo send us your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and upload it to a cloud storage of your choice. You can share a link with me in a personal message.
After you upload the profile please post something in this thread to bring it up in the support queue.
Thanks.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
raamardhani7
- Posts: 459
- Joined: Tue Jun 02, 2015 12:36 am
Re: Nagios XI jobs showing critical.
We tried running those given steps but it won't help and still Nagios XI jobs are showing critical. As you suggested we tried to download the profile but we got below error message so we have given you system info in .txt format. Hope so that would be helpful. Also find attached screenshot for components which are shown in red.
Error:
PROFILE BUILD FAILED
Array
(
)
CODE: 1
Error:
PROFILE BUILD FAILED
Array
(
)
CODE: 1
You do not have the required permissions to view the files attached to this post.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios XI jobs showing critical.
Hello @raamardhani7,
You may have an expired Nagios user account on your system preventing cron from running correctly.
Run this command to check your account:
If it is expired, run this command to enable the expired nagios user:
Restart the system, and then check your System Component Status dashlet in Admin
You may have an expired Nagios user account on your system preventing cron from running correctly.
Run this command to check your account:
Code: Select all
chage -l nagios
If it is expired, run this command to enable the expired nagios user:
Code: Select all
chage -I -1 -m 0 -M 99999 -E -1 nagios
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios XI jobs showing critical.
We can close this thread. The nagios user was removed from /etc/cron.allow. We resolved this in a support ticket. We didn't realize that the other was working on it.
Jobs in critical state - stale statistics #886843
Thanks
Jobs in critical state - stale statistics #886843
Thanks
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios XI jobs showing critical.
Hi @awilson,
Thanks for update and happy you got it worked out. Closing thread.
Thank you for using the Nagios Support Forum.
Thanks for update and happy you got it worked out. Closing thread.
Thank you for using the Nagios Support Forum.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!