object CheckCommand "check_ssl"{ import "plugin-check-command" command = [ PluginDir + "/check_http --ssl -I $host.address$ $args$"]
vars.args ="" } object Host "agenda4"{ import "generic-host" address = "158.42.250.61" check_command = "check_ping_l" vars.host_type = "VIRTUAL" } object Service "agenda4_184" { import "generic-service" host_name = "agenda4" check_command = "check_ssl" vars.args = "" } On Fri, May 9, 2014 at 11:50 AM, Gunnar Beutner <gunnar.beut...@netways.de>wrote: > Am 09.05.2014 10:44, schrieb Jorge Ferrando: > > Thanks for the answer Michael. > > > > Yes, we are just trying it to move as soon as it's production ready :) > > > > All of the tests give that answer so just as an example > > > > # tail /var/log/icinga2/icinga2.log > > [2014-05-09 10:38:11 +0200] <Q #0x7fc849eb1118 W #0x7fc849eb1258> > > information/base: Running command '/usr/lib/nagios/plugins/check_http > > --ssl -I 158.42.250.61 ': PID 30163 > > Can you show us your CheckCommand and Service and/or Host definitions? > > > > > # sudo -u nagios /usr/lib/nagios/plugins/check_http --ssl -I > 158.42.250.61 > > HTTP OK: HTTP/1.1 302 Redirect - 390 bytes in 0.017 second response > > time |time=0.016691s;;;0.000000 size=390B;;;0 > > > > So it seems that those 3 items on the checklist are corre > > > > - PluginsDir is correct > > - Plugins are installed > > - nagios user also seems to have the right permissions to run the command > > > > debug.log is quite big... What exactly should I search for? > > > > > > > > > > On Fri, May 9, 2014 at 10:32 AM, Michael Friedrich > > <michael.friedr...@gmail.com <mailto:michael.friedr...@gmail.com>> > wrote: > > > > On 09.05.2014 10:15, Jorge Ferrando wrote: > > > > Hello > > > > I'm trying to migrate from nagios3 to icinga2. > > > > > > That's cool. But keep the note that it's not production ready yet > > - the final version is due soon, we're working hard on that one. > > So keep testing and report any issues you encounter :) > > > > > > > > I've translated my configuration files to the new format, but > > for all > > the host checks I'm receiving this output: > > > > execvpe() failed.: No such file or directory > > > > I've checked in the logs the commands being executed for the > > checks and > > they seem to be ok if I run them in console. > > > > > > Please share there call and output here, as well as the > > application log of icinga 2. > > > > > > > > Any idea of what's happening? > > > > > > The command being executed refers to a binary/script not existing > > or not accessible. Either you haven't installed the monitoring > > plugins package, or the PluginDir in constants.conf points to a > > different path. > > > > That error message requires some love - > > https://dev.icinga.org/issues/6160 > > > > kind regards, > > Michael > > > > > > -- > > DI (FH) Michael Friedrich > > > > michael.friedr...@gmail.com <mailto:michael.friedr...@gmail.com> > > || icinga open source monitoring > > https://twitter.com/dnsmichi || lead core developer > > dnsmi...@jabber.ccc.de <mailto:dnsmi...@jabber.ccc.de> || > > https://www.icinga.org/team > > irc.freenode.net/icinga <http://irc.freenode.net/icinga> || > > dnsmichi > > _______________________________________________ > > icinga-users mailing list > > icinga-users@lists.icinga.org <mailto:icinga-users@lists.icinga.org> > > https://lists.icinga.org/mailman/listinfo/icinga-users > > > > > > > > > > _______________________________________________ > > icinga-users mailing list > > icinga-users@lists.icinga.org > > https://lists.icinga.org/mailman/listinfo/icinga-users > > > -- > Gunnar Beutner > Application Developer > > NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg > Tel: +49 911 92885-0 | Fax: +49 911 92885-77 > GF: Julian Hein, Bernd Erk | AG Nuernberg HRB18461 > http://www.netways.de | gunnar.beut...@netways.de > > ** Open Source Backup Conference 2014 - September - osbconf.org ** > ** Puppet Camp Duesseldorf 2014 - Oktober - netways.de/puppetcamp ** > ** OSMC 2014 - November - netways.de/osmc ** > ** OpenNebula Conf 2014 - Dezember - opennebulaconf.com ** > _______________________________________________ > icinga-users mailing list > icinga-users@lists.icinga.org > https://lists.icinga.org/mailman/listinfo/icinga-users >
_______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users