Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Monitoring multiple devices means more .cfg files?

1,259 views
Skip to first unread message

crashergs

unread,
May 20, 2008, 11:21:28 AM5/20/08
to gam...@tamcosteel.com
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

unread,
May 20, 2008, 2:06:27 PM5/20/08
to

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

unread,
May 20, 2008, 5:11:36 PM5/20/08
to

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

unread,
May 23, 2008, 10:52:15 AM5/23/08
to
crashergs <ysoc....@yahoo.com> writes:

>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".

> 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?

> .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

0 new messages