Hello list,
 
I want to install some Icinga2-hosts on a couple of seagoing vessels, which are
online only irregulary. I want to send the check-results to an Icinga2-host
running on the shore-side via email. In a test-environment from the ships-
network I have prepared a host with does the active checks and which works fine
so far. Now  I hought obsess_over_host/obsess_over_service is the way to go,
but I'm stucked.

On "icinga2 daemon -C" I always get the following error:
 
/etc/icinga2/conf.d/local.d/main.conf(38):  * the obsess_over_host directive in
                                                                                
          the host definition is enabled.
/etc/icinga2/conf.d/local.d/main.conf(39):  */
/etc/icinga2/conf.d/local.d/main.conf(40): ochp_command=submit_host_check_result
                                                                                
                            ^^^^^^^^^^^^^^^^^^^^^^^^
/etc/icinga2/conf.d/local.d/main.conf(41):
/etc/icinga2/conf.d/local.d/main.conf(42): /*
 
Config error: Error while evaluating expression: Tried to access undefined
                                                                         script 
variable 'submit_host_check_result'
critical/config: 1 errors, 0 warnings.
 

In my local.d/main.conf I have:
 
enable_notifications=0
ochp_timeout=5
ochp_command=submit_host_check_result
obsess_over_hosts=1
 
and in my local.d/commands.cfg I have defined:
 
object CheckCommand "submit_host_check_result" {
            import "plugin-check-command"
 
            command = [ PluginDir + "/submit_host_check_result" ]
 
            arguments = {
            }
} The script itself exist, but does nothing at all at the moment.
 
Why is Icinga2 complaining about undefined script variable
"submit_host_check_result"? What am I missing?
 
thanks in advance
Kai
 
 
 
 
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to