| Version 7 (modified by mickem, 3 years ago) (diff) |
|---|
TracNav
*This is unsupported user provided content, if you have issues you are on your own :) *
Solution 2, I will recommand but is uses Microsoft AD
You need to download subinacl.exe from:
This is needed to be run on every "monitored" machine, or when you install the agent also execute those commands. You need Administrator for installing the agent, so you have access also to submit those commands
Create a hidden share for NSClient after the .MSI is installed, or use NRPE command to execute those commands:
This will give you access to the "service":
subinacl /service “nsclientpp” “nsclientpp” /grant=<domain>\<AD name>=F
This will give you rights to all the files from %SystemDrive?%\NSClient++
subinacl /subdirectories %SystemDrive%\NSClient++\* /grant=<domain>\<AD name>=F
This will create a hidded ($) share called nsclientpp
net share nsclientpp$=%SystemDrive%\NSClient++
This will grant you access to the share:
subinacl /share “nsclientpp$” /grant=<domain>\<AD name>=F
To restart the nsclientpp service use:
sc
<ip> restart nsclientpp
To "upgrade" the agent:
sc \\<ip> stop nsclientpp [mount the share, copy new agent] sc \\<ip> start nsclientpp
or you can build a script on Nagios server that uses smbclient mount, copy.
Equivalent to sc is net rpc
Of course you can get the list of IP from hosts.cfg file:
cat hosts.cfg | grep address | awk '{print $2}'
For any informations please contact me at: contact at djmario dot ro
Thank you marius chisa








