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
nxlog mass installation using software package
-
- Posts: 197
- Joined: Mon Mar 21, 2016 11:38 am
-
- Posts: 6579
- Joined: Mon Oct 05, 2015 11:45 am
Re: nxlog mass installation using software package
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.
Former Nagios Employee
-
- Posts: 159
- Joined: Wed Jun 19, 2013 10:21 am
Re: nxlog mass installation using software package
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).
I like graphs...
-
- Posts: 6579
- Joined: Mon Oct 05, 2015 11:45 am
Re: nxlog mass installation using software package
Thanks for the contribution @Ehamby!
Former Nagios Employee
-
- Posts: 197
- Joined: Mon Mar 21, 2016 11:38 am
Re: nxlog mass installation using software package
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
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
-
- Posts: 6579
- Joined: Mon Oct 05, 2015 11:45 am
Re: nxlog mass installation using software package
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.
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.
Former Nagios Employee
-
- Posts: 9117
- Joined: Mon Sep 23, 2013 8:40 am
Re: nxlog mass installation using software package
Just checking in since we have not heard from you in a while. Did @rkennedy's post clear things up?
Former Nagios employee