Issue with Performance Grapher in Nagios XI
Posted: Mon Feb 17, 2020 5:44 am
Hi Team,
We are seeing issue with Performance Grapher in Nagios XI. We tried to start it from GUI, we are not able to do so. We are using Nagios XI 5.6.8 version. We found that "npcd" service is not running. We tried to restart the service but, unable to do it. Below is the error:
[root@eu2napu003 hosts]# systemctl restart npcd.service
Job for npcd.service failed because the control process exited with error code. See "systemctl status npcd.service" and "journalctl -xe" for details.
[root@eu2napu003 hosts]#
We checked the status as below:
[root@eu2napu003 hosts]# systemctl status npcd.service
● npcd.service - LSB: Nagios NPCD Initscript
Loaded: loaded (/etc/rc.d/init.d/npcd; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2020-02-17 09:26:01 GMT; 19min ago
Docs: man:systemd-sysv-generator(8)
Process: 31306 ExecStart=/etc/rc.d/init.d/npcd start (code=exited, status=1/FAILURE)
Main PID: 14670 (code=exited, status=0/SUCCESS)
Feb 17 09:26:01 eu2napu003 systemd[1]: Starting LSB: Nagios NPCD Initscript...
Feb 17 09:26:01 eu2napu003 npcd[31306]: An error occured while reading your config on line 146
Feb 17 09:26:01 eu2napu003 npcd[31306]: Message was: "Could not open pidfile '/usr/local/nagiosxi/var/subsys/npcd.pid': No such file or directory"
Feb 17 09:26:01 eu2napu003 systemd[1]: npcd.service: control process exited, code=exited status=1
Feb 17 09:26:01 eu2napu003 npcd[31306]: Could not start NPCD
Feb 17 09:26:01 eu2napu003 systemd[1]: Failed to start LSB: Nagios NPCD Initscript.
Feb 17 09:26:01 eu2napu003 systemd[1]: Unit npcd.service entered failed state.
Feb 17 09:26:01 eu2napu003 systemd[1]: npcd.service failed.
[root@eu2napu003 hosts]#
I checked the perfdata.log file as well:
[root@eu2napu003 pnp]# tail -f /usr/local/nagios/var/perfdata.log
2020-01-30 04:30:59 [1507] [0] *** TIMEOUT: Timeout after 5 Sec. ****
2020-01-30 04:30:59 [1507] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2020-01-30 04:30:59 [1507] [0] *** TIMEOUT: Please check your process_perfdata.cfg
2020-01-30 04:30:59 [1507] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1580358635.perfdata.service-PID-1507 deleted
2020-01-30 04:30:59 [1507] [0] *** process_perfdata.pl terminated on signal ALRM
2020-01-30 04:30:59 [1508] [0] *** TIMEOUT: Timeout after 5 Sec. ****
2020-01-30 04:30:59 [1508] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2020-01-30 04:30:59 [1508] [0] *** TIMEOUT: Please check your process_perfdata.cfg
2020-01-30 04:30:59 [1508] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1580358650.perfdata.service-PID-1508 deleted
2020-01-30 04:30:59 [1508] [0] *** process_perfdata.pl terminated on signal ALRM
^C
[root@eu2napu003 pnp]# tail -f /usr/local/nagios/var/npcd.log
[01-29-2020 04:45:52] NPCD: ERROR: Executed command exits with return code '1'
[01-29-2020 04:45:52] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1580273135.perfdata.host'
[01-29-2020 04:45:52] NPCD: ERROR: Executed command exits with return code '1'
[01-29-2020 04:45:52] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1580273136.perfdata.service'
[01-30-2020 04:30:59] NPCD: ERROR: Executed command exits with return code '1'
[01-30-2020 04:30:59] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1580358634.perfdata.host'
[01-30-2020 04:30:59] NPCD: ERROR: Executed command exits with return code '1'
[01-30-2020 04:30:59] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1580358635.perfdata.service'
[01-30-2020 04:30:59] NPCD: ERROR: Executed command exits with return code '1'
[01-30-2020 04:30:59] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1580358650.perfdata.service'
We referred to https://support.nagios.com/kb/article.php?id=9 as well and made the changes accordingly, still the issue persists.
Please help us on the same.
Thanks in advance!!
We are seeing issue with Performance Grapher in Nagios XI. We tried to start it from GUI, we are not able to do so. We are using Nagios XI 5.6.8 version. We found that "npcd" service is not running. We tried to restart the service but, unable to do it. Below is the error:
[root@eu2napu003 hosts]# systemctl restart npcd.service
Job for npcd.service failed because the control process exited with error code. See "systemctl status npcd.service" and "journalctl -xe" for details.
[root@eu2napu003 hosts]#
We checked the status as below:
[root@eu2napu003 hosts]# systemctl status npcd.service
● npcd.service - LSB: Nagios NPCD Initscript
Loaded: loaded (/etc/rc.d/init.d/npcd; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2020-02-17 09:26:01 GMT; 19min ago
Docs: man:systemd-sysv-generator(8)
Process: 31306 ExecStart=/etc/rc.d/init.d/npcd start (code=exited, status=1/FAILURE)
Main PID: 14670 (code=exited, status=0/SUCCESS)
Feb 17 09:26:01 eu2napu003 systemd[1]: Starting LSB: Nagios NPCD Initscript...
Feb 17 09:26:01 eu2napu003 npcd[31306]: An error occured while reading your config on line 146
Feb 17 09:26:01 eu2napu003 npcd[31306]: Message was: "Could not open pidfile '/usr/local/nagiosxi/var/subsys/npcd.pid': No such file or directory"
Feb 17 09:26:01 eu2napu003 systemd[1]: npcd.service: control process exited, code=exited status=1
Feb 17 09:26:01 eu2napu003 npcd[31306]: Could not start NPCD
Feb 17 09:26:01 eu2napu003 systemd[1]: Failed to start LSB: Nagios NPCD Initscript.
Feb 17 09:26:01 eu2napu003 systemd[1]: Unit npcd.service entered failed state.
Feb 17 09:26:01 eu2napu003 systemd[1]: npcd.service failed.
[root@eu2napu003 hosts]#
I checked the perfdata.log file as well:
[root@eu2napu003 pnp]# tail -f /usr/local/nagios/var/perfdata.log
2020-01-30 04:30:59 [1507] [0] *** TIMEOUT: Timeout after 5 Sec. ****
2020-01-30 04:30:59 [1507] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2020-01-30 04:30:59 [1507] [0] *** TIMEOUT: Please check your process_perfdata.cfg
2020-01-30 04:30:59 [1507] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1580358635.perfdata.service-PID-1507 deleted
2020-01-30 04:30:59 [1507] [0] *** process_perfdata.pl terminated on signal ALRM
2020-01-30 04:30:59 [1508] [0] *** TIMEOUT: Timeout after 5 Sec. ****
2020-01-30 04:30:59 [1508] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2020-01-30 04:30:59 [1508] [0] *** TIMEOUT: Please check your process_perfdata.cfg
2020-01-30 04:30:59 [1508] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1580358650.perfdata.service-PID-1508 deleted
2020-01-30 04:30:59 [1508] [0] *** process_perfdata.pl terminated on signal ALRM
^C
[root@eu2napu003 pnp]# tail -f /usr/local/nagios/var/npcd.log
[01-29-2020 04:45:52] NPCD: ERROR: Executed command exits with return code '1'
[01-29-2020 04:45:52] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1580273135.perfdata.host'
[01-29-2020 04:45:52] NPCD: ERROR: Executed command exits with return code '1'
[01-29-2020 04:45:52] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1580273136.perfdata.service'
[01-30-2020 04:30:59] NPCD: ERROR: Executed command exits with return code '1'
[01-30-2020 04:30:59] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1580358634.perfdata.host'
[01-30-2020 04:30:59] NPCD: ERROR: Executed command exits with return code '1'
[01-30-2020 04:30:59] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1580358635.perfdata.service'
[01-30-2020 04:30:59] NPCD: ERROR: Executed command exits with return code '1'
[01-30-2020 04:30:59] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1580358650.perfdata.service'
We referred to https://support.nagios.com/kb/article.php?id=9 as well and made the changes accordingly, still the issue persists.
Please help us on the same.
Thanks in advance!!