Page 1 of 1
Multiple performance metrics on a single graph
Posted: Wed Sep 23, 2015 12:37 pm
by ryanb
Hello,
I would like to monitor a bunch of metrics from TCP-MIB for my linux servers. I was able to do this with CCM by using the check_snmp plugin without a problem. However, I would really like to group these metrics onto a single graph (one line for each metric) for performance data. Can you please advise how I can do this?
Also, if I want to track the change in a metric rather than the value itself, how can I do that? For example, if I am tracking CPU utilization I want the raw number. But if I am tracking network utilization via a packet counter, what I really want is the different between the current value and the previous value.
Thanks,
Ryan
Re: Multiple performance metrics on a single graph
Posted: Wed Sep 23, 2015 12:49 pm
by Box293
ryanb wrote:I would like to monitor a bunch of metrics from TCP-MIB for my linux servers. I was able to do this with CCM by using the check_snmp plugin without a problem. However, I would really like to group these metrics onto a single graph (one line for each metric) for performance data. Can you please advise how I can do this?
Graph Explorer allows you to create a Multistacked Performance Graph which can include metrics from different services. Home > Performance Graphs > Graph Explorer.
ryanb wrote:Also, if I want to track the change in a metric rather than the value itself, how can I do that? For example, if I am tracking CPU utilization I want the raw number. But if I am tracking network utilization via a packet counter, what I really want is the different between the current value and the previous value.
Use the Network Router / Switch wizard against the linux server. This uses MRTG in the backend and will do what you want.
Re: Multiple performance metrics on a single graph
Posted: Wed Sep 23, 2015 1:09 pm
by ryanb
Hey Box293,
thanks for your reply. However, this is not exactly what I want to do. As far as the graph goes, I would like to associate it with the host (as I will be doing this with multiple hosts) and have all the metrics related to the TCP-MIB appear on that single graph, instead of having a bunch of individual graphs for each metric.
Regarding sing the Router/Switch wizard, this appears to only pull interface data. I would need to be able to specify an arbitrary MIB and OIDs, since what I want (TCP metrics from a linux server) isn't captured by that wizard. Is there a way for me to just specify whether I am dealing with a Counter or a Gauge when defining a service?
Will I just need to write my own plug-in for this? If so, any can someone provide me some guidelines as to how to implement this? I can write a script to collect the data, but will need to know how to feed it to Nagios XI so it will be graphed and reported on properly.
Thanks,
Ryan
Re: Multiple performance metrics on a single graph
Posted: Wed Sep 23, 2015 2:40 pm
by Box293
ryanb wrote:thanks for your reply. However, this is not exactly what I want to do. As far as the graph goes, I would like to associate it with the host (as I will be doing this with multiple hosts) and have all the metrics related to the TCP-MIB appear on that single graph, instead of having a bunch of individual graphs for each metric.
Right now this is not available, I know there are some changes in Graph Explorer in the upcoming XI 5 release which *may* help with this but I'm not 100% sure on this right now. You can try the beta if you like:
https://support.nagios.com/forum/viewto ... =6&t=34769
ryanb wrote:
Regarding sing the Router/Switch wizard, this appears to only pull interface data. I would need to be able to specify an arbitrary MIB and OIDs, since what I want (TCP metrics from a linux server) isn't captured by that wizard. Is there a way for me to just specify whether I am dealing with a Counter or a Gauge when defining a service?
This gets complicated but MRTG supports defining specific OIDs and can do what you want. Have a look at this URL under the heading Specific OIDs:
http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html
It's complicated to understand initially but it does work and is pretty straight forward. Keep in mind as well as creating the MRTG config file for MRTG to poll the linux server you'll need to create the specific services in CCM, exactly how the switch router wizard does.
Does this help?
Re: Multiple performance metrics on a single graph
Posted: Wed Sep 23, 2015 2:45 pm
by ryanb
OK, Thanks Box293. I will just create the MRTG jobs manually by modifying the MRTG config and create a command to read that data into Nagios XI.
Please feel free to close out this thread.