Skip to content

Instantly share code, notes, and snippets.

@ingmarioalberto
Created December 31, 2022 07:34
Show Gist options
  • Save ingmarioalberto/69049495f6c1a619f1718002aafcd6c2 to your computer and use it in GitHub Desktop.
Save ingmarioalberto/69049495f6c1a619f1718002aafcd6c2 to your computer and use it in GitHub Desktop.
todo... nagios ILO monitor
curl --location --insecure -u xxx:yyyy --silent --connect-timeout 10 X GET "https://10.1.1.1/redfish/v1/Systems/1/" | jq '.["Oem"]["Hpe"]["AggregateHealthStatus"]'
>>
{
"AgentlessManagementService": "Ready",
"BiosOrHardwareHealth": {
"Status": {
"Health": "OK"
}
},
"FanRedundancy": "Redundant",
"Fans": {
"Status": {
"Health": "OK"
}
},
"Memory": {
"Status": {
"Health": "OK"
}
},
"Network": {
"Status": {
"Health": "OK"
}
},
"PowerSupplies": {
"PowerSuppliesMismatch": false,
"Status": {
"Health": "OK"
}
},
"PowerSupplyRedundancy": "Redundant",
"Processors": {
"Status": {
"Health": "OK"
}
},
"SmartStorageBattery": {
"Status": {
"Health": "OK"
}
},
"Storage": {
"Status": {
"Health": "OK"
}
},
"Temperatures": {
"Status": {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment