I am using Director. How do I monitor a business process from the business process module using the check command?
If I create a host/service template that uses the check command and then create a host/service using the template… it requires a host address etc… there are no host addresses for the business process. I don’t see how I can monitor it.
You don’t need to tie anything to the BP.
Maybe try it on the command line first: '/usr/bin/icingacli' 'businessprocess' 'process' 'check' '<root node of the BP>' '--config' '<BP config file name (without .conf) in /etc/icingaweb2/modules/businessprocess/processes>' '--details'
Configure the business process command inside the Director, create a service template with the check command and then apply the check for your desired BP to the BP Dummy host, e.g:
In trying to get this working I have created the dummy host and the service check.
My issue now is that the service check for the business process outputs this error:
ERROR: Cannot read enabled modules. Config directory “/etc/icingaweb2” is not readable
I already added the nagios user to the Icingaweb2 group to fix this error with different check. What account is trying to run the check here that doesn’t have access to /etc/icingaweb2?
I think I am past this part now… I rebooted the icinga server and it now reports a different error that it cannot find a business process by the name I specified.
Yes, just use dummy for the host provided as external imported command from the ITL. The actual service checks reference the icingacli_businessprocess command then.