Discussion:
Monitoring multiple devices means more .cfg files?
(too old to reply)
crashergs
2008-05-20 15:21:28 UTC
Permalink
Hey guys,

I am fairly new to MRTG. I am sure this is a very simple question. I
am monitoring multiple switches/routers, does this mean that I have to
create a .cfg file for each device? I find that my desktop has many
instances of daemonized .cfg files that are monitoring my routers and
switches. They all are working properly, but I think I am doing it the
wrong way. Can anyone provide any insight on this matter? Highly
appreciated.


Mario Gamez
TAMCO Steel
Jason Stahls
2008-05-20 18:06:27 UTC
Permalink
Post by crashergs
Hey guys,
I am fairly new to MRTG. I am sure this is a very simple question. I
am monitoring multiple switches/routers, does this mean that I have to
create a .cfg file for each device? I find that my desktop has many
instances of daemonized .cfg files that are monitoring my routers and
switches. They all are working properly, but I think I am doing it the
wrong way. Can anyone provide any insight on this matter? Highly
appreciated.
I use multiple files personally. I also use RRDTool and cron jobs
instead of mrtg daemonized.

There's nothing stopping you from putting all the data in one file, it
just makes organizing things more difficult. On the note of multiple
config files, I'm currently working on a few PHP scripts that will
dynamically create webpages from MRTG configs setup for RRD. Once I get
it working better I'll release it.

Jason Stahls
crashergs
2008-05-20 21:11:36 UTC
Permalink
Post by Jason Stahls
Post by crashergs
Hey guys,
I am fairly new to MRTG. I am sure this is a very simple question. I
am monitoring multiple switches/routers, does this mean that I have to
create a .cfg file for each device? I find that my desktop has many
instances of daemonized .cfg files that are monitoring my routers and
switches. They all are working properly, but I think I am doing it the
wrong way. Can anyone provide any insight on this matter? Highly
appreciated.
I use multiple files personally. I also use RRDTool and cron jobs
instead of mrtg daemonized.
There's nothing stopping you from putting all the data in one file, it
just makes organizing things more difficult. On the note of multiple
config files, I'm currently working on a few PHP scripts that will
dynamically create webpages from MRTG configs setup for RRD. Once I get
it working better I'll release it.
Jason Stahls
Thanks for answering my question and thumbs up on being an active
contributor. I will read more thuroughly on how RRDTool works. Cheers

Mario
Holger Petersen
2008-05-23 14:52:15 UTC
Permalink
Post by crashergs
Hey guys,
I am fairly new to MRTG. I am sure this is a very simple question. I
am monitoring multiple switches/routers, does this mean that I have to
create a .cfg file for each device?
No. You _can_ put all text into one cfg-File.
BUT: It will get un-manageble big if you have to do changes...

I use statements like:

Include: /srv/www/htdocs/mrtg/cfg/router1.cfg
Include: /srv/www/htdocs/mrtg/cfg/router2.cfg
Include: /srv/www/htdocs/mrtg/cfg/switch1.cfg
Include: /srv/www/htdocs/mrtg/cfg/switch2.cfg

in the file "mrtg.cfg".
Post by crashergs
I find that my desktop has many
instances of daemonized
Why do you use Windows if there is a door - pardon: if Linux might
be much better suited?
Post by crashergs
.cfg files that are monitoring my routers and
switches. They all are working properly, but I think I am doing it the
wrong way.
See above...

Yours, Holger

Loading...