daemons nagios (Monitoring Engine) stopped, npcd (Performanc

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

daemons nagios (Monitoring Engine) stopped, npcd (Performanc

Post by smapple »

I am monitoring Nagios via nagios:

I was trying to upgrade the nagiosxi and it failed.

However the other nagios server is failing to make this check,please suggest?


[[email protected] ~]$ /usr/bin/php /usr/local/nagios/libexec/check_nagiosxiserver.php --address=nagiosxi.apple.com --url=http://nagiosxi.apple.com/nagiosxi/ --username=nagiosadmin --ticket="6iov285f" --mode=daemons nagios (Monitoring Engine) stopped, npcd (Performance Grapher) stopped, ndo2db (Database Backend) stopped
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

Re: daemons nagios (Monitoring Engine) stopped, npcd (Perfor

Post by smapple »

Nagios XI Daemons
nagios (Monitoring Engine) stopped, npcd (Performance Grapher) stopped, ndo2db (Database Backend) stopped


Nagios XI Jobs
Report Engine (reportengine) stale (1176 seconds old), Report Engine (reportengine) stale (1176 seconds old), System Statistics (sysstat) stale (1126 seconds old), System Statistics (sysstat) stale (1126 seconds old), Event Manager (eventman) stale (996 s) stopped

Can you tell me how do I restart these?
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

Re: daemons nagios (Monitoring Engine) stopped, npcd (Perfor

Post by smapple »

This is critical, Can you please suggest what do I do?
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

Re: daemons nagios (Monitoring Engine) stopped, npcd (Perfor

Post by smapple »

I am trying to start the monitoring engine and others. I get an error , screenshot attached. PLease do let me know if im missing out something?
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: daemons nagios (Monitoring Engine) stopped, npcd (Perfor

Post by cdienger »

Try restaring everything from the command line:

Note you ***must*** use mariadb instead of mysqld in the commands below, ***if*** you have mariadb.

service nagios stop
service ndo2db stop
service mysqld stop
service crond stop
service httpd stop
killall -9 nagios
killall -9 ndo2db
rm -f /usr/local/nagios/var/rw/nagios.cmd
rm -f /usr/local/nagios/var/nagios.lock
rm -f /usr/local/nagios/var/ndo.sock
rm -f /usr/local/nagios/var/ndo2db.lock
rm -f /usr/local/nagiosxi/var/reconfigure_nagios.lock
for i in `ipcs -q | grep nagios |awk '{print $2}'`; do ipcrm -q $i; done
service mysqld start
service ndo2db start
service nagios start
service httpd start
service crond start


If this does not resolve the problem, please PM a profile from the XI machine which can be generated under Admin > System Config > System Profile > Download System Profile.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

Re: daemons nagios (Monitoring Engine) stopped, npcd (Perfor

Post by smapple »

Trying out right away
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

Re: daemons nagios (Monitoring Engine) stopped, npcd (Perfor

Post by smapple »

Everything worked.. apart from the below:

[sadmin@nagiosxi ~]$ sudo service nagios start
Starting nagios: su: cannot set user id: Resource temporarily unavailable
ERROR: Could not create or update '/usr/local/nagios/var/nagios.configtest'

I have added the profile.zip here from admin > system config > system profile
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

Re: daemons nagios (Monitoring Engine) stopped, npcd (Perfor

Post by smapple »

Can you login and check? instead of messages for this one?
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

Re: daemons nagios (Monitoring Engine) stopped, npcd (Perfor

Post by smapple »

Hi , Any resolution to the below?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: daemons nagios (Monitoring Engine) stopped, npcd (Perfor

Post by cdienger »

Is the Nagios process still unable to start with the same error message? redhat has an article on how to troubleshoot that that I'd like you to go through and provide the results from if it doesn't help resolve the problem:

https://access.redhat.com/solutions/30316

Please be aware our hours are 9-5 Central time Monday through Thursday and 9-2 on Friday:

https://www.nagios.com/contact/

Also feel free to open a ticket at nagios.com/tickets/ for any high severity issues. The forum threads follow the same SLA, but the steps to troubleshoot may require communicating sensitive info that is best transferred via the ticketing system.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked