[ZBXNEXT-7045] IPMI script: command and value for graceful shutdown Created: 2021 Nov 08  Updated: 2022 Aug 05

Status: Confirmed
Project: ZABBIX FEATURE REQUESTS
Component/s: Proxy (P), Server (S)
Affects Version/s: 5.4.7
Fix Version/s: None

Type: New Feature Request Priority: Trivial
Reporter: Ilia Slepnev Assignee: Zabbix Development Team
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot from 2021-11-09 15-48-59.png     PNG File Screenshot from 2021-11-09 15-55-44.png    

 Description   

ipmitool allows these chassis power commands: status, on, off, cycle, reset, diag, soft

However, IPMI command in action scripts accepts on/off/integer value only.

How is it possible to gracefully shutdown a server (for example, supermicro) with Zabbix script?



 Comments   
Comment by Andrei Gushchin (Inactive) [ 2021 Nov 09 ]

Hello Ilja,

Thank you for raising this.
What do you mean supports only?
There is empty field for command in settings page, so you could run any command.

Best regards,
Andrei

Comment by Ilia Slepnev [ 2021 Nov 09 ]

Here is shutdown sequence performed by ipmitool utility:

[root@zabbix ~]# ipmitool -H test-ipmi -U ... -P ... -L ADMINISTRATOR power soft
Chassis Power Control: Soft
[root@zabbix ~]# ipmitool -H test-ipmi -U ... -P ...  -L ADMINISTRATOR power status
Chassis Power is on
... wait 10 sec ...[root@zabbix ~]# ipmitool -H test-ipmi -U ... -P ...  -L ADMINISTRATOR power status
Chassis Power is off

 

I tried to accomplish exactly the same with zabbix action, but got error.

 

Comment by Alexander Vladishev [ 2021 Nov 11 ]

Currently Zabbix only supports these ipmi command values: "on", "off" or any unsigned integer. See documentation.

I move this ticket to the ZBXNEXT project as "New feature request".

Generated at Sat Jun 07 12:20:07 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.