Hi Markus, you are great. With double quotes it's O.K. Thank you very much for your quick and correct response!
-- best regards Kai Nothdurft >>> On 05.03.2015 at 15:55, Markus Joosten<[email protected]> wrote: > Hi Kai, > > commands should be specified in double quotes (""). > > Regards, > Markus > -----Original message----- > From: Kai Nothdurft <[email protected]> > Sent: Thursday 5th March 2015 15:47 > To: [email protected] > Subject: [icinga-users] Icinga 2 and obsess_over_host / obsess_over_service > > 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 _______________________________________________ icinga-users mailing list [email protected] https://lists.icinga.org/mailman/listinfo/icinga-users
