• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

MRTG: how to monitor multiple devices?

cwhitmore

Member


Messages: 33

#1
I'm able to monitor my Dell Powerconnect 48 switch, but I'd like to monitor five others. What files need to be changed to do this? Do I need to run cfgmaker on mrtg again?
 

phoenix

Administrator
Staff member
Administrator
Moderator

Thanks: 1,125
Messages: 3,947

#2
Create separate config files for each device you want to monitor.

Then create a "master" mrtg config file that is nothing but global config entries, and Include lines that point to each of the individual device config files.

I'd recommend, though, switching to using the RRD backend for MRTG, separating your "data collection" from "data display", and look into using something like Routers2 to dynamically create the graphs as needed.

We do this, polling for network stats and load averages every 1 minute, disk I/O every 2 minutes, CPU stats, memory stats, and load averages every 5 minutes, and disk usage every 15 minutes.

For over 127 servers across the district. All nicely laid out in cascading menus by Routers2, with graphs only being created when viewed.
 

cwhitmore

Member


Messages: 33

#3
I'm new to snmpd and mrtg. I'm assuming when you say create separate config files do you mean snmpd.con files?

Is there a doc on creating the global and include entries in the mrtg.cfg file?

Thanks.
 

kisscool-fr

Active Member

Thanks: 19
Messages: 194

#5
phoenix said:
We do this, polling for network stats and load averages every 1 minute, disk I/O every 2 minutes, ...
I will be happy if you can tell me how do you do to have a polling time of 1 or 2 minutes with mrtg ?
I red in docs and/or forums that minimum polling time in mrtg is 5 minutes which i think is too much to have something realistic and with visual alerts.

Thanks :)
 

phoenix

Administrator
Staff member
Administrator
Moderator

Thanks: 1,125
Messages: 3,947

#6
The lowest polling time that MRTG can do with it's internal logging is 5 minutes, yet.

However, if you switch the log format to rrd, then you can go down to 1 minute. :)

There's lots of docs on how to do this on the MRTG website.
 

Natraj

New Member


Messages: 1

#7
Create separate config files for each device you want to monitor.

Then create a "master" mrtg config file that is nothing but global config entries, and Include lines that point to each of the individual device config files.

I'd recommend, though, switching to using the RRD backend for MRTG, separating your "data collection" from "data display", and look into using something like Routers2 to dynamically create the graphs as needed.

We do this, polling for network stats and load averages every 1 minute, disk I/O every 2 minutes, CPU stats, memory stats, and load averages every 5 minutes, and disk usage every 15 minutes.

For over 127 servers across the district. All nicely laid out in cascading menus by Routers2, with graphs only being created when viewed.
Hi Phoenix,

I have create individual mrtg.cfg file for each node, how to create master mrtg.cfg file and how to include the different node mrtg.cfg file.
 
Top