Set timeout on IPMI command

This commit is contained in:
Joshua Boniface 2023-02-23 11:10:09 -05:00
parent a11206253d
commit bcff6650d0
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,8 @@ class MonitoringPluginScript(MonitoringPlugin):
ipmi_username = self.config["ipmi_username"]
ipmi_password = self.config["ipmi_password"]
retcode, _, _ = run_os_command(
f"/usr/bin/ipmitool -I lanplus -H {ipmi_hostname} -U {ipmi_username} -P {ipmi_password} chassis power status"
f"/usr/bin/ipmitool -I lanplus -H {ipmi_hostname} -U {ipmi_username} -P {ipmi_password} chassis power status",
timeout=1
)
if retcode > 0: