[devmon] Problem with thresholds - Use of uninitialized value in numeric gt
list Martijn Moret
Hi,
I'm trying to write a template for the Brocade silkworm 3900/4100.
All is going well, except for the thresholds.
Here is my config:
Example for the fans:
oids
FanDescr : .1.3.6.1.4.1.1588.2.1.1.1.10.3.1.4.2 : branch
FanState : .1.3.6.1.4.1.1588.2.1.1.1.10.3.1.5.2 : branch
message
TABLE:
Fan location|Fan state
{FanDescr}|{FanState.color}{FanState}
threshold
FanState : red : 3200 : High rpm
When running devmon in the forground, the following message appears when
activating this threshold:
Use of uninitialized value in numeric gt (>) at
/home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314,
<$__ANONIO__> line 21894.
Use of uninitialized value in numeric gt (>) at
/home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314,
<$__ANONIO__> line 21894.
Use of uninitialized value in numeric gt (>) at
/home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314,
<$__ANONIO__> line 21894.
Use of uninitialized value in numeric gt (>) at
/home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314,
<$__ANONIO__> line 21894.
Use of uninitialized value in numeric gt (>) at
/home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314,
<$__ANONIO__> line 21894.
Use of uninitialized value in numeric gt (>) at
/home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314,
<$__ANONIO__> line 21894.
There are six fans, this line appears one time for each fan.
Any help?
Regards
Martijn
list Asif Iqbal
▸
On 7/20/07, Martijn Moret <user-18a508ca755a@xymon.invalid> wrote:
Hi,
I'm trying to write a template for the Brocade silkworm 3900/4100.
All is going well, except for the thresholds.
Here is my config:
Example for the fans:
oids
FanDescr : .1.3.6.1.4.1.1588.2.1.1.1.10.3.1.4.2 : branch
FanState : .1.3.6.1.4.1.1588.2.1.1.1.10.3.1.5.2 : branch
message
TABLE:
Fan location|Fan state
{FanDescr}|{FanState.color}{FanState}
threshold
FanState : red : 3200 : High rpm
When running devmon in the forground, the following message appears when
activating this threshold:
Use of uninitialized value in numeric gt (>) at
/home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314,
<$__ANONIO__> line 21894.
Use of uninitialized value in numeric gt (>) at
/home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314,
<$__ANONIO__> line 21894.
Use of uninitialized value in numeric gt (>) at
/home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314,
<$__ANONIO__> line 21894.
Use of uninitialized value in numeric gt (>) at
/home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314,
<$__ANONIO__> line 21894.
Use of uninitialized value in numeric gt (>) at
/home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314,
<$__ANONIO__> line 21894.
Use of uninitialized value in numeric gt (>) at
/home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314,
<$__ANONIO__> line 21894.
There are six fans, this line appears one time for each fan.
Don't worry about those errors. I get those too but it is working just fine.
What problem are you
having besides those messages?
Any help?Regards Martijn
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Martijn Moret
▸
On 7/20/07, Martijn Moret <user-18a508ca755a@xymon.invalid> wrote:Hi, I'm trying to write a template for the Brocade silkworm 3900/4100. All is going well, except for the thresholds. Here is my config: Example for the fans: oids FanDescr : .1.3.6.1.4.1.1588.2.1.1.1.10.3.1.4.2 : branch FanState : .1.3.6.1.4.1.1588.2.1.1.1.10.3.1.5.2 : branch message TABLE: Fan location|Fan state {FanDescr}|{FanState.color}{FanState} threshold FanState : red : 3200 : High rpm When running devmon in the forground, the following message appears when activating this threshold: Use of uninitialized value in numeric gt (>) at /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314, <$__ANONIO__> line 21894. Use of uninitialized value in numeric gt (>) at /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314, <$__ANONIO__> line 21894. Use of uninitialized value in numeric gt (>) at /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314, <$__ANONIO__> line 21894. Use of uninitialized value in numeric gt (>) at /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314, <$__ANONIO__> line 21894. Use of uninitialized value in numeric gt (>) at /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314, <$__ANONIO__> line 21894. Use of uninitialized value in numeric gt (>) at /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314, <$__ANONIO__> line 21894. There are six fans, this line appears one time for each fan.Don't worry about those errors. I get those too but it is working just fine. What problem are you having besides those messages?
Thanks for your quick reply. The thresholds are not working. I setup a test with the fans (they are running between 3000 and 3250 rpm). If I set the threshold yellow to >3200 no fan is turning yellow. I think the thresholds are not being used as no comparison is being made. Regards Martijn
list Martijn Moret
▸
On 7/20/07, Martijn Moret <user-18a508ca755a@xymon.invalid> wrote:Hi, I'm trying to write a template for the Brocade silkworm 3900/4100. All is going well, except for the thresholds. Here is my config: Example for the fans: oids FanDescr : .1.3.6.1.4.1.1588.2.1.1.1.10.3.1.4.2 : branch FanState : .1.3.6.1.4.1.1588.2.1.1.1.10.3.1.5.2 : branch message TABLE: Fan location|Fan state {FanDescr}|{FanState.color}{FanState} threshold FanState : red : 3200 : High rpm When running devmon in the forground, the following message appears when activating this threshold: Use of uninitialized value in numeric gt (>) at /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314, <$__ANONIO__> line 21894. Use of uninitialized value in numeric gt (>) at /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314, <$__ANONIO__> line 21894. Use of uninitialized value in numeric gt (>) at /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314, <$__ANONIO__> line 21894. Use of uninitialized value in numeric gt (>) at /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314, <$__ANONIO__> line 21894. Use of uninitialized value in numeric gt (>) at /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314, <$__ANONIO__> line 21894. Use of uninitialized value in numeric gt (>) at /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314, <$__ANONIO__> line 21894. There are six fans, this line appears one time for each fan.Don't worry about those errors. I get those too but it is working just fine. What problem are you having besides those messages?
Some more info: It works fine with 'leave' oids and fails with 'branch' oids. Regards Martijn
list Asif Iqbal
▸
On 7/20/07, Martijn Moret <user-18a508ca755a@xymon.invalid> wrote:
On 7/20/07, Martijn Moret <user-18a508ca755a@xymon.invalid> wrote:Hi, I'm trying to write a template for the Brocade silkworm 3900/4100. All is going well, except for the thresholds. Here is my config: Example for the fans: oids FanDescr : .1.3.6.1.4.1.1588.2.1.1.1.10.3.1.4.2 : branch FanState : .1.3.6.1.4.1.1588.2.1.1.1.10.3.1.5.2 : branch message TABLE: Fan location|Fan state {FanDescr}|{FanState.color}{FanState} threshold FanState : red : 3200 : High rpm When running devmon in the forground, the following message appears when activating this threshold: Use of uninitialized value in numeric gt (>) at /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314, <$__ANONIO__> line 21894. Use of uninitialized value in numeric gt (>) at /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314, <$__ANONIO__> line 21894. Use of uninitialized value in numeric gt (>) at /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314, <$__ANONIO__> line 21894. Use of uninitialized value in numeric gt (>) at /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314, <$__ANONIO__> line 21894. Use of uninitialized value in numeric gt (>) at /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314, <$__ANONIO__> line 21894. Use of uninitialized value in numeric gt (>) at /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314, <$__ANONIO__> line 21894. There are six fans, this line appears one time for each fan.Don't worry about those errors. I get those too but it is working just fine. What problem are you having besides those messages?Some more info: It works fine with 'leave' oids and fails with 'branch' oids.
I only used leaf. And before you use a oid you want to make sure snmpget
gives you valid output with that `oid'
Here is an example of a custom template I use for Arbor DOS routers
(hobbit)@hobbit:~/server/etc$ cat
/usr/local/devmon/templates/arbor-lead/cpu/thresholds
CPULoadAvg5Min : red : >800 : CPU utilization is high:
{CPULoadAvg5Min}
sysUpTimeSecs : red : <600 : Device rebooted recently. System
uptime: {UpTimeTxt}
sysUpTimeSecs : yellow : <5000 : Device rebooted recently. System
uptime: {UpTimeTxt}
sysUpTimeSecs : green : : System uptime: {UpTimeTxt}
(hobbit)@hobbit:~/server/etc$ cat
/usr/local/devmon/templates/arbor-lead/cpu/oids
sysDescr : .1.3.6.1.2.1.1.1.0 : leaf
sysUpTime : .1.3.6.1.2.1.1.3.0 : leaf
CPULoadAvg1Min : .1.3.6.1.4.1.9694.1.4.2.1.1.0 : leaf
CPULoadAvg5Min : .1.3.6.1.4.1.9694.1.4.2.1.2.0 : leaf
CPULoadAvg15Min : .1.3.6.1.4.1.9694.1.4.2.1.3.0 : leaf
RegardsMartijn
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Trent Melcher
▸
On Fri, 2007-07-20 at 19:03 +0200, Martijn Moret wrote:
Hi,
I'm trying to write a template for the Brocade silkworm 3900/4100.
All is going well, except for the thresholds.
Here is my config:
Example for the fans:
oids
FanDescr : .1.3.6.1.4.1.1588.2.1.1.1.10.3.1.4.2 : branch
FanState : .1.3.6.1.4.1.1588.2.1.1.1.10.3.1.5.2 : branch
message
TABLE:
Fan location|Fan state
{FanDescr}|{FanState.color}{FanState}
threshold
FanState : red : 3200 : High rpmThis should be >3200 Trent
▸
When running devmon in the forground, the following message appears when activating this threshold: Use of uninitialized value in numeric gt (>) at /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314, <$__ANONIO__> line 21894. Use of uninitialized value in numeric gt (>) at /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314, <$__ANONIO__> line 21894. Use of uninitialized value in numeric gt (>) at /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314, <$__ANONIO__> line 21894. Use of uninitialized value in numeric gt (>) at /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314, <$__ANONIO__> line 21894. Use of uninitialized value in numeric gt (>) at /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314, <$__ANONIO__> line 21894. Use of uninitialized value in numeric gt (>) at /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314, <$__ANONIO__> line 21894. There are six fans, this line appears one time for each fan. Any help? Regards Martijn
list Martijn Moret
▸
On Fri, 2007-07-20 at 19:03 +0200, Martijn Moret wrote:Hi, I'm trying to write a template for the Brocade silkworm 3900/4100. All is going well, except for the thresholds. Here is my config: Example for the fans: oids FanDescr : .1.3.6.1.4.1.1588.2.1.1.1.10.3.1.4.2 : branch FanState : .1.3.6.1.4.1.1588.2.1.1.1.10.3.1.5.2 : branch message TABLE: Fan location|Fan state {FanDescr}|{FanState.color}{FanState} threshold FanState : red : 3200 : High rpmThis should be >3200 Trent
The documentation states thats the default behaviour is 'greater than'. I think I found the problem: The snmp branch does not start with .1 but .2 I will look in the Brocade MIB some more.... Martijn