Page 1 of 1
nxlog mass installation using software package
Posted: Thu Dec 22, 2016 1:13 pm
by sgiworks
Hello Folks,
Has anyone installed nxlog msi using software installation through GPO? I have tested installation happens, but then after installation need help in updating the nxlog.conf file and the starting the service.
Regards,
Swapnil
Re: nxlog mass installation using software package
Posted: Thu Dec 22, 2016 1:49 pm
by rkennedy
I haven't done any testing with it, but you should be able to push a GPO to modify the file C:\Program Files (x86)\nxlog\conf\nxlog.conf which would handle that part. I don't believe there are any dynamic variables which makes me think it should be a rather simple process.
Re: nxlog mass installation using software package
Posted: Wed Dec 28, 2016 9:58 am
by Envera IT
We use PDQ to push it out. Basically we install the msi first, and then a second job replaces the default config file with a new one. It was really straight forward to get it working correctly, only thing I had to watch out for was 32bit vs 64bit machines as the nxlog config file specifies the root directory in Program Files or Program Files (x86).
Re: nxlog mass installation using software package
Posted: Wed Dec 28, 2016 10:14 am
by rkennedy
Thanks for the contribution @Ehamby!
Re: nxlog mass installation using software package
Posted: Mon Feb 13, 2017 9:56 am
by sgiworks
Hi,
Currently we are using GPO with start-up script as mentioned below, however we were looking at more controlled install process.
*****************************************************************************************
@echo off
set Server=\\domain\NETLOGON\NagiosLogServer\
cls
dir "%Server%" /AD /ON /B
REGEDIT /s %Server%\Disable_Open-File_Security_Warning.reg
if exist "%ProgramFiles(x86)%\nxlog\nxlog.exe" goto AgentFound
msiexec /i "%Server%\nxlog-ce-latest.msi" /quiet
xcopy /y "%Server%\nxlog.conf" "%ProgramFiles(x86)%\nxlog\conf\"
net start nxlog
:AgentFound
exit
*****************************************************************************************
This script does it work, installation from .msi, the copy the conf file to respective folder and then finally start the nxlog service.
Regards,
Swapnil
Re: nxlog mass installation using software package
Posted: Mon Feb 13, 2017 10:51 am
by rkennedy
For kind of controlled installation process are you looking for? I believe this is more along the lines of using deployment software instead of GPO's to push out applications.
The script you posted is nice, and right to the point. Nice to see that the nxlog installation supports a silent mode by default! Based on
https://nxlog.co/question/2269/communit ... nt-install - it doesn't appear that installing with a configuration file is possible, so going the copy route is correct.
Re: nxlog mass installation using software package
Posted: Wed Mar 01, 2017 1:54 pm
by tmcdonald
Just checking in since we have not heard from you in a while. Did
@rkennedy's post clear things up?