barracuda spam firewall [without SNMP]

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

Moderators: Developers, Moderators

User avatar
cpt_ahab
Cacti User
Posts: 61
Joined: Tue Feb 01, 2005 11:34 am

barracuda spam firewall [without SNMP]

Post by cpt_ahab »

Here are some new scripts and host-graph-data-templates for barracuda spamfirewall.
They dont need snmp. They just parse the output of the cgi stats scripts included in the barracuda and put them into nice cacti-graphs.

they are exported from a linux box and cacti 0.8.6h

Here are some screenshots

graphs
Image
Image

edit(21.12.06): added new version with opposit graph.
values are in mails/minute now

Greez ahab
Attachments
barrcuda_new.zip
(8.14 KiB) Downloaded 2880 times
Last edited by cpt_ahab on Fri Dec 22, 2006 4:51 am, edited 11 times in total.
cacti 0.8.6j ** cactid 0.8.6d ** rrdtool 1.2.15
Debain ** Apache 2 ** PHP 4.3.0
User avatar
Cybex
Posts: 49
Joined: Tue Sep 20, 2005 7:57 am
Contact:

Post by Cybex »

Thanks, I just ordered a Barracuda Spam Firewall. I'll use this script!
whoapower
Posts: 6
Joined: Mon Jan 17, 2005 1:31 pm

Post by whoapower »

Thank you!

I've been looking at this, as we didn't get the SNMP version, only the Barracuda 300.
User avatar
cpt_ahab
Cacti User
Posts: 61
Joined: Tue Feb 01, 2005 11:34 am

Post by cpt_ahab »

Hmm i just saw that cacti again calculated some strange data.
I try figure out why and post a updated version of the templates.

greez ahab
cacti 0.8.6j ** cactid 0.8.6d ** rrdtool 1.2.15
Debain ** Apache 2 ** PHP 4.3.0
User avatar
Cybex
Posts: 49
Joined: Tue Sep 20, 2005 7:57 am
Contact:

Post by Cybex »

Thanks, I'll wait for that before installing it then.
User avatar
cpt_ahab
Cacti User
Posts: 61
Joined: Tue Feb 01, 2005 11:34 am

Post by cpt_ahab »

Alright.
I removed the daily and hourly graphs. Now i just take the total counter out of the xml file, because these counters are not reset very often.
I also added Current: Average: Max: Text Fields for the Total-Graph
I know i should use the xml-functions of php, but i did not looked for them when i wrote the scripts and now i am too lazy to rewrite them. :D

I also added a graph and script for system temperature.


greez jan
cacti 0.8.6j ** cactid 0.8.6d ** rrdtool 1.2.15
Debain ** Apache 2 ** PHP 4.3.0
User avatar
cpt_ahab
Cacti User
Posts: 61
Joined: Tue Feb 01, 2005 11:34 am

Post by cpt_ahab »

hmm getting strange values for the temperature counters.
the script is ok and the cacti graph too.
my barracuda tells me via xml that the system_temp is 2 degrees celsius.
cant be. :D
looks like firmwarebug. in the webinterface the values look ok(about 45 degrees).

hmm dont know. looked for new firmware version with no luck.
so dont use the temp script because its getting wrong data from the xml-file.


greez ahab
cacti 0.8.6j ** cactid 0.8.6d ** rrdtool 1.2.15
Debain ** Apache 2 ** PHP 4.3.0
User avatar
cpt_ahab
Cacti User
Posts: 61
Joined: Tue Feb 01, 2005 11:34 am

Post by cpt_ahab »

Hmm i updated my script. With the new firmware you get cpu_temp in the stats.cgi script.
You just have to change sys_temp to cpu_temp two times in the barracuda_temp.php-skript. I am getting "normal" values right now..

edit: changed the php-script. so you dont need to change anything anymore. just download and put it in you scripts folder.

greez ahab
Last edited by cpt_ahab on Wed Dec 20, 2006 7:14 am, edited 1 time in total.
cacti 0.8.6j ** cactid 0.8.6d ** rrdtool 1.2.15
Debain ** Apache 2 ** PHP 4.3.0
mcleveland
Posts: 7
Joined: Fri Dec 15, 2006 7:14 pm

Post by mcleveland »

Ok i am new to cacti and i was wondering if someone would help me get data from my Barracuda 300. It seems like it does not have snmp capability and i need to run this script. can someone please help. THANKS
User avatar
cpt_ahab
Cacti User
Posts: 61
Joined: Tue Feb 01, 2005 11:34 am

Post by cpt_ahab »

hmm you just have to import the templates, and copy the php-skript to you cacti/scripts folder.

Then add you barracuda as a device and use the barracuda host-template.

after that you can add graphs to this host.
cacti 0.8.6j ** cactid 0.8.6d ** rrdtool 1.2.15
Debain ** Apache 2 ** PHP 4.3.0
mcleveland
Posts: 7
Joined: Fri Dec 15, 2006 7:14 pm

Post by mcleveland »

I tried that and on import i get xml parse error. Any ideas there?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

What version of Cacti are you running ? I imported these with no errors, and am running 0.8.6i
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcleveland
Posts: 7
Joined: Fri Dec 15, 2006 7:14 pm

Post by mcleveland »

i just installed it not more then 2 weeks ago, how do you get all of that info to show up?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

You can install the Host Info (hostinfo - v0.1) plugin - this will give you the information you are looking for in terms of what version you are running. My guess is that you are running and older version. Where did you download Cacti from ?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcleveland
Posts: 7
Joined: Fri Dec 15, 2006 7:14 pm

Post by mcleveland »

thats something els i couldnt figure out. how do you install the plugins. i only have graph and consoule and i have seen many screenshots that people have a few differt tabs accross the top
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest