Hi,<br><br>I hope someone could help...<br>I'm trying to use Nagios and the check_nrpe plugins to restart a Visual Basic program if it's down.<br>The Nagios server is a Linux box (Centos 5.1).<br>check_nrpe launchs a vbs script on a Windows 2000 server which is the same machine where the VB program should run.<br>
The script uses WMI to check if the program is running and to potentially create a new instance of the process.<br><br>On the Nagios server I install nrpe-2.12<br>On
the Windows 2000 server I install nrpe_nt 0.8 as a service running as
LocalSystem and user currently logged is the domain administrator.<br><br>This is an excerpt from nrpe.cfg on the Windows 2000 server:<br><dl class="codebox"><dt><br><a href="http://forum.miwi-dv.net/nagios/viewtopic.php?f=2&t=100#" onclick="selectCode(this); return false;"></a></dt>
<dd><code>server_port=5666<br>allowed_hosts=ip of Nagios server<br>dont_blame_nrpe=1<br>debug=1<br>command_timeout=30<br>loglevel=7<br>use_win_metachars=1<br>command[process_restart]=cscript //nologo c:\process_restart.vbs $ARG1$<br>
</code></dd></dl> <br><br>On the Nagios server I try out this:<br><dl class="codebox"><dt><br><a href="http://forum.miwi-dv.net/nagios/viewtopic.php?f=2&t=100#" onclick="selectCode(this); return false;"></a></dt><dd><code>./check_nrpe -H server.domain -c process_restart -a vbProgram.exe<br>
</code></dd></dl><br><br>At this point on the Windows server a process vbProgram.exe is visible from the task manager but no windows are displayed.<br>Moreover the process cannot be killed from the task manager ("Access Denied" message is returned).<br>
In nrpe_nt.log I can see this line:<br><dl class="codebox"><dt><br><a href="http://forum.miwi-dv.net/nagios/viewtopic.php?f=2&t=100#" onclick="selectCode(this); return false;"></a></dt><dd><code>2008-06-19 16:06:02; 5488; 7;Command completed with return code 0<br>
</code></dd></dl><br>which, I think, indicates that the command completed successfully.<br><br>How can I make the program visible on desktop?<br>Am I missing something?<br>Is at least possible to do what I'm trying to do?<br>
<br>Emiliano