nsclient++ nsca and scripts
Michael Medin
michael at medin.name
Mon Dec 1 09:36:09 CET 2008
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 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20081201/4a5b5abf/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