Page 1 of 1
Nagios XI jobs showing critical.
Posted: Wed Jan 23, 2019 8:07 am
by raamardhani7
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
Re: Nagios XI jobs showing critical.
Posted: Wed Jan 23, 2019 12:55 pm
by benjaminsmith
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:
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
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.
Re: Nagios XI jobs showing critical.
Posted: Thu Jan 24, 2019 1:37 am
by raamardhani7
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
Re: Nagios XI jobs showing critical.
Posted: Thu Jan 24, 2019 10:53 am
by benjaminsmith
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:
Code: Select all
chage -I -1 -m 0 -M 99999 -E -1 nagios
Restart the system, and then check your System Component Status dashlet in Admin
Re: Nagios XI jobs showing critical.
Posted: Thu Jan 24, 2019 5:27 pm
by awilson
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
Re: Nagios XI jobs showing critical.
Posted: Thu Jan 24, 2019 5:39 pm
by benjaminsmith
Hi
@awilson,
Thanks for update and happy you got it worked out. Closing thread.
Thank you for using the Nagios Support Forum.