nsclient++ nsca and scripts

Curtis LaMasters curtislamasters at gmail.com
Tue Dec 2 23:18:37 CET 2008


Thank you very much.  It's quite simple how you layed it out. I appreciate
that. NSClient++ + External Scripts = Awesome.

Curtis LaMasters
http://www.curtis-lamasters.com
http://www.builtnetworks.com


On Mon, Dec 1, 2008 at 2:36 AM, Michael Medin <michael at medin.name> wrote:

>  Hello,
>
> Sorry for the late reply...but...
>
>
> What you want to do is:
> 1, Enable ExternalScripts module
> 2, Enable NSCA module
> 3, define an external script (a "command" mapped to your script)
> 4, add the NSCA "command thingy"
> 5, (probably want to configure some other things as well...)
>
> like so:
>
> [modules]
> NSCAAgent.dll
> CheckExternalScripts.dll
>
> [External Scripts]
> check_es=scripts\my_cool_script.bat
>
> [NSCA Commands]
> my_check=check_es
>
> The "strangeness" here is the "mapping" you need between the "script" and a
> "command"...
>
> // Michael Medin
>
>
>
> Curtis LaMasters skrev:
>
> 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 worldhttp://moblin-contest.org/redirect.php?banner_id=100&url=/
>
> ------------------------------
>
> _______________________________________________
> Nagios-users mailing listNagios-users at lists.sourceforge.nethttps://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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20081202/6fc59bdb/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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=/
-------------- next part --------------
_______________________________________________
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