Page 1 of 1

Bandwidth wizard mrtg command

Posted: Tue Apr 21, 2020 7:10 am
by optionstechnology
HI,

I'm trying to automate some of our bandwidth monitoring

I see from the switch wizard that it uses "check_rrdtraf" but, it must also create the mrtg data first for this to work

I assume there is a cfgmaker command running somewhere in the wizard to create this?

Can you let me know what this command is? i.e. what switches/options it uses to generate the mrtg

Re: Bandwidth wizard mrtg command

Posted: Tue Apr 21, 2020 12:08 pm
by tgriep
The command that creates the MRTG files is called cfgmaker and here are a few examples.

This is an example using SNMPv3 using AuthPriv which requires the username, passwords and protocols to be specified.

Code: Select all

/usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed 100000000 --enablesnmpv3 --snmp-options=:::::3 --username=user1 --authprotocol=sha --authpassword=passprivate --privprotocol=aes --privpassword=passprivate --contextengineid=0 192.168.1.1
This is an example of SNMPv2 which only needs the community string.

Code: Select all

/usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed 100000000 [email protected]:161::::2
For more command details, look at this link.
https://oss.oetiker.ch/mrtg/doc/cfgmaker.en.html