Page 1 of 1

CPU/Mem Metrics for Linux

Posted: Wed Nov 14, 2018 6:03 am
by bomahony
As per a previous post from 2014, these are Windows based:
https://support.nagios.com/forum/viewto ... 5&p=112744

As we monitor Memory & CPU on Linux in XI is it possible to get these metrics mapped to these fields somehow?

Actually is it possible to create our own metrics for this screen?

Re: CPU/Mem Metrics for Linux

Posted: Wed Nov 14, 2018 6:41 am
by bomahony
BTW is there an automated mail list for new versions of XI and what they fix?

Re: CPU/Mem Metrics for Linux

Posted: Wed Nov 14, 2018 7:06 am
by bomahony
What I am really trying to do is have a dash where I can see the top 10 or 20 nodes for various stats from a hostgroup. We have some hostrgroups with 100+ members, and having them all graphed on the dashboard is useless.

Re: CPU/Mem Metrics for Linux

Posted: Wed Nov 14, 2018 1:13 pm
by bomahony
I actually did a bit of messing with Grafana and hooked it into one of our XI nodes to read the RRD files. I have a weird isuse. After getting my regular expressions and so forth done, I noticed that all data prior to 10AM is not graphed. However if I do a 'rrdtool fetch' on the localhost load average, I can see entries right up to 3m ago....
I have tried restarting nagios and grafana-server but nothing seems to work?

Re: CPU/Mem Metrics for Linux

Posted: Wed Nov 14, 2018 3:26 pm
by npolovenko
Hi, @bomahony. Have you tried increasing the range for your dashboard?
Untitled.png

Re: CPU/Mem Metrics for Linux

Posted: Thu Nov 15, 2018 6:37 am
by bomahony
This morning it was updated to 3am ish... It was perplexing. I changed the auto-refresh and it seems to be fixed.

Any response to the metrics questions [albeit if I can somehow manage to get this working in Grafana for topX of a stat, then it will be moot] :D

Has anyone gotten any topX working with Grafana? The api seems to be a bit limited atm.

Re: CPU/Mem Metrics for Linux

Posted: Thu Nov 15, 2018 12:02 pm
by npolovenko
@bomahony, I could put a feature request to map Linux Memory and CPU check results with the metrics component. What kind of plugins are you using to check these parameters? Did they come with some config wizard or did you find these plugins on the exchange?
As far as getting topX to work with Grafana, I suggest posting this question on the Grafana support forum.
https://community.grafana.com/

Re: CPU/Mem Metrics for Linux

Posted: Thu Nov 15, 2018 12:16 pm
by bomahony
Thanks mate. Dont worry about the metrics, they dont seem to be as valuable as what i should be able to do with Grafana.

I am investigating either converting the rrd to InfluxDB with Nagflux, or possibly having a stab at the api from pbp4nagios and seeing if i can do it there. But im off for a few days so it can wait. I do have another issue, ~I am about to raise though....

Re: CPU/Mem Metrics for Linux

Posted: Thu Nov 15, 2018 5:41 pm
by ssax
Let us know how it goes. Please create a separate post for unrelated issues.

Thank you