Page 1 of 1
NSClient++ Installation in command line
Posted: Fri Nov 06, 2015 10:46 am
by bsivavani
Hello all,
I got below commands to install NSClient++ in windows 7 and 8.
Win32:
msiexec /l* log.txt /i NSCP-0.4.0.169-win32.msi CONF_CAN_CHANGE="TRUE" ALLOWED_HOSTS="99.99.99.99" CONF_CHECKS="TRUE" CONF_NSCLIENT="TRUE" /quiet
Win64:
msiexec /l* log.txt /i NSCP-0.4.3.143-x64.msi CONF_CAN_CHANGE="TRUE" ALLOWED_HOSTS="99.99.99.99" NSCLIENT_PWD="" CONF_CHECKS="TRUE" CONF_NSCLIENT="TRUE" /quiet
Is there any way to deploy NSclient++ on multiple servers at a time from single server.
Thanks,
Vani
Re: NSClient++ Installation in command line
Posted: Fri Nov 06, 2015 11:20 am
by tmcdonald
Re: NSClient++ Installation in command line
Posted: Fri Nov 06, 2015 1:37 pm
by mopp
You can either use Powershell WinRM to run remote commands (Invoke-Command) or use tools like psexec from sysinternals to run remote commands.
This way you can just put your installation package on a share start then trigger the installation.
Here are some more ideas
http://docs.nsclient.org/tutorial/core/ ... ely-manage
You can also modify the ini from command line, e. h.
Code: Select all
nscp settings --path /settings/NRPE/server --key "allowed hosts" --set 127.0.0.1
Re: NSClient++ Installation in command line
Posted: Fri Nov 06, 2015 1:52 pm
by lmiltchev
bsivavani, did tmcdonald and mopp answer your question?
Re: NSClient++ Installation in command line
Posted: Mon Nov 09, 2015 1:11 am
by Box293
You should also check out Willem's "Nagios Automation Framework" for Nagios Reactor, it allows you to push out NSClient++.
http://outsideit.net/naf-windows-request-install/
Re: NSClient++ Installation in command line
Posted: Mon Nov 09, 2015 12:59 pm
by bsivavani
Thanks for the update.
Is this necessary to install Nagios reactor.
We are able to install using below batch file in the same system.
@echo off
msiexec /i C:\Users\sivavani.basetty\Desktop\Nagios\NSCP-0.4.3.143-x64.msi /passive /norestart ADDLOCAL="ALL" REMOVE="Documentation" CONF_CHECKS="TRUE" CONF_NSCLIENT="TRUE" ALLOWED_HOSTS="192.168.152.130" ADD_DEFAULTS="ALL" CONF_CAN_CHANGE="TRUE" /L*V "example.log"
xcopy "C:\Users\sivavani.basetty\Desktop\Nagios\nsclient.ini" "C:\Program Files\NSClient++" /q
net stop nscp
net start nscp
We are searching for to install agent from remote system. Please let us know how to proceed on this.
Re: NSClient++ Installation in command line
Posted: Mon Nov 09, 2015 1:04 pm
by tmcdonald
Remote install options have been listed in previous posts. Please check out the links and advice given by myself and others, and let us know if that will work for you. Unfortunately we can't help too much with the distribution/automation since that's not a problem specific to Nagios.
Re: NSClient++ Installation in command line
Posted: Mon Nov 09, 2015 6:09 pm
by Box293
bsivavani wrote:Thanks for the update.
Is this necessary to install Nagios reactor.
We are able to install using below batch file in the same system.
@echo off
msiexec /i C:\Users\sivavani.basetty\Desktop\Nagios\NSCP-0.4.3.143-x64.msi /passive /norestart ADDLOCAL="ALL" REMOVE="Documentation" CONF_CHECKS="TRUE" CONF_NSCLIENT="TRUE" ALLOWED_HOSTS="192.168.152.130" ADD_DEFAULTS="ALL" CONF_CAN_CHANGE="TRUE" /L*V "example.log"
xcopy "C:\Users\sivavani.basetty\Desktop\Nagios\nsclient.ini" "C:\Program Files\NSClient++" /q
net stop nscp
net start nscp
We are searching for to install agent from remote system. Please let us know how to proceed on this.
Thats similar to how I used to do it at my last environment.
You need to deploy a Reactor server to take advantage of Willem's method. While this may seem like more work, it does work well for other things such as updating NSClient++ configs as well.
Re: NSClient++ Installation in command line
Posted: Tue Nov 10, 2015 2:18 am
by WillemDH
And you can do many more stuff with Reactor and link that to Nagios quick actions (for example)
Re: NSClient++ Installation in command line
Posted: Tue Nov 10, 2015 10:24 am
by lmiltchev
Thanks WillemDH!