I have found a way.
In the script that runs on the linux box
do the following
declare -i RESULTS= ‘value’ or
script that generates the value you are looking for
echo $RESULTS #to print out
the value to term
exit $RESULTS
if this script is called by snmpd.conf you
will find the returned value at mib .101 will be the number you are looking for
Not .100
Richard C. Thompson
VP Technology, CCNA
Virtual Communications, LLC
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Grant Griffith
Sent: Monday, June 19, 2006 10:05
AM
To:
[email protected]
Subject: [WhatsUp Forum]
Monitoring queues in a Barracuda Spam firewall
Well, here is some info from the Barracuda forums. Does anyone
have any idea on how we can convert the string to int inside WhatsUp?
|
Hello,
I am trying to get this working with WhatsUp Pro 2006 and am not able to find
these OID's when using their graphing utility. Has anyone successfully
monitored these using WhatsUp?
Thanks,
Grant Griffith
|
WhatsUp seems to have problems graphing and monitoring numeric strings. The BSF
uses the NetSNMP external command functionality to present this data and the
OID enterprises.ucdavis.extTable.extEntry.extOutput.x is typed as a string. I
haven't found any way to force WhatsUp to do a string -> int conversion,
though it does seem to treat a string with a value of 0 the same as the int
"0". So if your queue size is generally zero you can set a service up
to monitor enterprises.ucdavis.extTable.extEntry.extOutput.x and tell it that 0
= up and it will monitor it as up when the queue size empty. However, since you
cannot seem to force it to do the string -> int conversion you cannot set up
a service that monitors enterprises.ucdavis.extTable.extEntry.extOutput.x for
values between 0 and 500 (or whatever you think is a queue size that should
alert you).
The best course of action for Barracuda Networks, IMHO, is to get a SMI
enterprise code and return all of their Barracuda specific items there. That
way they can set up the MIB however they like and these type of problems won't
crop up. Though, for the most part this isn't really a problem for people
because most monitoring platforms can figure out how to deal with ints in a
string field. I was fairly suprised when I saw that WhatsUp had this issue, as
I'd been graphing my queue sizes with Cacti for some time and didn't expect to
run into any problems define a service in WhatsUp.
Thanks,
Grant Griffith
Web Application Developer
Enhanced Telecommunications Corp.
(812)932-1000