Hi all,
I'm fairly new to cacti having only used traffic graphing on devices via snmp queries.
I just got a new modem (Technicolor TG800vac) and noticed that it doesnt have any SNMP options at all.
What I have found is that I can query traffic stats using the port 5000 uPnP features of the modem.
I have downloaded a windows app that shows me real time graphs of upload and download speeds.
I would still like to add this modem to cacti but not sure how to proceed..
If I browse to my modems http://host:5000/rootDesc.xml I get an xml file
that begins with this:
root xmlns="urn:schemas-upnp-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<device>
<deviceType>
urn:schemas-upnp-org:device:InternetGatewayDevice:2
</deviceType>
<friendlyName>Technicolor TG800vac (1639RA4KY)</friendlyName>
<manufacturer>Technicolor</manufacturer>
<manufacturerURL>http://www.technicolor.com/</manufacturerURL>
<modelDescription>Technicolor Internet Gateway Device</modelDescription>
<modelName>Technicolor TG</modelName>
<modelNumber>800vac</modelNumber>
<modelURL>http://www.technicolor.com/</modelURL>
...
..
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:WANIPConnection:2</serviceType>
<serviceId>urn:upnp-org:serviceId:WANIPConn1</serviceId>
<controlURL>/VUBfrgd/ctl/IPConn</controlURL>
<eventSubURL>/VUBfrgd/evt/IPConn</eventSubURL>
<SCPDURL>/VUBfrgd/WANIPCn.xml</SCPDURL>
</service>
</serviceList>
I'm not too familiar with this way of getting device info.
Has anyone added a device to cacti via this way. I cant believe I would be the first person to ask this question but I cant seem to find any other answers here.
Thanks,
Peter
How to add a modem to cacti by port 5000 rootDesc.xml
Moderators: Developers, Moderators
-
- Posts: 2
- Joined: Tue Mar 21, 2017 3:29 pm
-
- Posts: 2
- Joined: Tue Mar 21, 2017 3:29 pm
Re: How to add a modem to cacti by port 5000 rootDesc.xml
Ive managed to get some data out of the modem by using
http://ng-upnp2mrtg.sourceforge.net under linux.
The command I used is this (even though its a Telstra modem I chose nc_premium )
ng-upnp2mrtg.py -h 10.0.2.10 -t nc_premium -p 5000
It returns the up / down byte counts and uptime.
soooo... I guess the question is from a cacti point of view - how can I turn the above script into a cacti data source ??
I guess I will check the cacti docs for such mystical things..
http://ng-upnp2mrtg.sourceforge.net under linux.
The command I used is this (even though its a Telstra modem I chose nc_premium )
ng-upnp2mrtg.py -h 10.0.2.10 -t nc_premium -p 5000
It returns the up / down byte counts and uptime.
soooo... I guess the question is from a cacti point of view - how can I turn the above script into a cacti data source ??
I guess I will check the cacti docs for such mystical things..
Re: How to add a modem to cacti by port 5000 rootDesc.xml
You find the interface to your script in cacti's "Data Input Methods". Here you define scripts, their commandline parameters, and their return values.
Then you create a new data source template that uses this in the Data Input Method setting.
I did such a thing with a different device, an AVM FRITZ!Box. It's upnp-enabled as well, just as your modem. I use miniupnpc for querying it (will probably work for your device as well, upnp is a standard), parse its response and return the parsed response to cacti.
I attach the script and the template. It's possible that it will work for your device out of the box. You need miniupnpc, though.
Then you create a new data source template that uses this in the Data Input Method setting.
I did such a thing with a different device, an AVM FRITZ!Box. It's upnp-enabled as well, just as your modem. I use miniupnpc for querying it (will probably work for your device as well, upnp is a standard), parse its response and return the parsed response to cacti.
I attach the script and the template. It's possible that it will work for your device out of the box. You need miniupnpc, though.
- Attachments
-
- cacti_template_fritzbox_traffic.zip
- (4.46 KiB) Downloaded 83 times
Who is online
Users browsing this forum: No registered users and 1 guest