The script is using somewhat unclean (or call it not-so-perfect) code.
Please read the whole thread or have at least a look at post #16.
Please read the whole thread or have at least a look at post #16.


root@***-s-zab01:/usr/local/share/zabbix/externalscripts# ./ilo_discovery.pl 10.10.110.51 chassis fault discrete
{
"data":[
{
"{#CLASS}":"chassis",
"{#TYPE}":"discrete",
"{#KEY}":"Power fault"},
{
"{#CLASS}":"chassis",
"{#TYPE}":"discrete",
"{#KEY}":"Power control fault"},
{
"{#CLASS}":"chassis",
"{#TYPE}":"discrete",
"{#KEY}":"Drive Fault"},
{
"{#CLASS}":"chassis",
"{#TYPE}":"discrete",
"{#KEY}":"Cooling/fan fault"}]}
Comment