aboutsummaryrefslogtreecommitdiffstats
path: root/config/nut/status_nut.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-05-25 13:34:48 -0400
committerjim-p <jimp@pfsense.org>2011-05-25 13:34:48 -0400
commitf5f33c1aaba7e941a248996d45bb504e63694223 (patch)
treeea233c37ffe72fa1004f4c5f714bf41428e36a72 /config/nut/status_nut.php
parent7050a53970553f7ce153ee20d6554734118f2c22 (diff)
downloadpfsense-packages-f5f33c1aaba7e941a248996d45bb504e63694223.tar.gz
pfsense-packages-f5f33c1aaba7e941a248996d45bb504e63694223.tar.bz2
pfsense-packages-f5f33c1aaba7e941a248996d45bb504e63694223.zip
Add initial SNMP UPS support. Version bump nut.
Diffstat (limited to 'config/nut/status_nut.php')
-rw-r--r--config/nut/status_nut.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/config/nut/status_nut.php b/config/nut/status_nut.php
index a181734f..5688e72a 100644
--- a/config/nut/status_nut.php
+++ b/config/nut/status_nut.php
@@ -146,13 +146,18 @@ include("head.inc");
if($nut_config['monitor'] == 'local') {
tblrow('Monitoring:','Local UPS');
$cmd = "upsc {$nut_config['name']}@localhost";
- } else {
+ } elseif($nut_config['monitor'] == 'remote') {
tblrow('Monitoring:','Remote UPS');
$cmd = "upsc {$nut_config['remotename']}@{$nut_config['remoteaddr']}";
+ } elseif($nut_config['monitor'] == 'snmp') {
+ tblrow('Monitoring:','SNMP UPS');
+ $cmd = "upsc {$nut_config['name']}@localhost";
}
if($running)
$handle = popen($cmd, 'r');
+ elseif($nut_config['monitor'] == 'snmp')
+ tblrow('ERROR:','NUT is enabled, however the service is not running! The SNMP UPS may be unreachable.');
else
tblrow('ERROR:','NUT is enabled, however the service is not running!');