icinga2 remote windows custom service check.

Ajeesh Kannan <[email protected]> Mon, 8 Feb 2016 14:09:21 +0530
Newsgroups gmane.org.user-groups.linux.ilugc
Message-ID <CA+ark-owyEctFn4-cC8F-GjD_SfBaduUS0XYRRCa_5twGThhow@mail.gmail.com>
Hi ,

I have installed NSClient++ on remote windows machine and installed Icinga2
on a centos server.

After enabling the remote arguments in nsclient++ I can now check the
remote custom service using the check_nrpe command.

 /usr/lib64/nagios/plugins/check_nrpe -H 54.152.213.244 -c CheckProcState
-a icinga2.exe=started ShowAll
OK: All processes are running.|'icinga2.exe'=2;0;1

But while configuring the command in Icinga server, I am getting the
following error::
Icinga2 error :: no handler command.

commands are not recognizing in icinga2. My configuration as below.

/etc/icinga2/repository.d/hosts/ec2-xxxx.compute-1.amazonaws.com.conf

object Service "custom_process" {
   import "generic-service"
   host_name = "ec2-xxxx.compute-1.amazonaws.com."
   check_command = "check_nsc_prcoess"
 # vars.remote_nrpe_command = "alias_process_icinga2"
#  check_command = "/usr/local/nagios/libexec/check_nrpe -H 54.152.213.244
-c CheckProcState -a icinga2.exe=started ShowAll"
}


/etc/icinga2/conf.d/commands.conf

object CheckCommand "check_nsc_prcoess" {
import "plugin-check-command"
command = [
    PluginDir + "/check_nrpe",
    "-H", "$address$",
    "-c", "$check_nsc_prcoess!CheckProcState!5666!icinga2.exe!started$",
    "-a", "$icinga2.exe=started ShowAll$"
  ]
}

Can you please help to fix this problem for configuring a custom service in
innga2 for a windows server.


-- 
With Regards,
Ajeesh B.Kannan
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines