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?
Using external MRTG server with Nagios
Re: Using external MRTG server with Nagios
I believe check_rrdtraf does exactly what you want.
Re: Using external MRTG server with Nagios
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!
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!
Re: Using external MRTG server with Nagios
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.
Re: Using external MRTG server with Nagios
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.