<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
Sorry for the late reply...but...<br>
<br>
<br>
What you want to do is:<br>
1, Enable ExternalScripts module<br>
2, Enable NSCA module<br>
3, define an external script (a "command" mapped to your script)<br>
4, add the NSCA "command thingy"<br>
5, (probably want to configure some other things as well...)<br>
<br>
like so:<br>
<br>
[modules]<br>
NSCAAgent.dll<br>
CheckExternalScripts.dll<br>
<br>
[External Scripts]<br>
check_es=scripts\my_cool_script.bat<br>
<br>
[NSCA Commands]<br>
my_check=check_es<br>
<br>
The "strangeness" here is the "mapping" you need between the "script"
and a "command"...<br>
<br>
// Michael Medin<br>
<br>
<br>
<br>
Curtis LaMasters skrev:
<blockquote
cite="mid:6b13ab0f0811252020l4756930ax89cc3247b7478c23@mail.gmail.com"
type="cite">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...<br>
<br clear="all">
Curtis LaMasters<br>
<a moz-do-not-send="true" href="http://www.curtis-lamasters.com">http://www.curtis-lamasters.com</a><br>
<a moz-do-not-send="true" href="http://www.builtnetworks.com">http://www.builtnetworks.com</a><br>
<pre wrap="">
<hr size="4" width="90%">
-------------------------------------------------------------------------
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
<a class="moz-txt-link-freetext" href="http://moblin-contest.org/redirect.php?banner_id=100&url=/">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a></pre>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null</pre>
</blockquote>
<br>
</body>
</html>