Using external MRTG server with Nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mkupec
Posts: 11
Joined: Mon Jun 18, 2012 9:45 am

Using external MRTG server with Nagios

Post by mkupec »

I've been searching the forums and even doing google searches for this answer.
I have external MRTG servers that scan all the ports on all my switches every minute.
Data goes into RRD files using RRDTool and Routers2.
When I set up Nagios to monitor the ports of the switches, can I have it read the RRD file for each port from the external server and use that info for the Service Status of each port?
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Using external MRTG server with Nagios

Post by agriffin »

I believe check_rrdtraf does exactly what you want.
mkupec
Posts: 11
Joined: Mon Jun 18, 2012 9:45 am

Re: Using external MRTG server with Nagios

Post by mkupec »

Looks like that will work, however, any idea what the syntax is for me to use for accessing where the "rrd" files are on another Linux server?

ie: IP and directpory path of where my rrd files are for this switch:
10.10.10.82/srv/www/htdocs/switch1/10.20.10.10_gi1_0_1.rrd

With MRTG/routers2/rrdtool I access the web page of 10.10.10.82 vis just http://10.10.10.82, but doing something like:
http://10.10.10.82/srv/www/htdocs.switc ... i1_0_1.rrd
or
http://10.10.10.82/switch1/10.20.10.10_gi1_0_1.rrd
obviously don't work, anyone know the correct syntax for retrieving the data from files on another linux server?

Thanks again for the help!
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Using external MRTG server with Nagios

Post by agriffin »

If the RRD files are on another machine, you will need to check the files on that machine and send the results back to your Nagios server. There are many ways of doing this, but NRPE is probably the most common. You can find documentation for NRPE here (PDF). Let me know if you have any questions after looking it over.
mkupec
Posts: 11
Joined: Mon Jun 18, 2012 9:45 am

Re: Using external MRTG server with Nagios

Post by mkupec »

Thanks again! I was just reading about that feature and wondering if t would do the trick. The other solutions is via check_by_ssh, but they warn you about the high resources it uses on both systems. This is in aclosed network and won't have data traveling across the internet, so NRPE should do the trick.
Locked