On 7/20/07, <b class="gmail_sendername">Martijn Moret</b> <<a href="mailto:martijn@mmoret.com">martijn@mmoret.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> On 7/20/07, Martijn Moret <<a href="mailto:martijn@mmoret.com">martijn@mmoret.com</a>> wrote:<br>>><br>>> Hi,<br>>><br>>> I'm trying to write a template for the Brocade silkworm 3900/4100.
<br>>><br>>> All is going well, except for the thresholds.<br>>><br>>> Here is my config:<br>>> Example for the fans:<br>>> oids<br>>> FanDescr        : .1.3.6.1.4.1.1588.2.1.1.1.10.3.1.4.2  : branch
<br>>> FanState        : .1.3.6.1.4.1.1588.2.1.1.1.10.3.1.5.2  : branch<br>>><br>>> message<br>>> TABLE:<br>>> Fan location|Fan state<br>>> {FanDescr}|{FanState.color}{FanState}<br>>>
<br>>> threshold<br>>> FanState        : red   : 3200 : High rpm<br>>><br>>> When running devmon in the forground, the following message appears when<br>>> activating this threshold:<br>>> Use of uninitialized value in numeric gt (>) at
<br>>> /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314,<br>>> <$__ANONIO__> line 21894.<br>>> Use of uninitialized value in numeric gt (>) at<br>>> /home/hobbit/devmon-0.3.0-beta2
/modules/dm_tests.pm line 2314,<br>>> <$__ANONIO__> line 21894.<br>>> Use of uninitialized value in numeric gt (>) at<br>>> /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314,<br>>> <$__ANONIO__> line 21894.
<br>>> Use of uninitialized value in numeric gt (>) at<br>>> /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314,<br>>> <$__ANONIO__> line 21894.<br>>> Use of uninitialized value in numeric gt (>) at
<br>>> /home/hobbit/devmon-0.3.0-beta2/modules/dm_tests.pm line 2314,<br>>> <$__ANONIO__> line 21894.<br>>> Use of uninitialized value in numeric gt (>) at<br>>> /home/hobbit/devmon-0.3.0-beta2
/modules/dm_tests.pm line 2314,<br>>> <$__ANONIO__> line 21894.<br>>><br>>> There are six fans, this line appears one time for each fan.<br>><br>><br>><br>> Don't worry about those errors. I get those too but it is working just
<br>> fine.<br>> What problem are you<br>> having besides those messages?<br>><br>Some more info:<br>It works fine with 'leave' oids and fails with 'branch' oids.</blockquote><div><br><br>I only used leaf.  And before you use a oid  you want to make sure snmpget gives you valid output with that `oid'
<br><br>Here is an example of a custom template I use for Arbor DOS routers<br><br>(hobbit)@hobbit:~/server/etc$ cat /usr/local/devmon/templates/arbor-lead/cpu/thresholds <br><br>CPULoadAvg5Min  : red           : >800  : CPU utilization is high: {CPULoadAvg5Min}
<br><br>sysUpTimeSecs   : red           : <600  : Device rebooted recently. System uptime: {UpTimeTxt}<br>sysUpTimeSecs   : yellow        : <5000 : Device rebooted recently. System uptime: {UpTimeTxt}<br>sysUpTimeSecs   : green         :       : System uptime: {UpTimeTxt}
<br><br>(hobbit)@hobbit:~/server/etc$ cat /usr/local/devmon/templates/arbor-lead/cpu/oids       <br><br>sysDescr        : .1.3.6.1.2.1.1.1.0                    : leaf<br>sysUpTime       : .1.3.6.1.2.1.1.3.0                    : leaf
<br>CPULoadAvg1Min  : .1.3.6.1.4.1.9694.1.4.2.1.1.0         : leaf<br>CPULoadAvg5Min  : .1.3.6.1.4.1.9694.1.4.2.1.2.0         : leaf<br>CPULoadAvg15Min : .1.3.6.1.4.1.9694.1.4.2.1.3.0         : leaf<br><br><br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Regards<br>Martijn<br><br><br>To unsubscribe from the hobbit list, send an e-mail to<br><a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>
Asif Iqbal<br>PGP Key: 0xE62693C5 KeyServer: <a href="http://pgp.mit.edu">pgp.mit.edu</a><br><br><br>