Sorry, My mistake, I did not see the result of CRTL+V ( paste wrong). Below is the correct:
object CheckCommand "my-ldap-check" { import "plugin-check-command" command = [ PluginDir + "/check_ldap" + "IP_LDAP" + "-b dc=xxxxx,dc=com,dc=br" "-D cn=Manager,dc=br" "-w XXXXX" ] arguments = { "-H" = "$address$" } vars.address = "$address$" } object Service "my-ldap" { import "generic-service" host_name = "my-server" check_command = "my-ldap-check" } -- Atenciosamente, Édnei Rodrigues Analista de Infraestrutura - Gestão de Identidades Confederação Sicredi www.sicredi.com.br<https://outlook.sicredi.net.br/owa/redir.aspx?C=8cEvgLixeEq55upfN9Y5vVeI7I0Ny9EIEcRLy-bpH1Iyv-WH8bRibq78Ojle7wmnvWh45IRlQIQ.&URL=http%3a%2f%2fwww.sicredi.com.br> [cid:1429040024.2858.19.camel@localhost] Em Ter, 2015-04-14 às 21:24 +0200, Markus Joosten escreveu: Actually no, this is still old Icinga 1 syntax. The new syntax for a check command is as follows (taken from example check_tcp): object CheckCommand "tcp" { import "plugin-check-command" import "ipv4-or-ipv6" command = [ PluginDir + "/check_tcp", "-H", "$tcp_address$", "-p", "$tcp_port$" ] vars.tcp_address = "$check_address$" } Try to adapt your check command to the new syntax. Also the documentation for Icinga2 has a lot of guidance for redefining everything the new way. Regards, Markus Sent from my iPhone On 14 Apr 2015, at 21:16, Ednei Felipe Faleiro Rodrigues <ednei_rodrig...@sicredi.com.br<mailto:ednei_rodrig...@sicredi.com.br>> wrote: Thanks Markus for the answer!!! So, let me see... In the Old Icinga: define command{ command_name check_ldap command_line $USER1$/check_ldap -H $HOSTADDRESS$ -b "dc=xxxxx,dc=com,dc=br" -D "cn=Manager,dc=br" -w XXXXX } define service{ use generic-service host_name ds1openldap1h service_description LDAP check_command check_ldap } This Will be: define command{ command_name check_ldap command_line $USER1$/check_ldap -H $HOSTADDRESS$ -b "dc=xxxxx,dc=com,dc=br" -D "cn=Manager,dc=br" -w XXXXX } define service{ use generic-service host_name ds1openldap1h service_description LDAP check_command check_ldap } Is this right ? -- Atenciosamente, Édnei Rodrigues Analista de Infraestrutura - Gestão de Identidades Confederação Sicredi www.sicredi.com.br<https://outlook.sicredi.net.br/owa/redir.aspx?C=8cEvgLixeEq55upfN9Y5vVeI7I0Ny9EIEcRLy-bpH1Iyv-WH8bRibq78Ojle7wmnvWh45IRlQIQ.&URL=http%3a%2f%2fwww.sicredi.com.br> <assinatura.jpg> Em Ter, 2015-04-14 às 21:02 +0200, Markus Joosten escreveu: Good evening to you ;) It's true, adapting from Icinga 1 / Nagios to Icinga 2 is quite an effort, since literally everything has changed. But from my point of view the effort is well worth it! You still can use your old check_ldap plugin (or whatever you were using) but you have to define the proper command and all arguments. (There is already a command definition for check_tcp if that is enough for you.) You should check the provided configuration examples and the documentation, everything is well documented. Once you have adapted to Icinga2, i'm sure you don't want to miss it again. (talking from my experience of course) Regards, Markus Sent from my BlackBerry 10 smartphone. Original Message From: Ednei Felipe Faleiro Rodrigues Sent: Tuesday, April 14, 2015 6:30 PM To: icinga-users@lists.icinga.org<mailto:icinga-users@lists.icinga.org> Subject: [icinga-users] Icinga2 - Check ldap services Good Afternoon guys! How are you doing ? Guys, I am taking very difficulty to configure a service to check the ldap service for my remote LDAP Server. In the past, I used the Icinga 1 and I did not have difficulty to configure, because was more simple. Now, on icinga 2, Did someone tried to configure this service ? Thanks for the reply! -- Atenciosamente, Édnei Rodrigues Analista de Infraestrutura - Gestão de Identidades Confederação Sicredi www.sicredi.com.br<https://outlook.sicredi.net.br/owa/redir.aspx?C=8cEvgLixeEq55upfN9Y5vVeI7I0Ny9EIEcRLy-bpH1Iyv-WH8bRibq78Ojle7wmnvWh45IRlQIQ.&URL=http%3a%2f%2fwww.sicredi.com.br> [cid:1429028145.2858.6.camel@localhost] ________________________________ Esta mensagem é somente para uso do destinatário informado e pode conter informações privilegiadas, proprietárias, ou privadas. Se você recebeu esta mensagem por engano, por favor notifique o remetente imediatamente e apague a original. Qualquer uso deste email é proibido. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. ________________________________ Esta mensagem é somente para uso do destinatário informado e pode conter informações privilegiadas, proprietárias, ou privadas. Se você recebeu esta mensagem por engano, por favor notifique o remetente imediatamente e apague a original. Qualquer uso deste email é proibido. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. _______________________________________________ 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<mailto:icinga-users@lists.icinga.org> https://lists.icinga.org/mailman/listinfo/icinga-users Esta mensagem somente para uso do destinatrio informado e pode conter informaes privilegiadas, proprietrias, ou privadas. Se voc recebeu esta mensagem por engano, por favor notifique o remetente imediatamente e apague a original. Qualquer uso deste email proibido. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. ________________________________ Esta mensagem é somente para uso do destinatário informado e pode conter informações privilegiadas, proprietárias, ou privadas. Se você recebeu esta mensagem por engano, por favor notifique o remetente imediatamente e apague a original. Qualquer uso deste email é proibido. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org<mailto:icinga-users@lists.icinga.org> https://lists.icinga.org/mailman/listinfo/icinga-users <assinatura.jpg> ________________________________ Esta mensagem é somente para uso do destinatário informado e pode conter informações privilegiadas, proprietárias, ou privadas. Se você recebeu esta mensagem por engano, por favor notifique o remetente imediatamente e apague a original. Qualquer uso deste email é proibido. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org<mailto:icinga-users@lists.icinga.org> https://lists.icinga.org/mailman/listinfo/icinga-users Esta mensagem somente para uso do destinatrio informado e pode conter informaes privilegiadas, proprietrias, ou privadas. Se voc recebeu esta mensagem por engano, por favor notifique o remetente imediatamente e apague a original. Qualquer uso deste email proibido. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. Esta mensagem é somente para uso do destinatário informado e pode conter informações privilegiadas, proprietárias, ou privadas. Se você recebeu esta mensagem por engano, por favor notifique o remetente imediatamente e apague a original. Qualquer uso deste email é proibido. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
_______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users