Page 2 of 3

Re: Metrics Component

Posted: Tue Oct 21, 2014 5:11 pm
by abrist
ooooo. I will look at this tomorrow.

Re: Metrics Component

Posted: Wed Oct 22, 2014 2:16 am
by WillemDH
Mine too, it looks really nice, Bandit! Does it work with non-check_nt checks? As I'm using nrpe everywhere, the Metrics component neevr really worked for me.

Re: Metrics Component

Posted: Wed Oct 22, 2014 7:55 am
by BanditBBS
WillemDH wrote:Mine too, it looks really nice, Bandit! Does it work with non-check_nt checks? As I'm using nrpe everywhere, the Metrics component neevr really worked for me.
Willem,

The modifications I made work with perfdata that looks like this
CPU
CpuUser=15.81%;90;95;0; CpuSystem=1.40%;90;95;0; CpuIowait=0.00%;90;95;0; CpuIdle=82.79%;0;0;0; CpuNice=0.00%;0;0;0; CpuSteal=0.00%;0;0;0;

Memory
TOTAL=16336836KB;;;; USED=830808KB;13069468;14703152;; FREE=15506028KB;;;; CACHES=5699240KB;;;;
For the CPU, it adds the User, System and IOWait together for the percent used.

Just remember, if you do this, you'll have to redo it every time you upgrade :(

Go look here if you want to see what it looks like and why I removed the details column: http://support.nagios.com/forum/viewtop ... 31#p114631

Re: Metrics Component

Posted: Wed Oct 22, 2014 2:19 pm
by lmiltchev
Great job, BanditBBS! I will be testing the metrics component mod as well.

Re: Metrics Component

Posted: Wed Oct 22, 2014 2:24 pm
by BanditBBS
lmiltchev wrote:Great job, BanditBBS! I will be testing the metrics component mod as well.
That'd be great Ludmil. Especially if you guys like it and approve it, then maybe it could be put into the code so I won't have to redo it on upgrades :)

It'd at least be a bandaid for users until Nagios ever greatly improves the metrics.

Re: Metrics Component

Posted: Wed Oct 22, 2014 4:30 pm
by lmiltchev
That'd be great Ludmil. Especially if you guys like it and approve it, then maybe it could be put into the code so I won't have to redo it on upgrades :)

It'd at least be a bandaid for users until Nagios ever greatly improves the metrics.
I hope it will be approved. The metrics component really needed improvement, and I am glad had the courage to take a stab at it. :)

Re: Metrics Component

Posted: Thu Oct 23, 2014 9:58 am
by jomann
Adding an option to remove the details section in the dashlet would be an easy enhancement and would definitely be able to be made along with your changes!

There has been some talk on changing the metrics component.I would say it's possible to get it added into the current component. Personally I think it would be more useful to be able to add a tab to the metrics component and then set the metric/regex expressions to match your metrics to, along with our current (or updated) defaults. This would allow you to make changes to the metrics for any type of metric. Would this be a good solution for this component? We have noticed it being under-utilized.

There is an internal feature request for redoing the Metrics component - and I am sure we can talk about adding your changes to the current component for the time being though I can't make any promises! I'm not sure when the updates to the Metrics component will happen and if they will or will not be in the next version of XI.

Re: Metrics Component

Posted: Thu Oct 23, 2014 10:02 am
by BanditBBS
jomann wrote:Adding an option to remove the details section in the dashlet would be an easy enhancement and would definitely be able to be made along with your changes!

There has been some talk on changing the metrics component.I would say it's possible to get it added into the current component. Personally I think it would be more useful to be able to add a tab to the metrics component and then set the metric/regex expressions to match your metrics to, along with our current (or updated) defaults. This would allow you to make changes to the metrics for any type of metric. Would this be a good solution for this component? We have noticed it being under-utilized.

There is an internal feature request for redoing the Metrics component - and I am sure we can talk about adding your changes to the current component for the time being though I can't make any promises! I'm not sure when the updates to the Metrics component will happen and if they will or will not be in the next version of XI.
Yeah, that solution would really work for a large audience I think! Its definitely under utilized due to not enough options on it.

Re: Metrics Component

Posted: Thu Oct 23, 2014 10:04 am
by snapon_admin
Personally I think it would be more useful to be able to add a tab to the metrics component and then set the metric/regex expressions to match your metrics to, along with our current (or updated) defaults. This would allow you to make changes to the metrics for any type of metric.
Am I reading this right? If something like this were to be implemented, would I be able to see metrics on whatever I request? The reason I ask is because, frankly, that would be f'ing awesome! We have a few different CPU checks (CPU Usage, CPU Stats, Zone CPU Usage) that we'd like to be able to view in the metrics component. If what you're saying is that this might be possible, you've just made myself and several of my coworkers very excited.

Re: Metrics Component

Posted: Thu Oct 23, 2014 10:50 am
by jomann
snapon_admin wrote:
Personally I think it would be more useful to be able to add a tab to the metrics component and then set the metric/regex expressions to match your metrics to, along with our current (or updated) defaults. This would allow you to make changes to the metrics for any type of metric.
Am I reading this right? If something like this were to be implemented, would I be able to see metrics on whatever I request? The reason I ask is because, frankly, that would be f'ing awesome! We have a few different CPU checks (CPU Usage, CPU Stats, Zone CPU Usage) that we'd like to be able to view in the metrics component. If what you're saying is that this might be possible, you've just made myself and several of my coworkers very excited.
Yes that is exactly what I am thinking... and the ability to make multiple types aggregated so say you wanted to see all those different CPU type checks together in one list, you could do that.