SSH and Windows

Goodburn, Laura lmgoodbu at email.uncc.edu
Wed May 31 22:24:38 CEST 2006


Please forgive me as I am fairly new to Nagios and the world of plugins.


 

I have a Windows box that is running ssh and I would like to connect via
ssh, run a wmi vbs script, and pass the result back to Nagios. I know
that I can call the check_by_ssh plugin and pass the script name for the
command parameter but I don't know how to pass the result back to the
check_by_ssh plugin.

 

When I ssh into the box and run the .vbs script for CPU by executing the
following command:

cscript //nologo c:\nrpe_nt\check_cpu.vbs -H testserver -w 80 -c 90

 

I get the following:

OK - Total CPU Utilization 2% | 'CPU_Utilization'=2%;80%;90%;;

 

However, if I try the following command:

./libexec/check_by_ssh -H testserver -C "cscript //nologo
c:\nrpe_nt\check_cpu.vbs -H testserver -w 80 -c 90"

 

I get nothing returned, the prompt just comes back like it ran the
script but returned no result.

 

Has anyone else ever written a custom plugin to pull the result back in
via ssh? For security concerns and traffic control, I would prefer to
use ssh instead of nrpe for running wmi scripts. Especially since we are
trying to make it so that the wmi scripts will only report the
statistics for that box instead of branching out to other Windows boxes
on the subnet.

 

Any help would be greatly appreciated.

 

Thanks.

Laura

 

Laura Goodburn

SMC Manager

Information and Technology Services

The University of North Carolina at Charlotte

9201 University City Boulevard

Charlotte, NC 28223

Phone (704) 687-8988

lmgoodbu at uncc.edu

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060531/63c764d9/attachment.html>


More information about the Users mailing list