RRD and XML files no created

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagiosdxc
Posts: 2
Joined: Wed Feb 19, 2020 10:54 am

RRD and XML files no created

Post by nagiosdxc »

Since February 18th, rrd and xml files are not generated in /usr/local/nagios/share/perfdata for services, so I don't get the graphics. Only the host, the rrd and xml files for host appear, but the graphs are updated and appear. I have done the steps of https://support.nagios.com/kb/article.php?id=9 and I still have the same problems. The message that I get in the graphics is "no data to display" and if it is a new service "No performance graphs were found for this service. If you have just started monitoring this object then it may take up to 15 minutes for the performance graphs to appear", do you have any idea what could be happening and why these files are not generated?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: RRD and XML files no created

Post by Box293 »

Please follow this KB article to troubleshoot your issue:
https://support.nagios.com/kb/article/n ... ems-9.html
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mtategcps
Posts: 2
Joined: Tue Jan 14, 2020 10:43 am

Re: RRD and XML files no created

Post by mtategcps »

I've gone through all those steps also and still can't get graphs:

Code: Select all

ls /usr/local/nagios/var/spool/perfdata/ | wc -l
512
/usr/local/nagios/share/perfdata# ls /usr/local/nagios/var/spool/xidpe/ | wc -l
0

chage -l nagios
Last password change                                    : Jan 28, 2020
Password expires                                        : never
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : 0
Maximum number of days between password change          : 99999
Number of days of warning before password expires       : 7
The subfolders under /usr/local/nagios/share/perfdata have no files, and I'm getting nothing in the logs.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: RRD and XML files no created

Post by scottwilkerson »

What are yo seeing when you run the following

Code: Select all

service npcd status
tail -20 /usr/local/nagios/var/npcd.log
tail -20 /usr/local/nagios/var/perfdata.log
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mtategcps
Posts: 2
Joined: Tue Jan 14, 2020 10:43 am

Re: RRD and XML files no created

Post by mtategcps »

I should mention that this system was shutdown in Feb, probably not cleanlly.

Code: Select all

# service npcd status
● npcd.service - LSB: pnp4nagios NPCD Daemon Version 0.6.26
   Loaded: loaded (/etc/init.d/npcd; generated)
   Active: active (running) since Wed 2020-03-18 18:39:13 UTC; 23min ago
     Docs: man:systemd-sysv-generator(8)
    Tasks: 1 (limit: 9513)
   CGroup: /system.slice/npcd.service
           └─1374 /usr/local/pnp4nagios/bin/npcd -d -f /usr/local/pnp4nagios/etc/npcd.cfg
Mar 18 18:39:13 LX000NAGP01 systemd[1]: Starting LSB: pnp4nagios NPCD Daemon Version 0.6.26...
Mar 18 18:39:13 LX000NAGP01 npcd[1260]: Starting npcd: done.
Mar 18 18:39:13 LX000NAGP01 NPCD[1374]: npcd Daemon (0.6.26) started with PID=1374
Mar 18 18:39:13 LX000NAGP01 systemd[1]: Started LSB: pnp4nagios NPCD Daemon Version 0.6.26.
Mar 18 18:39:13 LX000NAGP01 NPCD[1374]: Please have a look at 'npcd -V' to get license information
Mar 18 18:39:13 LX000NAGP01 NPCD[1374]: HINT: load_threshold is disabled - ('0.000000')
That's been running all along

Code: Select all

# tail -20 /usr/local/nagios/var/npcd.log
[01-28-2020 16:19:54] NPCD: npcd Daemon (0.4.14) started with PID=8185
[01-28-2020 16:19:54] NPCD: Please have a look at 'npcd -V' to get license information
[01-28-2020 16:19:54] NPCD: HINT: load_threshold is enabled - ('10.000000')
[02-21-2020 02:57:42] NPCD: Caught Termination Signal - Hasta la vista... baby
Nothing since the shutdown.

Code: Select all

tail -20 /usr/local/nagios/var/perfdata.log
tail: cannot open '/usr/local/nagios/var/perfdata.log' for reading: No such file or directory
I do have a perfdata.log file in /usr/local/pnp4nagios/var/. Here's the tail of that:

Code: Select all

2020-01-30 20:16:28 [49240] [0] process_perfdata.pl-0.6.26 Gearman Worker Daemon
2020-01-30 20:16:28 [49240] [0] Encryptions is enabled
2020-01-30 20:16:28 [49240] [0] Using encryption key specified in /usr/local/pnp4nagios/etc/process_perfdata.cfg
2020-01-30 20:16:28 [49245] [0] Pidfile (/usr/local/pnp4nagios/var/pnp_gearman_worker.pid) created
2020-01-30 20:16:28 [49246] [0] connecting to gearmand 'localhost:4730'
2020-02-21 02:57:41 [49245] [0] *** process_perfdata.pl terminated on signal TERM
2020-02-21 02:57:41 [49245] [0] Removing pidfile (/usr/local/pnp4nagios/var/pnp_gearman_worker.pid)
2020-02-21 02:57:41 [49245] [0] *** process_perfdata.pl received signal HUP (ignored)
2020-02-21 02:57:41 [49246] [0] *** process_perfdata.pl received signal HUP (ignored)
If you would prefer I move this to a new post, please let me know.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: RRD and XML files no created

Post by scottwilkerson »

Your logs suggest you are sending perfdata to gearman workers which will not work.

This is likely going to require us needing to see a log of files to fix what was changed, I would highly recommend opening a ticket here
https://support.nagios.com/tickets/
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked