I’m really struggling with this one. I need to determine the Business Impact of a Host/Service from the command line or via an API. What I need to replicate is the Business Impact option when looking at the Host or Service via Icingaweb. I cannot seem get the Business Process NodeID via the icingacli businessprocess command line as it only returns the Node Description.
Basically what I’m trying to do is to create a notification email showing the business impact of a host or service that is critical. I’ve tried using the business process check command to generate the notification, but an alarm does not get triggered when additional sub nodes fail in the Business Process. So I’m attempting to work the other way round:-
- Receive the alert on my notification script.
- Determine ALL the Business Processes affected.
- Run icingacli businessprocess process check “NodeID” --config “Config File” --details and add that to the Notification email for all affected Business Processes.
- Send the notification.