ng-upnp2mrtg



Configuration

ng-upnp2mrtg configuration

np-upnp2mrtg is configured via the command line. You need to know the type, IP address and port number of the UPnP server you are talking to. If you don't have this information yet, see Extending

Currently ng-upnp2mrtg supports the “NetCologne Premium Modem” (ID: nc_premium - which seems to be a rebranded Turbolink 3101 from Sphairon) and most of the FritzBox modems (ID: fritzbox). The complete list can be obtained by the following command:

ng-upnp2mrtg.py –list

If you use another brand, you have to find out a handful of strings (see Extending)

MRTG configuration

The MRTG configuration file is usually located at /etc/mrtg.cfg

The parameter Target[XXX] usually holds an SNMP-OID.  This OID can be replaced by a script execution call:

# external program for retrieving data
Target[XXXXX]: `/usr/local/bin/ng-upnp2mrtg.py -t nc_premium`

You find an example configuration file in the download area.