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] </parameters> <snmp-device-thresholds> ======= Critical: $Power2 <= 100 (think this is where an if statment Critial: if $power2AC = "yes" and $Power2 <= 100) Critical: $Power1 <= $Power1Critical Critical: $TemperatureFF <= $LowTemperatureCriticalF Critical: $TemperatureFF >= $HighTemperatureCriticalF Warning: $Power1 <= $Power1Warning Warning: $TemperatureFF <= $LowTemperatureWarningF Warning: $TemperatureFF >= $HighTemperatureWarningF </snmp-device-thresholds> Thanks in advance for any help --------------------------------------------- Scott Piehn JCWIFI.com Division Manager Computer Dynamics 451 W. South St Freeport, IL 61032 V 815.233.2641 F 815.233.6225 E [email protected]
<!-- Scott Piehn's Version Packet Flux probe for InterMapper - http://intermapper.com Import it using File -> Import -> Probe... This is a custom probe that monitors several variables for InterMapper. ----------------------------------------------------------------------------------- Please feel free to use this file as a base for further development. Read the Developer Guide to learn more about InterMapper Probes. The Guide is at: http://dartware.com/go.php?to=intermapper.devguide --> -- The <description> section contains the text that will appear in the Set Probe... window. -- It gives you a chance to describe how the probe works, what the parameters are, and -- how to set it up. <description> \gb\PacketFlux\p\ Probe for Monitoring Packetflux Site Monitor. Designed for 24V battery in input 1 and AC power in input 2 Battery Voltage Chart SOC 24v System 100% 25.40 90% 25.00 \5\80% 24.84 70% 24.64 60% 24.40 50% 24.12 40% 23.80\P0\ \7\30% 23.50 20% 23.16\PO\ \1\10% 22.62 0 21.00\PO\ </description> -- -- -- The <header> section determines the probe's unique name, what kind of probe it is, -- its Human Name, and its place in the probe picker hierarchy, and other assorted attributes. <header> -- If you change the package field in the probe header to 'com.dartware', -- and make sure the probe_name starts with 'wrls', it should count against -- your wireless license. "type" = "custom-snmp" "package" = "com.dartware" "probe_name" = "wrls.PacketFlux.Base24" "human_name" = "Packet Flux Base Unit 24v" "display_name" = "Wireless/Packet Flux/Base Unit 24v" "version" = "0.1" "address_type" = "IP,AT" "port_number" = "161" "flags" = "NOLINKS,MINIMAL" </header> -- -- -- <snmp-device-properties> are flags that alter the InterMapper probe's behavior. -- You generally do not need to use these, but they can be useful for devices that don't -- work as expected. For more information, see the <snmp-device-properties> section of the -- Developer Guide's at: http://dartware.com/support/docs/index.html <snmp-device-properties> pdutype="get-request" maxvars="1" nomib2="true" </snmp-device-properties> <parameters> Power1Warning = "235" Power1Critical = "227" LowTemperatureWarningF = "20" LowTemperatureCriticalF = "10" HighTemperatureWarningF = "100" HighTemperatureCriticalF = "110" ======= Power2AC = [yes,No] </parameters> <snmp-device-variables> Firmware, 1.3.6.1.4.1.32050.2.1.25.3.0, DEFAULT, "Firmware" TemperatureC, 1.3.6.1.4.1.32050.2.1.27.5.0, DEFAULT, "Internal Temperature in Celcus" Power1, 1.3.6.1.4.1.32050.2.1.27.5.2, DEFAULT, "Power Input 1 voltage 3 digit without ." Power2, 1.3.6.1.4.1.32050.2.1.27.5.3, DEFAULT, "Power Input 2 voltage 3 digit without ." TemperatureCF, sprintf("%.1f", ${TemperatureC}/10), CALCULATION, "Puts a . in the 3 digit temperature" Power1F, sprintf("%.1f", ${Power1}/10), CALCULATION, "Puts a . in the 3 digit power" Power2F, sprintf("%.1f", ${Power2}/10), CALCULATION, "Puts a . In the 3 digit Power" TemperatureFF, sprintf("%.1f", ${TemperatureCF}*1.8+32), CALCULATION, "Converts Temp to F" SOC, ($Power1 > 260) ? "Charging" : ($Power1 >= 254) ? "100" : ($Power1 = 253) ? "98" : ($Power1 = 252) ? "94" : ($Power1 = 251) ? "92" : ($Power1 = 250) ? "90" : ($Power1 = 249) ? "85" : ($Power1 = 248) ? "82" : ($Power1 = 247) ? "75" : ($Power1 = 246) ? "68" : ($Power1 = 245) ? "65" : ($Power1 = 244) ? "60" : ($Power1 = 243) ? "56" : ($Power1 = 242) ? "53" : ($Power1 = 241) ? "51" : ($Power1 = 240) ? "48" : ($Power1 = 239) ? "45" : ($Power1 = 238) ? "40" : ($Power1 = 237) ? "35" : "Under 20", CALCULATION, "How Much Battery is left" WatchdogIP, 1.3.6.1.4.1.32050.2.1.40.0, DEFAULT, "Watchdog IP" </snmp-device-variables> <snmp-device-thresholds> ======= Critical: $Power2 <= 100 Critical: $Power1 <= $Power1Critical Critical: $TemperatureFF <= $LowTemperatureCriticalF Critical: $TemperatureFF >= $HighTemperatureCriticalF Warning: $Power1 <= $Power1Warning Warning: $TemperatureFF <= $LowTemperatureWarningF Warning: $TemperatureFF >= $HighTemperatureWarningF </snmp-device-thresholds> -- The <snmp-device-display> section specifies the text that will be appended -- to the device's Staus Window. <snmp-device-display> \B5\Packet Flux Details\P0\\4\ Firmware:\0\ $Firmware \MO\\4\ Temperature:\0\ ${chartable: ##.#: ${TemperatureCF}} °C ${chartable: ##.#: ${TemperatureFF}} °F\MO\\4\ Power Input 1:\0\ ${chartable: ##.#: ${Power1F}} Vdc - Battery\MO\\4\ Battery left:\0\ ${SOC} %\MO\\4\ Power Input 2:\0\ ${chartable: ##.#: ${Power2F}} Vdc - AC\MO\\4\ Watchdog IP:\0\ $WatchdogIP \MO\\4\ -- </snmp-device-display>
