* Tue Mar 18 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-9.sme
- update config for Nut 2.8.2 [SME: 12657] TODO review master/slave mode TODO convert master/slave to primary/secondary TODO convert to new config data + migrate TODO event and action
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#if MODE = netclient only enable monitor
|
||||
|
||||
# calling this script to configure unit and drivers
|
||||
if [[ $(config getprop nut status || echo "disabled") == "disabled" ]] ; then
|
||||
if [[ $(/sbin/e-smith/config getprop nut status || echo "disabled") == "disabled" ]] ; then
|
||||
# disable server
|
||||
# leave monitor as is, we might want to monitor an external ups ?
|
||||
# get_all_by_prop filter nut-driver@ and foreach $UPS disabled
|
||||
|
@@ -159,7 +159,7 @@ my $cdb = esmith::ConfigDB->open() || die("Couldn't open config db");
|
||||
$cdb = esmith::ConfigDB->open() || die("Couldn't open config db");
|
||||
my $db = $cdb; #maybe one of the others
|
||||
my $dbkey = 'nut';
|
||||
my $driverkey = 'nut-driver@UPS';
|
||||
my $driverkey = 'nut-driver@ups';
|
||||
# To make it write to DB as comment, delete this (regex) string in each if statement "TRUE\) \#copy or perform with value: .* e.g."
|
||||
|
||||
if (!$db->set_prop($dbkey,'status',$c->param('status')))
|
||||
|
@@ -84,8 +84,8 @@
|
||||
<p><span class=label>
|
||||
%=l('nut_SlaveUPS_UPSNAME@IP')
|
||||
</span><span class=data>
|
||||
% param 'SlaveUPS_Name' => $nut_data->{SlaveUPS_Name} unless param 'SlaveUPS_Name';
|
||||
%= text_field 'SlaveUPS_Name', size => '50', class => 'textinput SlaveUPS_Name' , pattern=>'.*' , placeholder=>'upsname@IP[:port]'
|
||||
% param 'ClientUPS_Name' => $nut_data->{ClientUPS_Name} unless param 'ClientUPS_Name';
|
||||
%= text_field 'ClientUPS_Name', size => '50', class => 'textinput ClientUPS_Name' , pattern=>'.*' , placeholder=>'upsname@IP[:port]'
|
||||
<br></span></p>
|
||||
|
||||
<p><span class='label'>
|
||||
|
Reference in New Issue
Block a user