barracuda spam firewall [without SNMP]

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

Moderators: Developers, Moderators

guanno
Posts: 38
Joined: Mon Aug 27, 2007 3:19 pm

Barracuda and no SNMP

Post by guanno »

I am using Cacti 8.6j and cannot import the .XML file.
Any help would be greatly appreciated :)
Resolved by removing the degree character in line 521.
Last edited by guanno on Wed Sep 26, 2007 10:59 am, edited 1 time in total.
guanno
Posts: 38
Joined: Mon Aug 27, 2007 3:19 pm

CACTID failing on Barracuda no SNMP script

Post by guanno »

I am finding the same issue with the script failing when run from cactid?
Any one have fix for this yet??
User avatar
datatechuk
Posts: 14
Joined: Wed Oct 10, 2007 4:16 am

Barracuda Without SNMP

Post by datatechuk »

Hi Guys,
I have been using cacti for about 2 months and have found it very useful, but i am having a little problem with the Barracuda without SNMP template.

It installs fine and the first time the poller runs it creates the RRD files in the rra directory.
Each time it runs after that the only file that gets updates is the temperature RRD file. ALL of the others never get updated.

Could someone please help?

I am using:-
Windows 2003 Server
MySQL v5
PHP v5
Cactid
Cacti v0.8.6j
Barracuda Anti-Spam Firewall 300
User avatar
datatechuk
Posts: 14
Joined: Wed Oct 10, 2007 4:16 am

Additional Information

Post by datatechuk »

If i run the barracuda_total.php or the barracuda_perf.php from the command line and add the IP Address of the Barracuda it returns the values that i am seeing on the main admin screen so all is working, but it is not updating the RRD files so that the graphs are not being updated!

This looks like a great script and it would be really nice to see all of the results appearing in cacti, but has anyone else come accross this problem before? Or does anyone know of a fix for this little problem?

Many thanks
Marc
guanno
Posts: 38
Joined: Mon Aug 27, 2007 3:19 pm

Barracuda no smnp

Post by guanno »

I had to change my poller to cmd.php to get them to work.
For some reason Cactid doesn't send or receive the query properly
User avatar
datatechuk
Posts: 14
Joined: Wed Oct 10, 2007 4:16 am

Barracuda Without SNMP

Post by datatechuk »

I have tried the cmd.php poller and this doesn't work on some other scripts!

Is there any way to get both pollers working?
Many Thanks
Marc
Datatech
tierpel
Posts: 9
Joined: Sun Feb 19, 2006 3:47 pm
Location: FR -- Sophia-antipolis - Valence

Post by tierpel »

hi ,

I test this template with barracuda 300 and the graph don't works too ...
but no problem in debug mode ... :-(

Code: Select all

Data Source Debug

/usr/bin/rrdtool create \
/var/www/html/rra/barracuda_blocked_650.rrd \
--step 300  \
DS:viruses:COUNTER:600:0:10000 \
DS:tagged:COUNTER:600:0:10000 \
DS:allowed:COUNTER:600:0:10000 \
DS:quarantined:COUNTER:600:0:10000 \
DS:blocked:COUNTER:600:0:10000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \

Code: Select all

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Barracuda - Temperature" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=-10 \
--vertical-label="Temperatur" \
--slope-mode \
DEF:a="/var/www/html/rra/barracuda_sys_temperature_652.rrd":sys_temperature:AVERAGE \
LINE2:a#FF3932:"� C"  \
GPRINT:a:LAST:"Current\:%8.2lf %s"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" 

RRDTool Says:

OK
User avatar
datatechuk
Posts: 14
Joined: Wed Oct 10, 2007 4:16 am

Barracuda Without SNMP

Post by datatechuk »

Has anyone else got any ideas about this?
I have heard that this script works fine on Linux rather than Windows 2003 server.

If i delete the RRD files and then wait for the poller to run it creates the new RRD files, but the next time the poller runs it only updates the temperature RRD file.

When i check the graph the temperature graph only has one little line for a time period of 5 minutes!

Any help would be greatly appreciated, i am more than happy to test any suggestions on our development server here in the office.
Many Thanks
Marc
Datatech
FateOne
Posts: 2
Joined: Wed Jun 06, 2007 8:10 pm

Still having issues

Post by FateOne »

I corrected the symbol for degrees and get the templates imported.

I'm having the same issues other people were having. I can get values back when I run the .php files. But I can't get it to generate an .rrd files. I'm running this on Ubuntu Linux so it doesn't seem to be a Windows only issue. Has anyone been able to get this thing to work?
MU-IT
Cacti User
Posts: 113
Joined: Tue Nov 06, 2007 12:07 pm

issues

Post by MU-IT »

Hi,

be gentle, i'm a newb to this stuff. I've fallen in love with these graphs, though.

I've got our netware, windows, switches, etc all going. I'd love to have the barracuda 300's reporting in as well.

I get blank graphs, and I know it's getting the right .xml info from barracuda, I had to change the script a bit because I see sys_temp as opposed to cpu_temp.

What the cacti log shows me:

11/07/2007 09:56:08 AM - CACTID: Poller[0] Host[15] DS[93] SCRIPT: /usr/bin/php C:/Inetpub/wwwroot/cacti/scripts/barracuda_total.php 157.62.50.11, output: U
11/07/2007 09:56:08 AM - CACTID: Poller[0] Host[15] DS[93] WARNING: Result from SCRIPT not valid. Partial Result: ...
11/07/2007 09:56:08 AM - CACTID: Poller[0] Host[15] ERROR: Empty result [157.62.50.11]: '/usr/bin/php C:/Inetpub/wwwroot/cacti/scripts/barracuda_total.php 157.62.50.11'
11/07/2007 09:56:08 AM - CACTID: Poller[0] Host[15] DS[90] SCRIPT: /usr/bin/php C:/Inetpub/wwwroot/cacti/scripts/barracuda_total.php 157.62.50.11, output: U
11/07/2007 09:56:08 AM - CACTID: Poller[0] Host[15] DS[90] WARNING: Result from SCRIPT not valid. Partial Result: ...
11/07/2007 09:56:08 AM - CACTID: Poller[0] Host[15] ERROR: Empty result [157.62.50.11]: '/usr/bin/php C:/Inetpub/wwwroot/cacti/scripts/barracuda_total.php 157.62.50.11'
11/07/2007 09:56:08 AM - CACTID: Poller[0] Host[15] DS[92] SCRIPT: /usr/bin/php C:/Inetpub/wwwroot/cacti/scripts/barracuda_temp.php 157.62.50.11, output: U
11/07/2007 09:56:08 AM - CACTID: Poller[0] Host[15] DS[92] WARNING: Result from SCRIPT not valid. Partial Result: ...
11/07/2007 09:56:08 AM - CACTID: Poller[0] Host[15] ERROR: Empty result [157.62.50.11]: '/usr/bin/php C:/Inetpub/wwwroot/cacti/scripts/barracuda_temp.php 157.62.50.11'
11/07/2007 09:56:08 AM - CACTID: Poller[0] Host[15] DS[91] SCRIPT: /usr/bin/php C:/Inetpub/wwwroot/cacti/scripts/barracuda_perf.php 157.62.50.11, output: U
11/07/2007 09:56:08 AM - CACTID: Poller[0] Host[15] DS[91] WARNING: Result from SCRIPT not valid. Partial Result: ...
11/07/2007 09:56:08 AM - CACTID: Poller[0] Host[15] ERROR: Empty result [157.62.50.11]: '/usr/bin/php C:/Inetpub/wwwroot/cacti/scripts/barracuda_perf.php 157.62.50.11'
11/07/2007 09:56:07 AM - CACTID: Poller[0] Host[15] No host availability check possible for '157.62.50.11'


which makes me wonder if i'm supposed to tell it more than it currently knows...

I'm running the beta windows installer on server 2k3 with the rrdtool 1.2.23 and NET-SNMP.


help?
nmead
Posts: 2
Joined: Thu Nov 08, 2007 4:00 pm

Re: issues

Post by nmead »

MU-IT wrote:Hi,

be gentle, i'm a newb to this stuff. I've fallen in love with these graphs, though.

I've got our netware, windows, switches, etc all going. I'd love to have the barracuda 300's reporting in as well.

I get blank graphs, and I know it's getting the right .xml info from barracuda, I had to change the script a bit because I see sys_temp as opposed to cpu_temp.

What the cacti log shows me:

11/07/2007 09:56:08 AM - CACTID: Poller[0] Host[15] DS[93] SCRIPT: /usr/bin/php C:/Inetpub/wwwroot/cacti/scripts/barracuda_total.php 157.62.50.11, output: U
11/07/2007 09:56:08 AM - CACTID: Poller[0] Host[15] DS[93] WARNING: Result from SCRIPT not valid. Partial Result: ...
11/07/2007 09:56:08 AM - CACTID: Poller[0] Host[15] ERROR: Empty result [157.62.50.11]: '/usr/bin/php C:/Inetpub/wwwroot/cacti/scripts/barracuda_total.php 157.62.50.11'
11/07/2007 09:56:08 AM - CACTID: Poller[0] Host[15] DS[90] SCRIPT: /usr/bin/php C:/Inetpub/wwwroot/cacti/scripts/barracuda_total.php 157.62.50.11, output: U
11/07/2007 09:56:08 AM - CACTID: Poller[0] Host[15] DS[90] WARNING: Result from SCRIPT not valid. Partial Result: ...
11/07/2007 09:56:08 AM - CACTID: Poller[0] Host[15] ERROR: Empty result [157.62.50.11]: '/usr/bin/php C:/Inetpub/wwwroot/cacti/scripts/barracuda_total.php 157.62.50.11'
11/07/2007 09:56:08 AM - CACTID: Poller[0] Host[15] DS[92] SCRIPT: /usr/bin/php C:/Inetpub/wwwroot/cacti/scripts/barracuda_temp.php 157.62.50.11, output: U
11/07/2007 09:56:08 AM - CACTID: Poller[0] Host[15] DS[92] WARNING: Result from SCRIPT not valid. Partial Result: ...
11/07/2007 09:56:08 AM - CACTID: Poller[0] Host[15] ERROR: Empty result [157.62.50.11]: '/usr/bin/php C:/Inetpub/wwwroot/cacti/scripts/barracuda_temp.php 157.62.50.11'
11/07/2007 09:56:08 AM - CACTID: Poller[0] Host[15] DS[91] SCRIPT: /usr/bin/php C:/Inetpub/wwwroot/cacti/scripts/barracuda_perf.php 157.62.50.11, output: U
11/07/2007 09:56:08 AM - CACTID: Poller[0] Host[15] DS[91] WARNING: Result from SCRIPT not valid. Partial Result: ...
11/07/2007 09:56:08 AM - CACTID: Poller[0] Host[15] ERROR: Empty result [157.62.50.11]: '/usr/bin/php C:/Inetpub/wwwroot/cacti/scripts/barracuda_perf.php 157.62.50.11'
11/07/2007 09:56:07 AM - CACTID: Poller[0] Host[15] No host availability check possible for '157.62.50.11'


which makes me wonder if i'm supposed to tell it more than it currently knows...

I'm running the beta windows installer on server 2k3 with the rrdtool 1.2.23 and NET-SNMP.


help?

Change your data input method to reflect the correct path to php.

If you imported the template, its set for:
/usr/bin/php <path_cacti>/scripts/barracuda_temp.php <IPADDR>

If you have php in your system path, you should be able to just specify:

php <path_cacti>/scripts/barracuda_temp.php <IPADDR>



hth,
Nate
MU-IT
Cacti User
Posts: 113
Joined: Tue Nov 06, 2007 12:07 pm

Post by MU-IT »

Thanks Nate,

I should have caught that one... sometimes just a second set of eyes is all that's needed.
fmagoufis
Posts: 5
Joined: Fri Jan 04, 2008 2:10 pm

Errors When Running PHP

Post by fmagoufis »

I'm having a hard time getting the php to execute via command line. These errors are displayed.

Code: Select all

[root@wamgmt01 scripts]# php barracuda_total.php  XX.XX.XX
allowed:sion="1.0" encoding="UTF-8"?>

<Error>
    <Code>900</Code>
    <String>You do not have permission to run this script.</String> blocked:sion="1.0" encoding="UTF-8"?>

<Error>
    <Code>900</Code>
    <String>You do not have permission to run this script.</String> quarantined:="1.0" encoding="UTF-8"?>

<Error>
    <Code>900</Code>
    <String>You do not have permission to run this script.</Str tagged:rsion="1.0" encoding="UTF-8"?>

<Error>
    <Code>900</Code>
    <String>You do not have permission to run this script.</String>
 viruses:sion="1.0" encoding="UTF-8"?>

<Error>
    <Code>900</Code>
    <String>You do not have permission to run this script.</String>
[root@wamgmt01 scripts]# 
Last edited by fmagoufis on Thu Mar 20, 2008 8:29 pm, edited 1 time in total.
matutet
Posts: 1
Joined: Wed Jan 30, 2008 11:10 am

Graphs doesn't shows info. It's works for me

Post by matutet »

At first, graphs doesn't shows any info :(, buts when I leave SNMP Communty value empty (see image below) , .... it works for me :-)

Best regards,

http://www.cmaj.es
Attachments
Barracuda HOST config
Barracuda HOST config
Cacti_Barracuda_Host_Definition.jpg (47 KiB) Viewed 7903 times
User avatar
merana
Posts: 14
Joined: Sun Dec 22, 2002 3:32 pm
Location: So.Jersey/Philly
Contact:

Barracuda - Opposit template output

Post by merana »

A new question:

I got the template installed and working alright but the opposit template is not generating the graph as displayed in the example here.

Can someone give me some assistance on correcting the graph output?
Cacti Version - 0.8.7a
Plugin Architecture - 1.4
Poller Type - CMD.php
Server Info - Linux 2.6.18-8.el5
Web Server - Apache/2.2.3 (Red Hat)
PHP - 5.1.6
PHP Extensions - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, ldap, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp
MySQL - 5.0.22
RRDTool - 1.2.23
SNMP - 5.3.1
Plugins
  • Update Checker (update - v0.4)
    Host Info (hostinfo - v0.2)
Attachments
Opposit template output
Opposit template output
graph-opposit.png (36.95 KiB) Viewed 7815 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests