Need help using graphing API
Posted: Fri Oct 11, 2013 5:08 pm
I've just released the Performance Data Tool (PDT) however I need some assistance with accessing the graphing API.
One of the concepts behind the PDT is to be able to access performance data files for services that are now disabled. Because the services are no longer active in Nagios XI I am having trouble using the graphing API because I need to provide a service ID. For example the url is something like this:
However being a disabled service it no longer has a service ID. Is there a way to use the graphing API to access RRD files for services that are not enabled?
The place I need to be able to put the code into the PDT is in the file "performance_data_tool_display_contents.php" lines 86-92 (I'll probably need to create a function as well).
Any ideas how I can achieve this?
Cheers
Troy
One of the concepts behind the PDT is to be able to access performance data files for services that are now disabled. Because the services are no longer active in Nagios XI I am having trouble using the graphing API because I need to provide a service ID. For example the url is something like this:
Code: Select all
http://192.168.1.101/nagiosxi/perfgraphs/?&host=localhost&service=Current+Load&source=1&mode=2&service_id=87The place I need to be able to put the code into the PDT is in the file "performance_data_tool_display_contents.php" lines 86-92 (I'll probably need to create a function as well).
Any ideas how I can achieve this?
Cheers
Troy