Changeset 1307e3f5 in nscp
- Timestamp:
- 08/31/11 10:55:38 (21 months ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2
- Children:
- 81e420c
- Parents:
- 4b1e6fe
- File:
-
- 1 edited
-
scripts/check_battery.vbs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
scripts/check_battery.vbs
rf0607c4 r1307e3f5 9 9 10 10 ' Default settings for your script. 11 threshold_warning = 5012 threshold_critical = 2011 threshold_warning = "50:" 12 threshold_critical = "20:" 13 13 strComputer = "." 14 14 … … 36 36 37 37 For Each objInstance In colInstances 38 WScript.Echo "Battery " & objInstance.Status & " - Charge Remaining = " & objInstance.EstimatedChargeRemaining & "% | charge=" & objInstance.EstimatedChargeRemaining 38 if message <> "" then : message = message & ", " 39 if perf <> "" then : perf = perf & ", " 40 message = message & "Battery " & objInstance.Status & " - Charge Remaining = " & objInstance.EstimatedChargeRemaining & "%" 41 perf = perf & "charge=" & objInstance.EstimatedChargeRemaining 39 42 return_code = np.escalate_check_threshold(return_code, objInstance.EstimatedChargeRemaining) 40 43 Next 41 42 44 ' Nice Exit with msg and exitcode 43 np.nagios_exit "", return_code45 np.nagios_exit message & "|" & perf, return_code
Note: See TracChangeset
for help on using the changeset viewer.








