Graphing "Plugin Execution Time"

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
mrochelle
Posts: 238
Joined: Fri May 04, 2012 11:20 am
Location: Heart of America

Graphing "Plugin Execution Time"

Post 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 :geek: ,
Marcus
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Graphing "Plugin Execution Time"

Post 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.
User avatar
mrochelle
Posts: 238
Joined: Fri May 04, 2012 11:20 am
Location: Heart of America

Re: Graphing "Plugin Execution Time"

Post by mrochelle »

Ok, I can do that. I just wanted to verify that I was not missing something. Thank You.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Graphing "Plugin Execution Time"

Post by slansing »

No problem, closing as resolved.
Locked