Perfdata Graph only integer
- suportenebrasil
- Posts: 9
- Joined: Tue Aug 06, 2019 2:25 pm
- Contact:
Perfdata Graph only integer
In nagiosxi, the services graph shows broken values even though the service is an integer. I know PerfData uses Round Robin. But how do I define the chart to show only the value of the service? Without AVERAGE? I tried to change in 'Manage Graph Templates' to 'LAST' but to no avail ...
Re: Perfdata Graph only integer
Can you provide a screen shot of the graph so we can see what it looks like?
Also, provide a screen capture of the Advanced Tab for the same service under the service details menu.
Thanks
Also, provide a screen capture of the Advanced Tab for the same service under the service details menu.
Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
- suportenebrasil
- Posts: 9
- Joined: Tue Aug 06, 2019 2:25 pm
- Contact:
Re: Perfdata Graph only integer
I only want integer values.
I created a plugin to generate random and integer values only.
Thanks for answering!
I created a plugin to generate random and integer values only.
Thanks for answering!
You do not have the required permissions to view the files attached to this post.
Re: Perfdata Graph only integer
The second screen capture was the Overview Tab, not the Advanced Tab which is the Tab with the Black Box with the white Plus Sign.
I know what the issue is that the rrdtool that plots the data is a lossy formula and the rounding of the data, creates the decimal point data to be plotted.
This article talks about the same issue except it is using the check_snmp plugin. You can follow and create the same fix except adjust the names to your plugin / command and that should work for you.
https://support.nagios.com/forum/viewto ... 65#p146465
I know what the issue is that the rrdtool that plots the data is a lossy formula and the rounding of the data, creates the decimal point data to be plotted.
This article talks about the same issue except it is using the check_snmp plugin. You can follow and create the same fix except adjust the names to your plugin / command and that should work for you.
https://support.nagios.com/forum/viewto ... 65#p146465
Be sure to check out our Knowledgebase for helpful articles and solutions!
- suportenebrasil
- Posts: 9
- Joined: Tue Aug 06, 2019 2:25 pm
- Contact:
Re: Perfdata Graph only integer
(I tried to put in the folder "/usr/local/nagios/etc/pnp/check_commands/check_testgraph.cfg":= 'DATATYPE = GAUGE', and delete 'rrd/xml'.)
I could not do the graph is with 'integer'. I tried to put perfdata with "c", but also does not work 'integer'.(Performance Data: test=4c;0;0;)
Thanks.
I could not do the graph is with 'integer'. I tried to put perfdata with "c", but also does not work 'integer'.(Performance Data: test=4c;0;0;)
Thanks.
You do not have the required permissions to view the files attached to this post.
Re: Perfdata Graph only integer
Lets enabling debugging for the performance processing daemons.
Edit this file
Change
To:
Save it
Edit this file
Change
to
Save out the file and restart these services by running
Let the system run for 20 to 30 minutes and post the following files here so we can see what the check is returning.
Also, post the .xml and .rrd file so I can check them as well.
Edit this file
Code: Select all
/usr/local/nagios/etc/pnp/npcd.cfgCode: Select all
log_level = 0Code: Select all
log_level = 2Edit this file
Code: Select all
/usr/local/nagios/etc/pnp/npcd.cfgCode: Select all
LOG_LEVEL = 0Code: Select all
LOG_LEVEL = 2Code: Select all
service npcd restart
service nagios restartLet the system run for 20 to 30 minutes and post the following files here so we can see what the check is returning.
Code: Select all
/usr/local/nagios/var/perfdata.log
/usr/local/nagios/var/npcd.logBe sure to check out our Knowledgebase for helpful articles and solutions!
- suportenebrasil
- Posts: 9
- Joined: Tue Aug 06, 2019 2:25 pm
- Contact:
Re: Perfdata Graph only integer
I put in a test VM for easy viewing of the logs (nagiosxi 5.6.9). I created a service called 'check_testgraph_gauge.sh' on localhost.(Performance Data: test=4;0;0).
I added the template to '/usr/local/nagios/etc/pnp/check_commands/check_testgraph_gauge.cfg' (Uncommented 'DATATYPE = GAUGE' line only. /And permissions apache/nagios).
I deleted the files rrd/xml and restarted nagios/npcd.
Follows the attached logs,
Thanks.
I added the template to '/usr/local/nagios/etc/pnp/check_commands/check_testgraph_gauge.cfg' (Uncommented 'DATATYPE = GAUGE' line only. /And permissions apache/nagios).
I deleted the files rrd/xml and restarted nagios/npcd.
Follows the attached logs,
Thanks.
You do not have the required permissions to view the files attached to this post.
Re: Perfdata Graph only integer
The logs show this:
Please also send us a copy of the check_testgraph_gauge.cfg as well as /usr/local/nagios/share/pnp/templates.dist/check_testgraph_gauge.php.
Code: Select all
No Custom Template found for check_testgraph_gaugeAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
- suportenebrasil
- Posts: 9
- Joined: Tue Aug 06, 2019 2:25 pm
- Contact:
Re: Perfdata Graph only integer
"2019-12-21 11:11:39 [4677] [2] No Custom Template found for check_testgraph_gauge (/usr/local/nagios/etc/pnp/check_commands/check_testgraph_gauge.cfg)";
I sent the whole log, with debug enabled from the beginning.
This message seems to disappear at the end of the log, no?
"2019-12-21 11:12:40 [5030] [3] DEBUG: adjust_template() => /usr/local/nagios/etc/pnp/check_commands/check_testgraph_gauge.cfg";
I sent the whole log, with debug enabled from the beginning.
This message seems to disappear at the end of the log, no?
"2019-12-21 11:12:40 [5030] [3] DEBUG: adjust_template() => /usr/local/nagios/etc/pnp/check_commands/check_testgraph_gauge.cfg";
You do not have the required permissions to view the files attached to this post.
Re: Perfdata Graph only integer
Thanks for the data. I will need to look into this further on my end and confirm with @tgriep. I've been under the impression that what you are looking for isn't possible, but there may work around that I am not aware of.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.