Fritzbox Monitoring Template

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

sjs
Posts: 22
Joined: Wed Oct 24, 2007 1:22 pm

Re: Fritzbox Monitoring Template

Post by sjs »

blubbersuelze wrote: why don't update?
Especially to get all the security issues fixed ...
0.8.8b was the version that came with my Linux distro (Raspbian Jessie, very similar to Debian Jessie). After manually updating cacti to 0.8.8h, it basically works - however, unfortunately with a few shortcomings:
  • I'm also affected by the "missing inbound traffic" bug Dopamin2485 described. The data template looks like your screenshot, the data source seems to be correctly associated with the graph template and I also removed and re-added the templates - to no avail so far.
  • The Raspberry Pi (model B) I was trying to run this on is way too slow for the Python scripts. I had to increase the poller's timeout to 120s to get it running, but even then, a full poller run takes almost 4 minutes(!) and increases the permanent CPU load on the Pi to ~80%.
Given the second issue, I'm afraid I'll leave that for the time being. :(


Regards,

Sebastian
blubbersuelze
Posts: 40
Joined: Mon Jun 15, 2009 12:55 pm

Re: Fritzbox Monitoring Template

Post by blubbersuelze »

maybe this helps you to make Templates compatible with older Versions:
http://docs.cacti.net/howto:determine_c ... te_version
michel1109
Posts: 2
Joined: Tue Aug 02, 2016 9:31 am

Re: Fritzbox Monitoring Template

Post by michel1109 »

Great job :D
Perfekt script

Thank`s
michel1109
Posts: 2
Joined: Tue Aug 02, 2016 9:31 am

Re: Fritzbox Monitoring Template

Post by michel1109 »

Hello,

it is also possible for a remote box ?
burnz
Posts: 4
Joined: Wed Nov 09, 2016 5:31 am

Re: Fritzbox Monitoring Template

Post by burnz »

I installed everything as described, but only my outbound traffic is shown in the graph.
Bildschirmfoto 2016-11-09 um 11.32.44.png
Bildschirmfoto 2016-11-09 um 11.32.44.png (133.23 KiB) Viewed 5650 times
Settings are as followed:
Bildschirmfoto 2016-11-09 um 11.35.43.png
Bildschirmfoto 2016-11-09 um 11.35.43.png (334.16 KiB) Viewed 5650 times
Bildschirmfoto 2016-11-09 um 11.35.56.png
Bildschirmfoto 2016-11-09 um 11.35.56.png (358.46 KiB) Viewed 5650 times
Bildschirmfoto 2016-11-09 um 11.36.05.png
Bildschirmfoto 2016-11-09 um 11.36.05.png (358.12 KiB) Viewed 5650 times
Bildschirmfoto 2016-11-09 um 11.36.17.png
Bildschirmfoto 2016-11-09 um 11.36.17.png (361.57 KiB) Viewed 5650 times
The output from the python script:
NewTotalBytesSent:2425813134 NewTotalBytesReceived:3395213475 NewTotalPacketsSent:1027688 NewTotalPacketsReceived:3168569

Cacti Version 0.8.8h
Cacti OS unix
SNMP Version NET-SNMP version: 5.7.2.1
RRDTool Version RRDTool 1.4.x

Any ideas whats wrong?
blubbersuelze
Posts: 40
Joined: Mon Jun 15, 2009 12:55 pm

Re: Fritzbox Monitoring Template

Post by blubbersuelze »

@michel1109

if you can communicate from your Cacti System to the Fritzbox in your LAN oder via VPN it should work.

@burnz
is Data Input correct associated for both directions?
Basse
Posts: 4
Joined: Wed Dec 21, 2016 11:33 am

Re: Fritzbox Monitoring Template

Post by Basse »

Thanks for this cool work!

I had the same version problem as sjs with Cacti v0.8.8a. Edited the xml and replaced every 0025 with 0024. Works like a charm!
Basse
Posts: 4
Joined: Wed Dec 21, 2016 11:33 am

Re: Fritzbox Monitoring Template

Post by Basse »

Next, I had the same problem as burnz. Figured out in "data sources" the password is not set at every fritz.box related data source.
Basse
Posts: 4
Joined: Wed Dec 21, 2016 11:33 am

Re: Fritzbox Monitoring Template

Post by Basse »

Now, there is a new Problem. The cacti produced a huge peak tonight. I limited the graph, because I couldnt see any else than the peak. But have a look at the maximum, I even dont know, what P stands for ^^ I think, the T at average is Terra. Any Ideas to avoid peaks like this?
Attachments
cacti.jpg
cacti.jpg (74 KiB) Viewed 4490 times
smiles
Cacti User
Posts: 79
Joined: Mon Sep 10, 2012 5:54 pm

Re: Fritzbox Monitoring Template

Post by smiles »

Have you looked into the Spike Kill plugin?

Petabytes is after Tera, so 1 Peta is 1000 Tera.
Basse
Posts: 4
Joined: Wed Dec 21, 2016 11:33 am

Re: Fritzbox Monitoring Template

Post by Basse »

Thanks, I did not know Spike Killer.
Now I am really happy :D
kevertje
Posts: 9
Joined: Fri Sep 07, 2007 1:24 am

Re: Fritzbox Monitoring Template

Post by kevertje »

I am running Cacti on a Synology. I even upgraded to a new version 0.8.8.h but I can't get the installation completed :
root@DS213:/volume1/downloads/cacti# pip install request
Requirement already satisfied: request in /usr/lib/python2.7/site-packages
Requirement already satisfied: get in /usr/lib/python2.7/site-packages (from request)
Requirement already satisfied: setupfiles in /usr/lib/python2.7/site-packages (from request)
Requirement already satisfied: post in /usr/lib/python2.7/site-packages (from request)
Requirement already satisfied: query-string in /usr/lib/python2.7/site-packages (from get->request)
Requirement already satisfied: setuptools in /usr/lib/python2.7/site-packages (from setupfiles->request)
Requirement already satisfied: public in /usr/lib/python2.7/site-packages (from query-string->get->request)


Installing lxml breaks :

Command "/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-6Sdq7i/lxml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-5SsTUw-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-6Sdq7i/lxml/


Still don't understand why AVM/Fritz doesn't support simple SNMP...
blubbersuelze
Posts: 40
Joined: Mon Jun 15, 2009 12:55 pm

Re: Fritzbox Monitoring Template

Post by blubbersuelze »

did you try to install the package "python-lxml" instead of doing it via "pip install lxml"?
blubbersuelze
Posts: 40
Joined: Mon Jun 15, 2009 12:55 pm

Re: Fritzbox Monitoring Template

Post by blubbersuelze »

added CRC Error Monitoring ...
Attachments
Screenshot
Screenshot
crc_error.png (41.25 KiB) Viewed 2867 times
fritzbox_template.zip
Fritzbox Template
(18.33 KiB) Downloaded 185 times
burnz
Posts: 4
Joined: Wed Nov 09, 2016 5:31 am

Re: Fritzbox Monitoring Template

Post by burnz »

CRC error is not working with my fritzbox.py..
/usr/bin/python <path_cacti>/scripts/fritzbox.py <ip> <password> error

The Python Script throws:

/var/www/html/cacti/scripts# ./fritzbox.py fritz.box password error
unknown Argument
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests