Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Thu Dec 14, 2017 12:01 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 36 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Fritzbox Monitoring Template
PostPosted: Sat May 28, 2016 12:19 pm 
Offline

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

i wrote a Template to monitor a Fritzbox.
Maybe it's useful for others, too :)

It monitores
    Traffic
    Signal Power
    Attenuation
    Noise Margin
    Max possible Datarate
    Max usable Datarate

Installation instructions are included in Zip Archive.

and looks like this:


Attachments:
File comment: Installation Package
fritzbox_template.zip [16.11 KiB]
Downloaded 374 times
File comment: Traffic
traffic.png
traffic.png [ 17.03 KiB | Viewed 4587 times ]
File comment: Signal Power
signal power.png
signal power.png [ 19.58 KiB | Viewed 4587 times ]
File comment: possible Data Rates
possible data rates.png
possible data rates.png [ 19.36 KiB | Viewed 4587 times ]
File comment: Attenuation
attenuation.png
attenuation.png [ 14.18 KiB | Viewed 4587 times ]
Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Tue Jun 28, 2016 5:00 am 
Offline

Joined: Tue Jun 28, 2016 4:55 am
Posts: 7
Hi

Thank you for your script. I tested it with my Fritzbox 7490 with 06.51 Firmware but my graphs show always NaN.

I copy the script in the script folder and import the template.
I entered the fritzbox password but the graphs show always NaN???

Anybody knows what can be wrong?

Thanks

Dopamin2485


Attachments:
fritz_cacti.PNG
fritz_cacti.PNG [ 47.73 KiB | Viewed 4448 times ]
Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Tue Jun 28, 2016 6:15 am 
Offline

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

did you enabled "Application Access allowed" in

Network -> Overview -> Networksettings?

greetings,
blubbersuelze :P


Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Tue Jun 28, 2016 7:10 am 
Offline

Joined: Tue Jun 28, 2016 4:55 am
Posts: 7
Thanks for your help.

Sorry i am from Germany and the fritzbox runs in german language.
Did you mean these Settings?

Attachment:
fritz_cacti2.PNG
fritz_cacti2.PNG [ 68.2 KiB | Viewed 4439 times ]


I think Application Access is enabled.

Did you use firmware > 6.50 on your fritzbox?

In the Cacti Logfile i get this error:

Quote:
06/28/2016 02:10:09 PM - CMDPHP: Poller[0] Host[4] DS[21] WARNING: Result from CMD not valid. Partial Result: U


Thanks

Dopamin2485


Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Tue Jun 28, 2016 7:47 am 
Offline

Joined: Mon Jun 15, 2009 12:55 pm
Posts: 40
this Settings in Fritzbox are correct.

i use Firmware 6.50 upwards

have you tried it in command line?

what says Poller Cache for Fritzbox Device?
it should say something like this
Code:
Script: /usr/bin/python /usr/share/cacti/site/scripts/fritzbox.py <fritzbox_ip> <password> traffic
RRD: <path to a RRD File>
Script: /usr/bin/python /usr/share/cacti/site/scripts/fritzbox.py <fritzbox_ip> <password> dslinfo
RRD: <path to a RRD File>


Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Tue Jun 28, 2016 8:06 am 
Offline

Joined: Tue Jun 28, 2016 4:55 am
Posts: 7
I'm so stupid :)

The Python script has another Filename.
Rename the script in fritzbox.py and everything is ok.

Thanks for your help.

Dopamin2485


Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Tue Jun 28, 2016 2:00 pm 
Offline

Joined: Tue Jun 28, 2016 4:55 am
Posts: 7
There is only one error.

The inbound Traffic is not being displayed.
There is also NaN.

Attachment:
fritz_cacti.PNG
fritz_cacti.PNG [ 56.96 KiB | Viewed 4414 times ]


Everything else is fine.

Are there any Hints???


Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Tue Jun 28, 2016 2:06 pm 
Offline

Joined: Mon Jun 15, 2009 12:55 pm
Posts: 40
what says command line?


Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Tue Jun 28, 2016 2:16 pm 
Offline

Joined: Tue Jun 28, 2016 4:55 am
Posts: 7
The Commandline says:

Code:
python /var/www/html/cacti/scripts/fritzbox.py 192.168.178.1 ******* traffic
NewTotalBytesSent:5944805534 NewTotalBytesReceived:57053851174 NewTotalPacketsSent:14845013 NewTotalPacketsReceived:9426207


But the Graphs shows NaN


Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Tue Jun 28, 2016 2:21 pm 
Offline

Joined: Mon Jun 15, 2009 12:55 pm
Posts: 40
does the Data Template of "Fritzbox Traffic" look like this?


Attachments:
Unbenannt.png
Unbenannt.png [ 22.64 KiB | Viewed 4413 times ]
Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Tue Jun 28, 2016 2:43 pm 
Offline

Joined: Tue Jun 28, 2016 4:55 am
Posts: 7
Yes it look like yours.

I also remove the graph and configure a new one but always the same.


Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Tue Jun 28, 2016 2:50 pm 
Offline

Joined: Mon Jun 15, 2009 12:55 pm
Posts: 40
Graph Template has Data Input correct associated?

Have you tried to delete Graph Template and Data Template for Traffic and readd them again?

This often solves this type of Problem


Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Wed Jun 29, 2016 2:22 am 
Offline

Joined: Tue Jun 28, 2016 4:55 am
Posts: 7
Thanks for your hint.

Now everything works.

Tanks


Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Mon Jul 11, 2016 4:28 am 
Offline

Joined: Wed Oct 24, 2007 1:22 pm
Posts: 19
Hi!

First of all, thanks a lot to blubbersuelze for the effort.
However, these templates unfortunately don't work for me (Cacti v0.8.8b). When I'm trying to import the XML files, I keep getting an "Error: XML: Hash version does not exist." error with each XML file. Afterwards, the templates seem to show up in the appropriate template list, but are listed without any name.

Any ideas on how to solve this?


Regards,

Sebastian


Top
 Profile  
 
 Post subject: Re: Fritzbox Monitoring Template
PostPosted: Mon Jul 11, 2016 7:26 am 
Offline

Joined: Mon Jun 15, 2009 12:55 pm
Posts: 40
i built it on Cacti 0.8.8g,
so you have to have at least this Version...

why don't update?
Especially to get all the security issues fixed ...


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

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 7 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