Some host painting other no
Some service painting other no
I do not believe in RAMDISK ...
Slow?
Bad?
What can I do?
Perfdata: Nagios not painting performance graphs
-
- Posts: 161
- Joined: Tue Mar 10, 2020 11:07 am
-
- Posts: 161
- Joined: Tue Mar 10, 2020 11:07 am
Re: Perfdata: Nagios not painting performance graphs
Hosts painting but services no
-
- Posts: 161
- Joined: Tue Mar 10, 2020 11:07 am
Re: Perfdata: Nagios not painting performance graphs
2020-08-11 13:14:15 [118711] [1] 1866 lines processed
2020-08-11 13:14:15 [118711] [1] Could not delete /var/nagiosramdisk/spool/perfdata//1597144441.perfdata.service-PID-118711:No such file or directory
2020-08-11 13:14:15 [118711] [1] PNP exiting (runtime 12.067413s) ...
2020-08-11 13:14:15 [118711] [1] Could not delete /var/nagiosramdisk/spool/perfdata//1597144441.perfdata.service-PID-118711:No such file or directory
2020-08-11 13:14:15 [118711] [1] PNP exiting (runtime 12.067413s) ...
-
- 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/perfdata.log
2020-08-11 13:14:15 [118711] [2] Datatype set to 'SERVICEPERFDATA'
2020-08-11 13:14:15 [118711] [1] Found Performance Data for A2SQL094T.FCC.INTFCC.LOCAL / OS_Windows_1_7_EventLog_id_50_Template ('eventlog'=0;1;1)
2020-08-11 13:14:15 [118711] [2] No Custom Template found for check_nrpe (/usr/local/nagios/etc/pnp/check_commands/check_nrpe.cfg)
2020-08-11 13:14:15 [118711] [2] Template is check_nrpe.php
2020-08-11 13:14:15 [118711] [2] data2rrd called
2020-08-11 13:14:15 [118711] [2] RRDs::update /usr/local/nagios/share/perfdata/A2SQL094T.FCC.INTFCC.LOCAL/OS_Windows_1_7_EventLog_id_50_Template.rrd 1597144441:0
2020-08-11 13:14:15 [118711] [2] /usr/local/nagios/share/perfdata/A2SQL094T.FCC.INTFCC.LOCAL/OS_Windows_1_7_EventLog_id_50_Template.rrd updated
2020-08-11 13:14:15 [118711] [1] 1866 lines processed
2020-08-11 13:14:15 [118711] [1] Could not delete /var/nagiosramdisk/spool/perfdata//1597144441.perfdata.service-PID-118711:No such file or directory
2020-08-11 13:14:15 [118711] [1] PNP exiting (runtime 12.067413s) ...
2020-08-11 13:14:15 [118711] [2] Datatype set to 'SERVICEPERFDATA'
2020-08-11 13:14:15 [118711] [1] Found Performance Data for A2SQL094T.FCC.INTFCC.LOCAL / OS_Windows_1_7_EventLog_id_50_Template ('eventlog'=0;1;1)
2020-08-11 13:14:15 [118711] [2] No Custom Template found for check_nrpe (/usr/local/nagios/etc/pnp/check_commands/check_nrpe.cfg)
2020-08-11 13:14:15 [118711] [2] Template is check_nrpe.php
2020-08-11 13:14:15 [118711] [2] data2rrd called
2020-08-11 13:14:15 [118711] [2] RRDs::update /usr/local/nagios/share/perfdata/A2SQL094T.FCC.INTFCC.LOCAL/OS_Windows_1_7_EventLog_id_50_Template.rrd 1597144441:0
2020-08-11 13:14:15 [118711] [2] /usr/local/nagios/share/perfdata/A2SQL094T.FCC.INTFCC.LOCAL/OS_Windows_1_7_EventLog_id_50_Template.rrd updated
2020-08-11 13:14:15 [118711] [1] 1866 lines processed
2020-08-11 13:14:15 [118711] [1] Could not delete /var/nagiosramdisk/spool/perfdata//1597144441.perfdata.service-PID-118711:No such file or directory
2020-08-11 13:14:15 [118711] [1] PNP exiting (runtime 12.067413s) ...
-
- Posts: 161
- Joined: Tue Mar 10, 2020 11:07 am
Re: Perfdata: Nagios not painting performance graphs
2020-08-11 15:04:45 [83447] [1] Could not delete /var/nagiosramdisk/spool/perfdata//1597151068.perfdata.service-PID-83447:No such file or directory
2020-08-11 15:04:45 [83447] [1] PNP exiting (runtime 11.391175s) ...
[root@a2nagio001p perfdata]# cat /usr/local/nagios/var/perfdata.log|grep dele
2020-08-11 15:04:45 [83447] [1] Could not delete /var/nagiosramdisk/spool/perfdata//1597151068.perfdata.service-PID-83447:No such file or directory
[root@a2nagio001p perfdata]# locate 1597151068.perfdata.service-PID-83447
[root@a2nagio001p perfdata]# updatedb
[root@a2nagio001p perfdata]# locate 1597151068.perfdata.service-PID
[root@a2nagio001p perfdata]# locate perfdata.service-PID
[root@a2nagio001p perfdata]#
2020-08-11 15:04:45 [83447] [1] PNP exiting (runtime 11.391175s) ...
[root@a2nagio001p perfdata]# cat /usr/local/nagios/var/perfdata.log|grep dele
2020-08-11 15:04:45 [83447] [1] Could not delete /var/nagiosramdisk/spool/perfdata//1597151068.perfdata.service-PID-83447:No such file or directory
[root@a2nagio001p perfdata]# locate 1597151068.perfdata.service-PID-83447
[root@a2nagio001p perfdata]# updatedb
[root@a2nagio001p perfdata]# locate 1597151068.perfdata.service-PID
[root@a2nagio001p perfdata]# locate perfdata.service-PID
[root@a2nagio001p perfdata]#
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Perfdata: Nagios not painting performance graphs
Hi,
Then run the following command, and let me know if the files are spooling up. Is the system able to keep up processing the performance data?
If so, are the other hosts and services processing performance data? If not, let's check the permission settings:
It looks like restarting npcd did help, but only for certain hosts and services, let's do a full re-start.Some host painting other no
Some service painting other no
Code: Select all
systemctl stop crond
systemctl stop npcd
systemctl stop nagios
pkill -9 -u nagios
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 nagios
systemctl start npcd
systemctl start crond
systemctl restart httpd
Code: Select all
watch -n 1 'ls /var/nagiosramdisk/spool/perfdata/ | wc -l'
Code: Select all
ll /usr/local/nagios/libexec/process_perfdata.pl
ll /var/nagiosramdisk
ll /var/nagiosramdisk/spool
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
[root@a2nagio001p un_ramdisk]# tail -f /usr/local/nagios/var/perfdata.log
2020-08-12 09:44:43 [108026] [2] Datatype set to 'SERVICEPERFDATA'
2020-08-12 09:44:43 [108026] [1] Found Performance Data for esixegafa01t.fcc.intfcc.local / Template_ClusterWindows_EventLog_id_1197 ('count'=0;1;1)
2020-08-12 09:44:43 [108026] [2] No Custom Template found for check_nrpe (/usr/local/nagios/etc/pnp/check_commands/check_nrpe.cfg)
2020-08-12 09:44:43 [108026] [2] Template is check_nrpe.php
2020-08-12 09:44:43 [108026] [2] data2rrd called
2020-08-12 09:44:43 [108026] [2] RRDs::update /usr/local/nagios/share/perfdata/esixegafa01t.fcc.intfcc.local/Template_ClusterWindows_EventLog_id_1197.rrd 1597218270:0
2020-08-12 09:44:43 [108026] [2] /usr/local/nagios/share/perfdata/esixegafa01t.fcc.intfcc.local/Template_ClusterWindows_EventLog_id_1197.rrd updated
2020-08-12 09:44:43 [108026] [1] 2451 lines processed
2020-08-12 09:44:43 [108026] [1] Could not delete /var/nagiosramdisk/spool/perfdata//1597218270.perfdata.service-PID-108026:No such file or directory
2020-08-12 09:44:43 [108026] [1] PNP exiting (runtime 9.618538s) ...
^C
[root@a2nagio001p un_ramdisk]# systemctl stauts npcd.service
Unknown operation 'stauts'.
[root@a2nagio001p un_ramdisk]# 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 Wed 2020-08-12 09:39:19 CEST; 8min ago
Docs: man:systemd-sysv-generator(8)
Process: 79801 ExecStop=/etc/rc.d/init.d/npcd stop (code=exited, status=0/SUCCESS)
Process: 58192 ExecStart=/etc/rc.d/init.d/npcd start (code=exited, status=0/SUCCESS)
Main PID: 58195 (npcd)
CGroup: /system.slice/npcd.service
└─58195 /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg
Aug 12 09:39:19 a2nagio001p.fcc.intfcc.local systemd[1]: Starting LSB: Nagios NPCD Initscript...
Aug 12 09:39:19 a2nagio001p.fcc.intfcc.local npcd[58192]: NPCD started.
Aug 12 09:39:19 a2nagio001p.fcc.intfcc.local systemd[1]: Failed to read PID from file /usr/local/nagiosxi/var/subsys/npcd.pid: Invalid argument
Aug 12 09:39:19 a2nagio001p.fcc.intfcc.local systemd[1]: Started LSB: Nagios NPCD Initscript.
[root@a2nagio001p un_ramdisk]# watch -n 1 'ls /var/nagiosramdisk/spool/perfdata/ | wc -l'
[root@a2nagio001p un_ramdisk]# ls /var/nagiosramdisk/spool/perfdata/ | wc -l'
> ^C
[root@a2nagio001p un_ramdisk]# ls /var/nagiosramdisk/spool/perfdata/ | wc -l
0
[root@a2nagio001p un_ramdisk]# ll /usr/local/nagios/libexec/process_perfdata.pl
-rwxr-xr-x 1 root nagios 42803 Jun 20 2019 /usr/local/nagios/libexec/process_perfdata.pl
[root@a2nagio001p un_ramdisk]# ll /var/nagiosramdisk
total 98316
-rw-r--r-- 1 nagios nagios 22679 Aug 12 09:49 host-perfdata
-rw-r--r-- 1 nagios nagios 39199094 Aug 12 09:39 objects.cache
-rw-r--r-- 1 nagios nagios 530597 Aug 12 09:49 service-perfdata
drwxrwxr-x 5 nagios nagios 100 Aug 5 15:09 spool
-rw-r--r-- 1 nagios nagios 60914796 Aug 12 09:49 status.dat
drwxrwxr-x 2 nagios nagios 40 Aug 12 09:39 tmp
[root@a2nagio001p un_ramdisk]# ll /var/nagiosramdisk/spool
total 0
drwxrwxr-x 2 nagios nagios 40 Aug 12 09:39 checkresults
drwxrwxr-x 2 nagios nagios 40 Aug 12 09:50 perfdata
drwxrwxr-x 2 nagios nagios 40 Aug 12 09:50 xidpe
[root@a2nagio001p un_ramdisk]#
2020-08-12 09:44:43 [108026] [2] Datatype set to 'SERVICEPERFDATA'
2020-08-12 09:44:43 [108026] [1] Found Performance Data for esixegafa01t.fcc.intfcc.local / Template_ClusterWindows_EventLog_id_1197 ('count'=0;1;1)
2020-08-12 09:44:43 [108026] [2] No Custom Template found for check_nrpe (/usr/local/nagios/etc/pnp/check_commands/check_nrpe.cfg)
2020-08-12 09:44:43 [108026] [2] Template is check_nrpe.php
2020-08-12 09:44:43 [108026] [2] data2rrd called
2020-08-12 09:44:43 [108026] [2] RRDs::update /usr/local/nagios/share/perfdata/esixegafa01t.fcc.intfcc.local/Template_ClusterWindows_EventLog_id_1197.rrd 1597218270:0
2020-08-12 09:44:43 [108026] [2] /usr/local/nagios/share/perfdata/esixegafa01t.fcc.intfcc.local/Template_ClusterWindows_EventLog_id_1197.rrd updated
2020-08-12 09:44:43 [108026] [1] 2451 lines processed
2020-08-12 09:44:43 [108026] [1] Could not delete /var/nagiosramdisk/spool/perfdata//1597218270.perfdata.service-PID-108026:No such file or directory
2020-08-12 09:44:43 [108026] [1] PNP exiting (runtime 9.618538s) ...
^C
[root@a2nagio001p un_ramdisk]# systemctl stauts npcd.service
Unknown operation 'stauts'.
[root@a2nagio001p un_ramdisk]# 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 Wed 2020-08-12 09:39:19 CEST; 8min ago
Docs: man:systemd-sysv-generator(8)
Process: 79801 ExecStop=/etc/rc.d/init.d/npcd stop (code=exited, status=0/SUCCESS)
Process: 58192 ExecStart=/etc/rc.d/init.d/npcd start (code=exited, status=0/SUCCESS)
Main PID: 58195 (npcd)
CGroup: /system.slice/npcd.service
└─58195 /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg
Aug 12 09:39:19 a2nagio001p.fcc.intfcc.local systemd[1]: Starting LSB: Nagios NPCD Initscript...
Aug 12 09:39:19 a2nagio001p.fcc.intfcc.local npcd[58192]: NPCD started.
Aug 12 09:39:19 a2nagio001p.fcc.intfcc.local systemd[1]: Failed to read PID from file /usr/local/nagiosxi/var/subsys/npcd.pid: Invalid argument
Aug 12 09:39:19 a2nagio001p.fcc.intfcc.local systemd[1]: Started LSB: Nagios NPCD Initscript.
[root@a2nagio001p un_ramdisk]# watch -n 1 'ls /var/nagiosramdisk/spool/perfdata/ | wc -l'
[root@a2nagio001p un_ramdisk]# ls /var/nagiosramdisk/spool/perfdata/ | wc -l'
> ^C
[root@a2nagio001p un_ramdisk]# ls /var/nagiosramdisk/spool/perfdata/ | wc -l
0
[root@a2nagio001p un_ramdisk]# ll /usr/local/nagios/libexec/process_perfdata.pl
-rwxr-xr-x 1 root nagios 42803 Jun 20 2019 /usr/local/nagios/libexec/process_perfdata.pl
[root@a2nagio001p un_ramdisk]# ll /var/nagiosramdisk
total 98316
-rw-r--r-- 1 nagios nagios 22679 Aug 12 09:49 host-perfdata
-rw-r--r-- 1 nagios nagios 39199094 Aug 12 09:39 objects.cache
-rw-r--r-- 1 nagios nagios 530597 Aug 12 09:49 service-perfdata
drwxrwxr-x 5 nagios nagios 100 Aug 5 15:09 spool
-rw-r--r-- 1 nagios nagios 60914796 Aug 12 09:49 status.dat
drwxrwxr-x 2 nagios nagios 40 Aug 12 09:39 tmp
[root@a2nagio001p un_ramdisk]# ll /var/nagiosramdisk/spool
total 0
drwxrwxr-x 2 nagios nagios 40 Aug 12 09:39 checkresults
drwxrwxr-x 2 nagios nagios 40 Aug 12 09:50 perfdata
drwxrwxr-x 2 nagios nagios 40 Aug 12 09:50 xidpe
[root@a2nagio001p un_ramdisk]#
-
- Posts: 161
- Joined: Tue Mar 10, 2020 11:07 am
Re: Perfdata: Nagios not painting performance graphs
I am gonna rollback ramdisk
Do you have a guide?
Thks
Do you have a guide?
Thks
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Perfdata: Nagios not painting performance graphs
Hi,
Remove NagiosRamdisk
Let me know if you're able to successfully remove it.
Documentation:
Utilizing a RAM Disk in Nagios XI
Alright, that can be done. The process of uninstalling the ramdisk is essentially the reverse of the installation. You remove the service file and change the configurations files and commands back to the previous settings. The steps are outlined in the following forum thread:I am gonna rollback ramdisk
Do you have a guide?
Remove NagiosRamdisk
Let me know if you're able to successfully remove it.
Documentation:
Utilizing a RAM Disk in Nagios XI
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
Hi benjaminsmith.
I know what is happening with Perfromance graph. The problem is compatibility with Nagfux. When I stopped Nagflux Nagios started to paint. But when I started Nagfux, Nagios Performance graph stop of painting at the time exactly. When in log we saw trying to delete a file -PID and Perfromance graph log says not found I suposse Nagfux just used yet or deleted yet. Are ther any way to make compatible both products.
Many Thanks
I know what is happening with Perfromance graph. The problem is compatibility with Nagfux. When I stopped Nagflux Nagios started to paint. But when I started Nagfux, Nagios Performance graph stop of painting at the time exactly. When in log we saw trying to delete a file -PID and Perfromance graph log says not found I suposse Nagfux just used yet or deleted yet. Are ther any way to make compatible both products.
Many Thanks