On 20.12.2013 10:26, Kenny Rasschaert wrote: > I'm trying to set up Icinga in a distributed configuration with one > remote Icinga instance and one central instance. I'm following the > instructions in this guide: > http://docs.icinga.org/latest/en/distributed.html > > Section 7.6.7 "ocsp_command=submit_check_result" mentions the > submit_check_result command definition and shows the corresponding shell > script. That script basically pipes the right data into send_nsca and > sends it to the central Icinga server. > > On my (Ubuntu Precise, Icinga 1.10) I found > /usr/share/icinga/plugins/eventhandlers/submit_check_result. That script > does something entirely different. It appends the data to the local > command file and doesn't use the NSCA client at all.
You're confusing an o{h.s}cp command and script with a script used for event handlers which are a totally different story here. - o{h.s}cp scripts are used to send passive checkresults via send_nsca to the remote master. so the docs are right about that and only do tell you that. - the eventhandler script is used in a different context. Like http://docs.icinga.org/latest/en/eventhandlers.html#serviceexample unveils, eventhandlers are triggered on state changes. While you cannot only restart your httpd server, you may also just re-send a new checkresult based on the current state. that's reasonable for a check triggering an alarm once and being reset to the ok state afterwards. or any other possible use case - users have plenty of ideas how to use that one. i for myself use that script to test icinga 2, and force trigger events based on incoming checkresults. Though, i've revamped the original script a bit for icinga 2 using getopts and other stuff required for proper operations (find it in tools/scripts/process_check_result) You should follow the docs, and use the provided sample over there including nsca. and while at it, you may consider nsca-ng as alternative to nsca. -- DI (FH) Michael Friedrich mail: michael.friedr...@gmail.com twitter: https://twitter.com/dnsmichi jabber: dnsmi...@jabber.ccc.de irc: irc.freenode.net/icinga dnsmichi icinga open source monitoring position: lead core developer url: https://www.icinga.org ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ icinga-users mailing list icinga-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/icinga-users