nsclient++ nsca and scripts

Thomas Borger Thomas.Borger at esg.de
Wed Nov 26 06:42:23 CET 2008


Hi,

First you should enable "NRPEListener.dll" so that NRPE is listen on port
5666 or some ohter port you have
been defined.

Then you need the section:

[NRPE Handlers]

and a command alias like:

command[check_acronis_image]=c:\windows\system32\cscript.exe //nologo
c:\Programme\NSClient++\scripts\check_acronis_image_multiple.vbs

Restart NSClient++ service.

Then you can use on nagios site the command:

/usr/local/nagios/libexec/check_nrpe -H $HOSTNAME -c check_acronis_image

Hope this help?!

best regards
Thomas Borger

"Curtis LaMasters" <curtislamasters at gmail.com> schrieb am 26.11.2008
05:20:31:

> I've been searching around plenty for the last 5-6 hours and have not
> found anything yet.  I would like to be able to run scripts on a host
> (SBS 2003) with nsclient++ installed and report back to my Nagios
> server.  I have tried putting a script into the [NSCA Commands] area
> but keep getting "Output: 'Command was not found: c:
> \Windows\system32\cscript.exe'".  Any thoughts...
>
> Curtis LaMasters
> http://www.curtis-lamasters.com
> http://www.builtnetworks.com
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
> Build the coolest Linux based applications with Moblin SDK & win great
prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null

__________________________________________________________________________________________________________

ESG Elektroniksystem- und Logistik-GmbH
Rechtsform/Legal Form: Gesellschaft mit beschränkter Haftung
Sitz/Registered Office: München
Handelsregister/Commercial Register: Registergericht München, HRB 8130
Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Peter
Obermark
Vorsitzender der Geschäftsführung/CEO: Dipl.-Math. Gerhard Schempp,
Geschäftsführer/Managing Director: Dipl.-Kfm. Götz Graichen




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list