Page 1 of 1

Partial graph

Posted: Fri Nov 17, 2017 10:46 am
by Francesco
Hi all,
in our NagiosXI installation (v 5.4.11) we have a lot of check with a very long output (disk check), and some perf data are not drawed. Command are executeted trough NRPE

Code: Select all

$ /usr/local/nagios/libexec/check_nrpe -n -H REMOTE_SERVER
NRPE v2.12
$ /usr/local/nagios/libexec/check_nrpe -n -H REMOTE_SERVER -c REMOTE_COMMAND | wc
      1      89     909
So less than the 1024 limit of NRPE

Status information are cut off to 256 char (https://support.nagios.com/kb/article.php?id=478), but now is not a problem.

Performance data is correct show under "Service Status Detail --> Advanced --> Performance Data:", the gauge image is correctly displayed, but one of the graph is not drawed.

This is the output of commands found in this guide https://support.nagios.com/kb/article.php?id=9

Code: Select all

$ ls /usr/local/nagios/var/spool/perfdata/ | wc -l
0
$ ls /usr/local/nagios/var/spool/xidpe/ | wc -l
0
Raised LOG_LEVEL of process_perfdata.cfg, no error in perfdata.log
Changed the log_level of npcd.cfg, restarted service npcd, no error in npcd.log
Account nagios not locked.

Where is the problem?

It's possible to extract the performance data form database or the RRD file?

Thanks

Re: Partial graph

Posted: Fri Nov 17, 2017 12:01 pm
by npolovenko
Hello, @Francesco. Can you upload the plugin, the command definition, the screenshot of the performance data in service detail? Also, what data is not displaying in the graph? I will try to replicate this problem on my server and get back to you.

Re: Partial graph

Posted: Fri Nov 24, 2017 6:03 am
by Francesco
Hi @npolovenko,
  • plugin: the remote server is AIX, I still have to upload the binary file?
  • command definition: command[check_aix_disk_all]=/opt/nagios/libexec/check_disk -w 20% -c 10% -A -x /proc -x /mksysb_nim -x /aha
  • attached pref data
    screenshot_perfdata.png
Many thanks,

Re: Partial graph

Posted: Mon Nov 27, 2017 12:52 pm
by npolovenko
@Francesco, Your performance data output looks fine. Did you happen to add a new partition to this plugin recently? If you did, then I recommend deleting the RRD and XML files from /usr/local/nagios/share/perfdata/. That will force Nagios to recreate the graph and include all performance data.

Re: Partial graph

Posted: Thu Nov 30, 2017 4:49 am
by Francesco
Thanks @npolovenko for your reply.

Two question: Ciao

Re: Partial graph

Posted: Thu Nov 30, 2017 10:19 am
by Francesco
Hi,
backup done with the following commands:

Code: Select all

cd /usr/local/nagios/share/perfdata
mkdir NODE.bck
cp -av  NODE/DISK_USAGE.rrd NODE/DISK_USAGE.xml NODE.bck/
rrdtool dump NODE/DISK_USAGE.rrd > NODE.bck/DISK_USAGE.rrd.xml
rrdtool fetch NODE/DISK_USAGE.rrd AVERAGE -s -2y -e now > NODE.bck/DISK_USAGE-AVERAGE.csv
rrdtool fetch NODE/DISK_USAGE.rrd MIN -s -2y -e now > NODE.bck/DISK_USAGE-MIN.csv
rrdtool fetch NODE/DISK_USAGE.rrd MAX -s -2y -e now > NODE.bck/DISK_USAGE-MAX.csv
The reset works, now we see the 14th filesystem, but...

... "Performance Data Tool" give me the following error during the merge operations:

Code: Select all

Processed 1 item
Merging: /usr/local/nagios/share/perfdata/prdsbldbs03.bck/DISK_USAGE.rrd ---> /usr/local/nagios/share/perfdata/prdsbldbs03/DISK_USAGE.rrd
Result:
Traceback (most recent call last):
File "scripts/rrdmerge", line 262, in 
sys.exit(main())
File "scripts/rrdmerge", line 253, in main
merged_et = merge_rrd_xml(old_et, new_et)
File "scripts/rrdmerge", line 167, in merge_rrd_xml
"RRDs have different number of DSes."
AssertionError: RRDs have different number of DSes.
There is a way to merge single "DS"?

Thanks,

Re: Partial graph

Posted: Thu Nov 30, 2017 12:50 pm
by npolovenko
@Francesco, Check out this tutorial on how to add multiple data sources into one RRD file, the link to the script is inside:
https://support.nagios.com/kb/article/n ... g-149.html