Bandwidth wizard mrtg command

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
optionstechnology
Posts: 234
Joined: Thu Nov 17, 2016 11:26 am

Bandwidth wizard mrtg command

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Bandwidth wizard mrtg command

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked