Page 1 of 1
Graphing "Plugin Execution Time"
Posted: Tue Jun 04, 2013 8:26 am
by mrochelle
Is there an existing procedure to add a plugin's execution time to the performance statistics? I have several plugins that do not return numeric information but I would like to plot the execution duration. I could manually add the code to calculate it but since this is already captured in nagios I thought I may be missing a simple procedure to just add it to the performance statistics.
Thanks

,
Marcus
Re: Graphing "Plugin Execution Time"
Posted: Tue Jun 04, 2013 9:20 am
by slansing
I don't personally know of an easy way to pull the timer which averages plugin execution time throughout the interface, but it would not be difficult to add a few lines into your plugin to calculate start to finish. A good plugin to look at for a simple mechanism could be the ping plugin, or really any plugin that returns a generated time constraint.
Re: Graphing "Plugin Execution Time"
Posted: Tue Jun 04, 2013 9:53 am
by mrochelle
Ok, I can do that. I just wanted to verify that I was not missing something. Thank You.
Re: Graphing "Plugin Execution Time"
Posted: Tue Jun 04, 2013 9:56 am
by slansing
No problem, closing as resolved.