<div>Actually C# Does have echo,  try</div>
<div>System.Console.WriteLine("ECHO TO STANDARD IO");</div>
<div>you can also write to standard error </div>
<div>and you can also redirect IO streams, </div>
<div> </div>
<div>C# give pleanty of ways for doing this, since it is a full development language and the Dot NEt Framework offers pleanty of classes, Go to MSDN and read throught the Library. particullary the  IO,Console, and posibly the Process class depending on how you want to accomplish things.</div>

<div> </div>
<div>Using C# NC_Net can feed an IO into  Win32_Send_NSCA.exe</div>
<div>I also wrote my own version of SendNSCA in C# (internally in NC_NEt)</div>
<div>doing that is a bit too complicated to discuss, but to oversimpify things:</div>
<div>To reimplement SendNSCA just convert the Send_nsca.c into C#</div>
<div>FOr commiunicating with Win32SEnd_Nsca read up on running processes Asyncronous and Syncronously. (spelling may be off)</div>
<div> </div>
<div>Have you tried using NC_NEt it provides both Active and Passive checks in a single windows plugin client It also has the ability to run other Scripts loaded into its script folder.</div>
<div>IT is availible on sourceforge: <a href="http://sourceforge.net/projects/nc-net">http://sourceforge.net/projects/nc-net</a></div>
<div> </div>
<div>TOny (Author of NC_Net)<br><br></div>
<div class="gmail_quote">On Jan 23, 2008 8:13 AM, <<a href="mailto:ankit.mehrotra@tcs.com">ankit.mehrotra@tcs.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Hi,<br><br>I am trying to monitor windows machines passively.<br>For the same, I am writing some code in C#.<br>
<br>The problem is, C# does not support anything like echo command(The way we<br>used to do it on Linux).<br>I have tried to redirect the output from a file to the send_nsca exe, but<br>to no avail.<br><br>Can you suggest some formats in which the information can be passed to the<br>
send_nsca exe ?<br><br>Thanks<br>Ankit<br><br>=====-----=====-----=====<br>Notice: The information contained in this e-mail<br>message and/or attachments to it may contain<br>confidential or privileged information. If you are<br>
not the intended recipient, any dissemination, use,<br>review, distribution, printing or copying of the<br>information contained in this e-mail message<br>and/or attachments to it are strictly prohibited. If<br>you have received this communication in error,<br>
please notify us by reply e-mail or telephone and<br>immediately and permanently delete the message<br>and any attachments. Thank you<br><br><br><br><br>-------------------------------------------------------------------------<br>
This SF.net email is sponsored by: Microsoft<br>Defy all challenges. Microsoft(R) Visual Studio 2008.<br><a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target="_blank">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br>
_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>