Hi,
I can see the graphs for all generic services on a host but looking for a performance graph on a custom service written for host.
Need Graph Explorer for custom service on a host
-
- Posts: 9
- Joined: Wed Jan 04, 2017 11:52 am
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Need Graph Explorer for custom service on a host
Is this service check returning performance data?
If you look at the Service detail page for this service and click the Advanced tab, is there data next to "Performance Data:"?
If you look at the Service detail page for this service and click the Advanced tab, is there data next to "Performance Data:"?
-
- Posts: 9
- Joined: Wed Jan 04, 2017 11:52 am
Re: Need Graph Explorer for custom service on a host
NO, it does not.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Need Graph Explorer for custom service on a host
Nagios only make performance graphs for plugins that return performance data. Not all do so, it depends on the author.rajeshkondapalli wrote:NO, it does not.
You can see the information on performance data output here
https://nagios-plugins.org/doc/guidelines.html#AEN200
-
- Posts: 9
- Joined: Wed Jan 04, 2017 11:52 am
Re: Need Graph Explorer for custom service on a host
My custom service just spits out a "%", but still unable to get performance graph.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Need Graph Explorer for custom service on a host
Does it follow a pipe (|) in the correct format as outlined by the link above?rajeshkondapalli wrote:My custom service just spits out a "%", but still unable to get performance graph.
Nagios 3 and newer will concatenate the parts following a "|" in a) the first line output by the plugin, and b) in the second to last line, into a string it passes to whatever performance data processing it has configured. (Note that it currently does not insert additional whitespace between both, so the plugin needs to provide some to prevent the last pair of a) and the first of b) getting run together.) Please refer to the Nagios documentation for information on how to configure such processing. However, it is the responsibility of the plugin writer to ensure the performance data is in a "Nagios Plugins" format.