Xymon Mailing List Archive search

Multiple Hosts of MRTG

3 messages in this thread

list Soumya K. Das · Tue, 15 Mar 2005 17:57:08 +0530 ·
Hello,

 
1. How do I put multiple  my $MRTGCFG = ''cfgfile.cfg' in the bbmrtg-pl
? If I out same My $mrtfcfg field more than 2 times it takes the last
cfg file only.... 

2. How do I increast the no of network connection for hobbit? I have
some 150 servers to monitor....how to increase the no of pids.

 
Regards

Soumya
list Daniel J McDonald · Tue, 15 Mar 2005 06:39:46 -0600 ·
quoted from Soumya K. Das
On Tue, 2005-03-15 at 17:57 +0530, Soumya K. Das wrote:
1. How do I put multiple  my $MRTGCFG = '’cfgfile.cfg’ in the
bbmrtg-pl ? 
You don't.  If the cfg files all have the same workdir, then just make a
wrapper file like:
bbmrtg.cfg
Include: /var/mrtg/internal/cfgfile.cfg
Include: /var/mrtg/public/cfgfile.cfg
Include: /var/mrtg/customers/cfgfile.cfg

then set $MRTGCFG to bbmrtg.cfg

My "mrtg.cfg" file has about 300 Include: statements, and I generate the
whole thing on the fly
quoted from Soumya K. Das
If I out same My $mrtfcfg field more than 2 times it takes the last
cfg file only…. 
As you would expect perl to do.

The other option is to run multiple instances of bbmrtg.pl.  You would
have several stanzas in hobbitlaunch.cfg, one for each copy of bbmrtg.pl

-- 
Daniel J McDonald, CCIE # 2495, CNX
Austin Energy

user-290ce4e24e19@xymon.invalid
list Henrik Størner · Tue, 15 Mar 2005 14:51:54 +0000 (UTC) ·
quoted from Soumya K. Das
In <user-c63c68d9147b@xymon.invalid> "Soumya K. Das" <user-cc989c627781@xymon.invalid> writes:
2. How do I increast the no of network connection for hobbit? I have
some 150 servers to monitor....how to increase the no of pids.
You dont. Hobbit is designed for large networks, you can easily
monitor a few thousand hosts. No tweaking required.


Henrik