On 21 Mar 11, at 1404 , Scott Piehn wrote:
I am creating a probe for a battery monitor that may or may not have
a hookup to a second voltage monitor. I would like to set in the
<parameters> section weather it should alarm on the second input or
not. Like of a check box for yes no.
Question
What is the formating for the <parameters> and <snmp-device-
thresholds> section to accomplish it.
I have attached a version of where I think the two sections are with
========== . I realize it will not work in it's current verion,
just didn't know a better way to point out the sections
<parameters>
Power1Warning = "235"
Power1Critical = "227"
LowTemperatureWarningF = "20"
LowTemperatureCriticalF = "10"
HighTemperatureWarningF = "100"
HighTemperatureCriticalF = "110"
======= Power2AC = [yes,No]
What you need here is:
"Power2AC[True,False]" = "True" //assuming your default is True
</parameters>
<snmp-device-thresholds>
======= Critical: $Power2 <= 100 (think this is where an if
statment Critial: if $power2AC = "yes" and $Power2 <= 100)
and here you need:
critical: (${Power2AC[True,False]} = "True") && ($Power2 <=
100) "You might want the reason here."
Critical: $Power1 <= $Power1Critical
Critical: $TemperatureFF <= $LowTemperatureCriticalF
Critical: $TemperatureFF >= $HighTemperatureCriticalF
Warning: $Power1 <= $Power1Warning
Warning: $TemperatureFF <= $LowTemperatureWarningF
Warning: $TemperatureFF >= $HighTemperatureWarningF
</snmp-device-thresholds>
Regards,
-Dick
--------------------------------------
Richard M. Colburn
Dartware, LLC
____________________________________________________________________
List archives:
http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: intermapper-talk-...@list.dartware.com