[Nagiosplug-help] Help Using Plugins

Thomas Guyot-Sionnest dermoth at aei.ca
Tue Dec 1 13:20:04 CET 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 30/11/09 02:05 PM, Ian Manco wrote:
> Hi Thomas,

Hi... Next time please post at the bottom of the thread (or in the
middle as replies)... common mailing lists practices...

> Sorry I forgot to add.....
> 
> 
> I tried to put the following into my commands.cfg file:
> 
> define command {
>   command_name <<CheckEventLog>>
>   command_line check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckEventLog -a
> filter=new file="$ARG1$" MaxWarn=$ARG2$ MaxCrit=$ARG3$
> filter-generated=\<2h filter-eventID=="$ARG4$" filter-eventType==error
> filter=in filter=all
> }
> <<CheckEventLog>> application!10!20!12345 
> 
> 
> If this is correct, then I have no idea how to call it from my
> Windows.cfg

command_name is what you call from a service definition (this is all
well documented in Nagios...) - and you should remove the <<>> from
it... If you complete the missing parameters in command_line you should
be able to run the command from the shell. Once you get the command to
run fine from there, copy it to your command_line parameter with all
variable options replaced with macros (Macros are also very well
documented in Nagios).

- From your previous email you it seems that you use check_nt, which is
the deprecated NSClient protocol. To use check_nrpe you have to
configure the proper module in NSClient++. Also once you have that
working you could move the check_nt checks to check_nrpe if you wish to
use a single protocol for checking your hosts.


- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFLFQn06dZ+Kt5BchYRAvr8AJ9R88NrirR2d+ckcwKkJJ/x3EgzRACdEHbK
1AnmTHrUrKUGlyusSw+xvmI=
=OuhK
-----END PGP SIGNATURE-----




More information about the Help mailing list