Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Fri Jul 28, 2017 1:59 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Mon Jul 11, 2016 3:13 pm 
Offline

Joined: Wed Oct 24, 2007 1:22 pm
Posts: 12
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


Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Mon Jul 11, 2016 3:34 pm 
Offline

Joined: Mon Jun 15, 2009 12:55 pm
Posts: 40
maybe this helps you to make Templates compatible with older Versions:
http://docs.cacti.net/howto:determine_cacti_template_version


Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Tue Aug 02, 2016 9:51 am 
Offline

Joined: Tue Aug 02, 2016 9:31 am
Posts: 2
Great job :D
Perfekt script

Thank`s


Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Thu Aug 11, 2016 2:57 am 
Offline

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

it is also possible for a remote box ?


Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Wed Nov 09, 2016 5:40 am 
Offline

Joined: Wed Nov 09, 2016 5:31 am
Posts: 4
I installed everything as described, but only my outbound traffic is shown in the graph.
Attachment:
Bildschirmfoto 2016-11-09 um 11.32.44.png
Bildschirmfoto 2016-11-09 um 11.32.44.png [ 133.23 KiB | Viewed 3117 times ]

Settings are as followed:
Attachment:
Bildschirmfoto 2016-11-09 um 11.35.43.png
Bildschirmfoto 2016-11-09 um 11.35.43.png [ 334.16 KiB | Viewed 3117 times ]

Attachment:
Bildschirmfoto 2016-11-09 um 11.35.56.png
Bildschirmfoto 2016-11-09 um 11.35.56.png [ 358.46 KiB | Viewed 3117 times ]

Attachment:
Bildschirmfoto 2016-11-09 um 11.36.05.png
Bildschirmfoto 2016-11-09 um 11.36.05.png [ 358.12 KiB | Viewed 3117 times ]

Attachment:
Bildschirmfoto 2016-11-09 um 11.36.17.png
Bildschirmfoto 2016-11-09 um 11.36.17.png [ 361.57 KiB | Viewed 3117 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?


Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Fri Dec 16, 2016 5:22 pm 
Offline

Joined: Mon Jun 15, 2009 12:55 pm
Posts: 40
@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?


Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Wed Dec 21, 2016 11:37 am 
Offline

Joined: Wed Dec 21, 2016 11:33 am
Posts: 4
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!


Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Thu Dec 22, 2016 5:32 am 
Offline

Joined: Wed Dec 21, 2016 11:33 am
Posts: 4
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.


Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Fri Dec 23, 2016 3:48 am 
Offline

Joined: Wed Dec 21, 2016 11:33 am
Posts: 4
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 1957 times ]
Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Fri Dec 23, 2016 12:26 pm 
Offline
Cacti User

Joined: Mon Sep 10, 2012 5:54 pm
Posts: 61
Have you looked into the Spike Kill plugin?

Petabytes is after Tera, so 1 Peta is 1000 Tera.


Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Mon Jan 02, 2017 6:39 am 
Offline

Joined: Wed Dec 21, 2016 11:33 am
Posts: 4
Thanks, I did not know Spike Killer.
Now I am really happy :D


Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Sat Jan 07, 2017 10:40 am 
Offline

Joined: Fri Sep 07, 2007 1:24 am
Posts: 9
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...


Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Sat Jan 14, 2017 6:30 am 
Offline

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


Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Sat Apr 29, 2017 6:15 am 
Offline

Joined: Mon Jun 15, 2009 12:55 pm
Posts: 40
added CRC Error Monitoring ...


Attachments:
File comment: Screenshot
crc_error.png
crc_error.png [ 41.25 KiB | Viewed 334 times ]
File comment: Fritzbox Template
fritzbox_template.zip [18.33 KiB]
Downloaded 28 times
Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Tue May 30, 2017 8:51 am 
Offline

Joined: Wed Nov 09, 2016 5:31 am
Posts: 4
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google Adsense [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group