Oh, ok. I want to say that the standard check_users is for Linux boxes only, which is why I created that plugin. Are you trying to run Nagios server on a Windows machine, or are you just trying to monitor a Windows client? You can just download the Windows agents for Nagios, no Cygwin needed if you are just monitoring Windows servers. The Windows client is called NSClient++ (<a href="http://www.nsclient.org/nscp/">http://www.nsclient.org/nscp/</a>), but I usually use the Opsview Agents (<a href="http://www.opsview.com/technology/resources/downloads/opsview-agents">http://www.opsview.com/technology/resources/downloads/opsview-agents</a>), because I use OpsView, which is a fork of Nagios, that makes it much easier/pretty to manage. Everything can be done from the WebUI. At any rate, the OpsView agent is just a wrapper around NSClient++.<br>
<br><div class="gmail_quote">On Thu, May 3, 2012 at 12:38 PM, L. V. Lammert <span dir="ltr"><<a href="mailto:lvl@omnitec.net" target="_blank">lvl@omnitec.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">At 11:30 AM 5/3/2012, you wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Haha. Is that this check_users script? <<a href="http://john.wesorick.com/2011/03/nagios-check-checkusers-windows.html" target="_blank">http://john.wesorick.com/<u></u>2011/03/nagios-check-<u></u>checkusers-windows.html</a>><a href="http://john.wesorick.com/2011/03/nagios-check-checkusers-windows.html" target="_blank">http:/<u></u>/john.wesorick.com/2011/03/<u></u>nagios-check-checkusers-<u></u>windows.html</a><br>
</blockquote>
<br>
The one I was testing is plugins 1.4.15, .. but the issue is there for others also. Why would the executable fail outside the build directory when ldd shows exactly the same dependencies with absolute paths?<br>
<br>
Lee<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
On Thu, May 3, 2012 at 12:23 PM, L. V. Lammert <<mailto:<a href="mailto:lvl@omnitec.net" target="_blank">lvl@omnitec.net</a>><a href="mailto:lvl@omnitec.net" target="_blank">lvl@<u></u>omnitec.net</a>> wrote:<br>
Trying to figure out Nagios plugins under cygwin, .. running the plugin in<br>
the build directory is successful, however outside the build directory is<br>
is not.<br>
<br>
ldd in the build directory:<br>
<br>
$ ldd ./check_users.exe<br>
ntdll.dll => /cygdrive/c/Windows/system32/<u></u>ntdll.dll (0x77710000)<br>
kernel32.dll => /cygdrive/c/Windows/system32/<u></u>kernel32.dll<br>
(0x759b0000)<br>
cygwin1.dll => /usr/bin/cygwin1.dll (0x61000000)<br>
<br>
Matches the shared object requirements in another directory:<br>
<br>
$ ldd ./check_users.exe<br>
ntdll.dll => /cygdrive/c/Windows/system32/<u></u>ntdll.dll (0x77710000)<br>
kernel32.dll => /cygdrive/c/Windows/system32/<u></u>kernel32.dll<br>
(0x759b0000)<br>
cygwin1.dll => /usr/bin/cygwin1.dll (0x61000000)<br>
<br>
However, it DNW unless it is in the build directory. Can anyone point me<br>
in a direction to resolve the issue?<br>
<br>
Thanks!<br>
<br>
Lee<br>
______________________________<u></u>_________________<br>
grlug mailing list<br></div>
<mailto:<a href="mailto:grlug@grlug.org" target="_blank">grlug@grlug.org</a>><a href="mailto:grlug@grlug.org" target="_blank">grlug@<u></u>grlug.org</a><br>
<a href="http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug" target="_blank">http://shinobu.grlug.org/cgi-<u></u>bin/mailman/listinfo/grlug</a><div class="im"><br>
<br>
<br>
______________________________<u></u>_________________<br>
grlug mailing list<br>
<a href="mailto:grlug@grlug.org" target="_blank">grlug@grlug.org</a><br>
<a href="http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug" target="_blank">http://shinobu.grlug.org/cgi-<u></u>bin/mailman/listinfo/grlug</a><br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
______________________________<u></u>_________________<br>
grlug mailing list<br>
<a href="mailto:grlug@grlug.org" target="_blank">grlug@grlug.org</a><br>
<a href="http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug" target="_blank">http://shinobu.grlug.org/cgi-<u></u>bin/mailman/listinfo/grlug</a><br>
</div></div></blockquote></div><br>