Thank you, I'll be waiting. I am trying as per these other comments:
https://stackoverflow.com/questions/166 ... eger-value
Perfdata Graph only integer
- suportenebrasil
- Posts: 9
- Joined: Tue Aug 06, 2019 2:25 pm
- Contact:
Re: Perfdata Graph only integer
One thing to note, the graph templates only work with the legacy versions of the Graphs, not the Highchart version of the graph.
Go switch to the Legacy version, go to the Admin > System Settings menu and click on the Theme & Display Tab.
Deselect the box for "Use Highcharts for Performance Graphs page and host/service detail pages (host/service popup graph always uses Highcharts)" and save the settings.
Go to the Service Details for the Service and Click on the Performance Graphs Tab, that is where you will see the Legacy version of the Graphs.
If you still see the decimal places after the integer, you can edit the check_testgraph_gauge.php file and change this from
to
And that should strip off the Decimal points from the graph.
Go switch to the Legacy version, go to the Admin > System Settings menu and click on the Theme & Display Tab.
Deselect the box for "Use Highcharts for Performance Graphs page and host/service detail pages (host/service popup graph always uses Highcharts)" and save the settings.
Go to the Service Details for the Service and Click on the Performance Graphs Tab, that is where you will see the Legacy version of the Graphs.
If you still see the decimal places after the integer, you can edit the check_testgraph_gauge.php file and change this from
Code: Select all
$def[1] .= "GPRINT:var1:LAST:\"%3.4lg %s$UNIT[1] LAST \" ";
$def[1] .= "GPRINT:var1:MAX:\"%3.4lg %s$UNIT[1] MAX \" ";
$def[1] .= "GPRINT:var1:AVERAGE:\"%3.4lg %s$UNIT[1] AVERAGE \" "; Code: Select all
$def[1] .= "GPRINT:var1:LAST:\"%3.4lg %s$UNIT[1] LAST \" ";
$def[1] .= "GPRINT:var1:MAX:\"%3.4lg %s$UNIT[1] MAX \" ";
$def[1] .= "GPRINT:var1:AVERAGE:\"%3.4lg %s$UNIT[1] AVERAGE \" "; 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
Thanks!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Perfdata Graph only integer
Locking threadsuportenebrasil wrote:Thanks!