[ZBX-6034] IPMI remote command does not work Created: 2012 Dec 28  Updated: 2017 May 30  Resolved: 2013 Jan 07

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 1.8.15
Fix Version/s: 1.8.16rc2

Type: Incident report Priority: Critical
Reporter: Kodai Terashima Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File zabbix-1.8.15-ipmi.diff    
Issue Links:
Duplicate

 Description   

IPMI remote command does not work because remote command uses host ip address.

Configuration

  • host ip : 127.0.0.1
  • ipmi ip : 192.168.1.10
  • remote command : {HOSTNAME}

    :IPMI power on

zabbix_server.log output:

60244:20121228:044432.118 In run_commands()
60244:20121228:044432.118 In get_next_command(command_list:localhost:IPMI power on)
60244:20121228:044432.118 End get_next_command(alias:localhost,is_group:0,command:IPMI power on)
60244:20121228:044432.118 In run_remote_command(hostname:localhost,command:IPMI power on)
60244:20121228:044432.118 query [txnlev:1] [select hostid,host,useip,ip,dns,port,useipmi,ipmi_ip,ipmi_port,ipmi_authtype,ipmi_privilege,ipmi_username,ipmi_password from hosts where status in (0) and host='localhost' and hostid between 000000000000000 and 09999999999999
9]
60244:20121228:044432.118 In parse_ipmi_command(IPMI power on)
60244:20121228:044432.118 In set_ipmi_control_value(control:power, value:1)
60244:20121228:044432.118 In init_ipmi_host() host:'[127.0.0.1]:623'
60244:20121228:044432.118 In get_ipmi_host() host:'[127.0.0.1]:623'
60244:20121228:044432.118 End of get_ipmi_host():(nil)
60244:20121228:044432.118 In allocate_ipmi_host() host:'[127.0.0.1]:623'
60244:20121228:044432.118 End of allocate_ipmi_host():0x1194210
60244:20121228:044446.145 In setup_done() phost:0x1194210 host:'[127.0.0.1]:623'
60244:20121228:044446.145 setup_done() fail: [22] Invalid argument
60244:20121228:044446.145 End of setup_done():NETWORK_ERROR
60244:20121228:044446.148 In domain_closed() phost:0x1194210 host:'[127.0.0.1]:623'
60244:20121228:044446.148 End of domain_closed()
60244:20121228:044446.148 End of init_ipmi_host():0x1194210
60244:20121228:044446.148 cannot connect to IPMI host: [22] Invalid argument
60244:20121228:044446.148 End run_remote_command(result:-3)
60244:20121228:044446.148 In get_next_command(command_list
60244:20121228:044446.148 Result get_next_command [EOL]
60244:20121228:044446.148 End run_commands()



 Comments   
Comment by Kodai Terashima [ 2012 Dec 28 ]

Attached a patch

Comment by dimir [ 2013 Jan 04 ]

Funny that "Actions" column in "Monitoring" -> "Events" shows "Ok" anyway. The only way to discover the bug is a log file. But we will not be fixing that in this issue.

Comment by dimir [ 2013 Jan 04 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-6034 . Thanks for the patch, kodai!

Comment by Alexander Vladishev [ 2013 Jan 05 ]

(1) Macros (

{HOSTNAME}

,

{IPADDRESS}

,

{HOST.DNS}

,

{HOST.CONN}

and {$USERMACROS}) should be resolved in the IPMI IP field.

dimir RESOLVED in r32516

sasha FIXED possible crashes when useipmi is not set; added support of macros in IPMI scripts. Please review my changes in r32553.

dimir Thanks! CLOSED

Comment by dimir [ 2013 Jan 08 ]

Update "Fix Version/s".

Comment by dimir [ 2013 Jan 08 ]

Fixed in pre-1.8.16 r32570.

The fix will be available in 1.8.16rc2.

Generated at Fri Apr 26 09:25:18 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.