Partial graph

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
Francesco
Posts: 124
Joined: Wed Oct 28, 2015 5:02 am
Location: /usr
Contact:

Partial graph

Post 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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Partial graph

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
Francesco
Posts: 124
Joined: Wed Oct 28, 2015 5:02 am
Location: /usr
Contact:

Re: Partial graph

Post 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,
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Partial graph

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
Francesco
Posts: 124
Joined: Wed Oct 28, 2015 5:02 am
Location: /usr
Contact:

Re: Partial graph

Post by Francesco »

Thanks @npolovenko for your reply.

Two question: Ciao
User avatar
Francesco
Posts: 124
Joined: Wed Oct 28, 2015 5:02 am
Location: /usr
Contact:

Re: Partial graph

Post 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,
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Partial graph

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked