[root@a2nagio001p mrtg]# ll /var/lock/
total 0
drwx------ 2 root root 60 Aug 5 15:09 iscsi
-rw-r--r-- 1 root root 0 Aug 5 15:09 kdump
drwxrwxr-x 2 root lock 40 Aug 5 15:09 lockdev
drwx------ 2 root root 40 Aug 5 15:09 lvm
drwxr-xr-x 2 root root 40 Aug 5 15:09 ppp
drwxr-xr-x 2 root root 120 Aug 5 15:10 subsys
[root@a2nagio001p mrtg]#
Perfdata: Nagios not painting performance graphs
-
- Posts: 161
- Joined: Tue Mar 10, 2020 11:07 am
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Perfdata: Nagios not painting performance graphs
Hi,
A couple of questions. After you installed the RAMDISK, were the performance graphs working? Are you able to re-start the ncpd service from the command line?
Are you able to view the lock file?
I'd like to get a current profile since installing the RAMDISK. Thanks, Benjamin
To 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 share in a private message or upload it to the post/ticket, and then reply to this post to bring it up in the queue.
A couple of questions. After you installed the RAMDISK, were the performance graphs working? Are you able to re-start the ncpd service from the command line?
Code: Select all
systemctl restart npcd
Code: Select all
ls -l /usr/local/nagiosxi/var/subsys/npcd.pid
To 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 share in a private message or upload it to the post/ticket, and then reply to this post to bring it up in the queue.
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!
-
- Posts: 161
- Joined: Tue Mar 10, 2020 11:07 am
Re: Perfdata: Nagios not painting performance graphs
Good evening
We did both things:
Restart npcd
and locate .pid
-rw-r--r-- 1 root root 4 Aug 10 10:10 /usr/local/nagiosxi/var/subsys/npcd.pid
[root@a2nagio001p etc]# systemctl status npcd
● npcd.service - LSB: Nagios NPCD Initscript
Loaded: loaded (/etc/rc.d/init.d/npcd; bad; vendor preset: disabled)
Active: active (running) since Mon 2020-08-10 10:10:20 CEST; 8h ago
Docs: man:systemd-sysv-generator(8)
Process: 6373 ExecStop=/etc/rc.d/init.d/npcd stop (code=exited, status=0/SUCCESS)
Process: 6387 ExecStart=/etc/rc.d/init.d/npcd start (code=exited, status=0/SUCCESS)
Main PID: 6390 (npcd)
CGroup: /system.slice/npcd.service
└─6390 /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
[root@a2nagio001p etc]#
I attach profile
Many Thnks in advance
KR
Moderator's Note: The profile has been shared with the support team but has been removed from the public forum
We did both things:
Restart npcd
and locate .pid
-rw-r--r-- 1 root root 4 Aug 10 10:10 /usr/local/nagiosxi/var/subsys/npcd.pid
[root@a2nagio001p etc]# systemctl status npcd
● npcd.service - LSB: Nagios NPCD Initscript
Loaded: loaded (/etc/rc.d/init.d/npcd; bad; vendor preset: disabled)
Active: active (running) since Mon 2020-08-10 10:10:20 CEST; 8h ago
Docs: man:systemd-sysv-generator(8)
Process: 6373 ExecStop=/etc/rc.d/init.d/npcd stop (code=exited, status=0/SUCCESS)
Process: 6387 ExecStart=/etc/rc.d/init.d/npcd start (code=exited, status=0/SUCCESS)
Main PID: 6390 (npcd)
CGroup: /system.slice/npcd.service
└─6390 /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
[root@a2nagio001p etc]#
I attach profile
Many Thnks in advance
KR
Moderator's Note: The profile has been shared with the support team but has been removed from the public forum
-
- Posts: 161
- Joined: Tue Mar 10, 2020 11:07 am
Re: Perfdata: Nagios not painting performance graphs
Hi,
Yes before RAMDISK installatiion Performnace graph was running ok
Yes before RAMDISK installatiion Performnace graph was running ok
-
- Posts: 161
- Joined: Tue Mar 10, 2020 11:07 am
Re: Perfdata: Nagios not painting performance graphs
Hi,
I restart crond
service crond restart
and see movement
[root@a2nagio001p nagiosramdisk]# find .
.
./host-perfdata
./service-perfdata
./status.dat
./objects.cache
./spool
./spool/perfdata
./spool/perfdata/1597133288.perfdata.service
./spool/perfdata/1597133289.perfdata.host
./spool/xidpe
./spool/checkresults
./tmp
[root@a2nagio001p nagiosramdisk]#
I restart crond
service crond restart
and see movement
[root@a2nagio001p nagiosramdisk]# find .
.
./host-perfdata
./service-perfdata
./status.dat
./objects.cache
./spool
./spool/perfdata
./spool/perfdata/1597133288.perfdata.service
./spool/perfdata/1597133289.perfdata.host
./spool/xidpe
./spool/checkresults
./tmp
[root@a2nagio001p nagiosramdisk]#
-
- Posts: 161
- Joined: Tue Mar 10, 2020 11:07 am
Re: Perfdata: Nagios not painting performance graphs
I restart crond with service crond restart
I saw movement
Every 2.0s: find . Tue Aug 11 10:13:25 2020
.
./status.dat
./service-perfdata
./host-perfdata
./objects.cache
./spool
./spool/perfdata
./spool/xidpe
./spool/xidpe/1597133604.perfdata.service
./spool/xidpe/1597133604.perfdata.host
./spool/checkresults
./tmp
but no painting
I saw movement
Every 2.0s: find . Tue Aug 11 10:13:25 2020
.
./status.dat
./service-perfdata
./host-perfdata
./objects.cache
./spool
./spool/perfdata
./spool/xidpe
./spool/xidpe/1597133604.perfdata.service
./spool/xidpe/1597133604.perfdata.host
./spool/checkresults
./tmp
but no painting
-
- Posts: 161
- Joined: Tue Mar 10, 2020 11:07 am
Re: Perfdata: Nagios not painting performance graphs
[root@a2nagio001p ~]# tail -f /usr/local/nagios/var/npcd.log
[08-10-2020 10:10:20] NPCD: Please have a look at 'npcd -V' to get license information
[08-10-2020 10:10:20] NPCD: HINT: load_threshold is enabled - ('60.000000')
[08-11-2020 09:43:18] NPCD: Caught Termination Signal - Hasta la vista... baby
[08-11-2020 09:43:18] NPCD: npcd Daemon (0.4.14) started with PID=26156
[08-11-2020 09:43:18] NPCD: Please have a look at 'npcd -V' to get license information
[08-11-2020 09:43:18] NPCD: HINT: load_threshold is enabled - ('60.000000')
[08-11-2020 09:45:42] NPCD: ERROR: Executed command exits with return code '7'
[08-11-2020 09:45:42] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /var/nagiosramdisk/spool/perfdata//1597131908.perfdata.service'
[08-11-2020 09:46:42] NPCD: ERROR: Executed command exits with return code '7'
[08-11-2020 09:46:42] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /var/nagiosramdisk/spool/perfdata//1597131968.perfdata.service'
[08-10-2020 10:10:20] NPCD: Please have a look at 'npcd -V' to get license information
[08-10-2020 10:10:20] NPCD: HINT: load_threshold is enabled - ('60.000000')
[08-11-2020 09:43:18] NPCD: Caught Termination Signal - Hasta la vista... baby
[08-11-2020 09:43:18] NPCD: npcd Daemon (0.4.14) started with PID=26156
[08-11-2020 09:43:18] NPCD: Please have a look at 'npcd -V' to get license information
[08-11-2020 09:43:18] NPCD: HINT: load_threshold is enabled - ('60.000000')
[08-11-2020 09:45:42] NPCD: ERROR: Executed command exits with return code '7'
[08-11-2020 09:45:42] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /var/nagiosramdisk/spool/perfdata//1597131908.perfdata.service'
[08-11-2020 09:46:42] NPCD: ERROR: Executed command exits with return code '7'
[08-11-2020 09:46:42] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /var/nagiosramdisk/spool/perfdata//1597131968.perfdata.service'
-
- Posts: 161
- Joined: Tue Mar 10, 2020 11:07 am
Re: Perfdata: Nagios not painting performance graphs
[root@a2nagio001p ~]# systemctl status npcd.service
● npcd.service - LSB: Nagios NPCD Initscript
Loaded: loaded (/etc/rc.d/init.d/npcd; bad; vendor preset: disabled)
Active: active (running) since Tue 2020-08-11 10:30:25 CEST; 5s ago
Docs: man:systemd-sysv-generator(8)
Process: 64086 ExecStop=/etc/rc.d/init.d/npcd stop (code=exited, status=0/SUCCESS)
Process: 65104 ExecStart=/etc/rc.d/init.d/npcd start (code=exited, status=0/SUCCESS)
Main PID: 65109 (npcd)
CGroup: /system.slice/npcd.service
└─65109 /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg
Aug 11 10:30:25 a2nagio001p.fcc.intfcc.local systemd[1]: Starting LSB: Nagios NPCD Initscript...
Aug 11 10:30:25 a2nagio001p.fcc.intfcc.local npcd[65104]: NPCD started.
Aug 11 10:30:25 a2nagio001p.fcc.intfcc.local systemd[1]: Failed to read PID from file /usr/local/nagiosxi/var/subsys/npcd.pid: Invalid argument
Aug 11 10:30:25 a2nagio001p.fcc.intfcc.local systemd[1]: Started LSB: Nagios NPCD Initscript.
[root@a2nagio001p ~]#
● npcd.service - LSB: Nagios NPCD Initscript
Loaded: loaded (/etc/rc.d/init.d/npcd; bad; vendor preset: disabled)
Active: active (running) since Tue 2020-08-11 10:30:25 CEST; 5s ago
Docs: man:systemd-sysv-generator(8)
Process: 64086 ExecStop=/etc/rc.d/init.d/npcd stop (code=exited, status=0/SUCCESS)
Process: 65104 ExecStart=/etc/rc.d/init.d/npcd start (code=exited, status=0/SUCCESS)
Main PID: 65109 (npcd)
CGroup: /system.slice/npcd.service
└─65109 /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg
Aug 11 10:30:25 a2nagio001p.fcc.intfcc.local systemd[1]: Starting LSB: Nagios NPCD Initscript...
Aug 11 10:30:25 a2nagio001p.fcc.intfcc.local npcd[65104]: NPCD started.
Aug 11 10:30:25 a2nagio001p.fcc.intfcc.local systemd[1]: Failed to read PID from file /usr/local/nagiosxi/var/subsys/npcd.pid: Invalid argument
Aug 11 10:30:25 a2nagio001p.fcc.intfcc.local systemd[1]: Started LSB: Nagios NPCD Initscript.
[root@a2nagio001p ~]#
-
- Posts: 161
- Joined: Tue Mar 10, 2020 11:07 am
Re: Perfdata: Nagios not painting performance graphs
[root@a2nagio001p ~]# tail -f /usr/local/nagiosxi/var/perfdataproc.log
Outbound data DISABLED Tue, 11 Aug 2020 10:55:01 +0200
Outbound data DISABLED Tue, 11 Aug 2020 10:56:01 +0200
DONE. Processed 0 files.
DONE. Processed 0 files.
Outbound data DISABLED Tue, 11 Aug 2020 10:57:01 +0200
DONE. Processed 0 files.
Outbound data DISABLED Tue, 11 Aug 2020 10:58:01 +0200
DONE. Processed 0 files.
Outbound data DISABLED Tue, 11 Aug 2020 10:59:01 +0200
Outbound data DISABLED Tue, 11 Aug 2020 11:00:01 +0200
DONE. Processed 0 files.
Outbound data DISABLED Tue, 11 Aug 2020 10:55:01 +0200
Outbound data DISABLED Tue, 11 Aug 2020 10:56:01 +0200
DONE. Processed 0 files.
DONE. Processed 0 files.
Outbound data DISABLED Tue, 11 Aug 2020 10:57:01 +0200
DONE. Processed 0 files.
Outbound data DISABLED Tue, 11 Aug 2020 10:58:01 +0200
DONE. Processed 0 files.
Outbound data DISABLED Tue, 11 Aug 2020 10:59:01 +0200
Outbound data DISABLED Tue, 11 Aug 2020 11:00:01 +0200
DONE. Processed 0 files.
-
- Posts: 161
- Joined: Tue Mar 10, 2020 11:07 am
Re: Perfdata: Nagios not painting performance graphs
Hi,
We got some improve:
diff /usr/local/nagiosxi/var/xi-sys.cfg /usr/local/nagiosxi/var/xi-sys.cfg.20200811
[root@a2nagio001p nagiosramdisk]# diff /usr/local/nagiosxi/var/xi-sys.cfg /usr/local/nagiosxi/var/xi-sys.cfg.20200811
34,35c34,35
< cfg__xidpe_dir='/var/nagiosramdisk/spool/xidpe'
< cfg__perfdata_spool='/var/nagiosramdisk/spool/perfdata'
---
> cfg__xidpe_dir='/usr/local/nagios/var/spool/xidpe/'
> cfg__perfdata_spool='/usr/local/nagios/var/spool/perfdata/'
[root@a2nagio001p nagiosramdisk]#
We got some improve:
diff /usr/local/nagiosxi/var/xi-sys.cfg /usr/local/nagiosxi/var/xi-sys.cfg.20200811
[root@a2nagio001p nagiosramdisk]# diff /usr/local/nagiosxi/var/xi-sys.cfg /usr/local/nagiosxi/var/xi-sys.cfg.20200811
34,35c34,35
< cfg__xidpe_dir='/var/nagiosramdisk/spool/xidpe'
< cfg__perfdata_spool='/var/nagiosramdisk/spool/perfdata'
---
> cfg__xidpe_dir='/usr/local/nagios/var/spool/xidpe/'
> cfg__perfdata_spool='/usr/local/nagios/var/spool/perfdata/'
[root@a2nagio001p nagiosramdisk]#