[Nagiosplug-help] use check_nrpe to start VB Program

Emiliano Giovannetti giovannetti.emiliano at gmail.com
Fri Jun 20 15:16:59 CEST 2008


I hope someone could help...
I'm trying to use Nagios and the check_nrpe plugins to restart a Visual
Basic program if it's down.
The Nagios server is a Linux box (Centos 5.1).
check_nrpe launchs a vbs script on a Windows 2000 server which is the same
machine where the VB program should run.
The script uses WMI to check if the program is running and to potentially
create a new instance of the process.

On the Nagios server I install nrpe-2.12
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.

This is an excerpt from nrpe.cfg on the Windows 2000 server:

allowed_hosts=ip of Nagios server
command[process_restart]=cscript //nologo c:\process_restart.vbs $ARG1$

On the Nagios server I try out this:

<http://forum.miwi-dv.net/nagios/viewtopic.php?f=2&t=100#>./check_nrpe -H
server.domain -c process_restart -a vbProgram.exe

At this point on the Windows server a process vbProgram.exe is visible from
the task manager but no windows are displayed.
Moreover the process cannot be killed from the task manager ("Access Denied"
message is returned).
In nrpe_nt.log I can see this line:

16:06:02; 5488; 7;Command completed with return code 0

which, I think, indicates that the command completed successfully.

How can I make the program visible on desktop?
Am I missing something?
Is at least possible to do what I'm trying to do?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20080620/0ffb275a/attachment.html>

More information about the Help mailing list