Hi
I need a way to power on server from ilo when zabbix send problem alarm . can anyone help me on this case ?
I have a script for doing such a thing but i don't know how can I automate that process with zabbix .
#!/usr/bin/expect -f
# Replace Administrator@L2 and ILO-PASSWORD-HERE with your settings
spawn ssh username@ip
expect "password: "
send "ILO-PASSWORD-HERE\r"
expect "</>hpiLO-> "
send "power on\r"
sleep 2
expect "iLO-> "
send "exit\r"
I need a way to power on server from ilo when zabbix send problem alarm . can anyone help me on this case ?
I have a script for doing such a thing but i don't know how can I automate that process with zabbix .
#!/usr/bin/expect -f
# Replace Administrator@L2 and ILO-PASSWORD-HERE with your settings
spawn ssh username@ip
expect "password: "
send "ILO-PASSWORD-HERE\r"
expect "</>hpiLO-> "
send "power on\r"
sleep 2
expect "iLO-> "
send "exit\r"
Comment