add nodes comments
This commit is contained in:
parent
9587abeba5
commit
305f3022f3
@ -384,7 +384,12 @@ function install_mod {
|
|||||||
upsCmd="upsc \"$upsConnection\" 2>/dev/null"
|
upsCmd="upsc \"$upsConnection\" 2>/dev/null"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sed -i "/my \$dinfo = df('\/', 1);/i\\\t\t\$res->{upsc} = \`$upsCmd\`;" "$NODES_PM_FILE"
|
# Insert UPS data collection before the disk info line
|
||||||
|
sed -i "/my \$dinfo = df('\/', 1);/i\\
|
||||||
|
\\
|
||||||
|
\t# Collect UPS status information\\
|
||||||
|
\t\$res->{upsc} = \\\`$upsCmd\\\`;" "$NODES_PM_FILE"
|
||||||
|
|
||||||
msg "UPS output added to \"$NODES_PM_FILE\"."
|
msg "UPS output added to \"$NODES_PM_FILE\"."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user