Fritzbox Monitoring Template

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

Moderators: Moderators, Developers

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

Re: Fritzbox Monitoring Template

#16 Post by sjs » Mon Jul 11, 2016 3:13 pm

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

#17 Post by blubbersuelze » Mon Jul 11, 2016 3:34 pm

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

#18 Post by michel1109 » Tue Aug 02, 2016 9:51 am

Great job :D
Perfekt script

Thank`s

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

Re: Fritzbox Monitoring Template

#19 Post by michel1109 » Thu Aug 11, 2016 2:57 am

Hello,

it is also possible for a remote box ?

burnz
Posts: 4
Joined: Wed Nov 09, 2016 5:31 am

Re: Fritzbox Monitoring Template

#20 Post by burnz » Wed Nov 09, 2016 5:40 am

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 4064 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 4064 times
Bildschirmfoto 2016-11-09 um 11.35.56.png
Bildschirmfoto 2016-11-09 um 11.35.56.png (358.46 KiB) Viewed 4064 times
Bildschirmfoto 2016-11-09 um 11.36.05.png
Bildschirmfoto 2016-11-09 um 11.36.05.png (358.12 KiB) Viewed 4064 times
Bildschirmfoto 2016-11-09 um 11.36.17.png
Bildschirmfoto 2016-11-09 um 11.36.17.png (361.57 KiB) Viewed 4064 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

#21 Post by blubbersuelze » Fri Dec 16, 2016 5:22 pm

@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

#22 Post by Basse » Wed Dec 21, 2016 11:37 am

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

#23 Post by Basse » Thu Dec 22, 2016 5:32 am

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

#24 Post by Basse » Fri Dec 23, 2016 3:48 am

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 2904 times

smiles
Cacti User
Posts: 79
Joined: Mon Sep 10, 2012 5:54 pm

Re: Fritzbox Monitoring Template

#25 Post by smiles » Fri Dec 23, 2016 12:26 pm

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

#26 Post by Basse » Mon Jan 02, 2017 6:39 am

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

#27 Post by kevertje » Sat Jan 07, 2017 10:40 am

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 :
[email protected]:/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

#28 Post by blubbersuelze » Sat Jan 14, 2017 6:30 am

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

#29 Post by blubbersuelze » Sat Apr 29, 2017 6:15 am

added CRC Error Monitoring ...
Attachments
crc_error.png
Screenshot
crc_error.png (41.25 KiB) Viewed 1281 times
fritzbox_template.zip
Fritzbox Template
(18.33 KiB) Downloaded 79 times

burnz
Posts: 4
Joined: Wed Nov 09, 2016 5:31 am

Re: Fritzbox Monitoring Template

#30 Post by burnz » Tue May 30, 2017 8:51 am

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