|
From: Subhendu G. <sg...@sg...> - 2002-09-04 18:58:36
|
On Wed, 4 Sep 2002, Edgard Dap=E1s wrote: >=20 > Just one question >=20 > I write a plugin, do I have to declare it in the hosts.cfg or in > command.cfg? >=20 > Even if I want to execute it in a remote machine? >=20 > Could you send me an example, please >=20 > Because, I have problem with the service status >=20 > Thanks >=20 Take a look at the plugin developers guidelines on the nagiosplug=20 homepage. If you are going to execute it on a remote system, are you using NRPE as = a=20 conduit between the monitoring host and the target? If so, you need an=20 entry for the plugin and all its parameters in nrpe.cfg. On the netsaint side, you need an entry for check_nrpe in commands.cfg=20 (should be there already) and an entry in hosts.cfg for a service check=20 using check_nrpe with arg=3Dplugin name defined in nrpe.cfg Hope this helps. --=20 -sg |