Thank you very much.  It's quite simple how you layed it out. I appreciate that. NSClient++ + External Scripts = Awesome.<br><br clear="all">Curtis LaMasters<br><a href="http://www.curtis-lamasters.com">http://www.curtis-lamasters.com</a><br>
<a href="http://www.builtnetworks.com">http://www.builtnetworks.com</a><br>
<br><br><div class="gmail_quote">On Mon, Dec 1, 2008 at 2:36 AM, Michael Medin <span dir="ltr"><<a href="mailto:michael@medin.name">michael@medin.name</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



  
  

<div 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 type="cite"><div><div></div><div class="Wj3C7c">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 href="http://www.curtis-lamasters.com" target="_blank">http://www.curtis-lamasters.com</a><br>
  <a href="http://www.builtnetworks.com" target="_blank">http://www.builtnetworks.com</a><br>
  </div></div><pre><hr size="4" width="90%"><div class="Ih2E3d">
-------------------------------------------------------------------------
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 href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a></div></pre><div class="Ih2E3d">
  <pre><hr size="4" width="90%">
_______________________________________________
Nagios-users mailing list
<a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">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>
</div></blockquote>
<br>
</div>

</blockquote></div><br>