I don't think that Nagios/nscp is geared to what you want it to do.
Instead, I would suggest that a Scheduled Task might be more appropriate
(or use something like SMS to push out an update on demand/on a
schedule, if you have it in place).
Cheers
Steve Onotsky
Server Support Technologist
Broadridge
Investor Communication Solutions, Canada
5970 Chedworth Way
Mississauga ON L5R 4G5
Tel: (905) 507-5328
Fax: (905) 507-5312
Inet: steve.onot...@broadridge.com <mailto:steve.onot...@broadridge.com>
Quis custodiet ipsos custodes?
- Juvenal, Satires, VI, 347
________________________________
From: Leleux, Jeremy J [mailto:jjlel...@sunlandconstruction.com]
Sent: May 19, 2009 10:15
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Running Windows batch files through NRPE
Hi All,
I'm running Nagios 3.0.6/CentOS 5.2 for my Nagios server. Its
monitoring my Windows Servers, all 2003, I have NSClient++ on those
servers and its working fine. My problem is that I'm trying to
centralize the configs on the NSClient++'s w/ the help of batch files.
I have setup commands to allow me run the scripts w/ the help of
check_nrpe, but they will not run.
Here is the contents of one of my batch files, nscpp_config.bat, to
update the NSClient++ config:
@echo off
xcopy \\10.10.0.50\public\Departments\Infor~1\Scripts\nscpp_copy.bat
C:\Progra~1\NSClient++ /Y
exit
When I try to run this command from my Nagios Server, I get an "Invalid
Drive Specification Error". And here is my config line to allow the
command in NSClient++:
cp_script=nscpp_config.bat
If someone else has done this in past, please let me know how you have
done this.
Respectfully,
Jeremy Leleux
IT Administrator
Sunland Construction, Inc.
Corporate Division
Office: 337.550.2142
Fax: 337.546.0245
Mobile: 337.580.6062
Email: jjlel...@sunlandconstruction.com
This message and any attachments are intended only for the use of the addressee
and
may contain information that is privileged and confidential. If the reader of
the
message is not the intended recipient or an authorized representative of the
intended recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this communication in
error, please notify us immediately by e-mail and delete the message and any
attachments from your system.
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null