Page 2 of 3

Re: No logs from Windows server - permits in place

Posted: Tue Feb 26, 2019 3:03 pm
by scottwilkerson
I do not see any way in NXLog to do this

Re: No logs from Windows server - permits in place

Posted: Tue Feb 26, 2019 4:06 pm
by rferebee
Ok, so this is the command that we're attempting to run:

msiexec.exe /X {B290C1E3-3747-48E2-9CD9-0AF172C11D31} /qn

The issue we're seeing is that the msiexec process is hanging. It works just fine uninstalling it manually, but we'd like to get around having to click the "Yes" prompt.

MSI is pretty standard, there should be a way to uninstall this product via command line.

Re: No logs from Windows server - permits in place

Posted: Tue Feb 26, 2019 4:19 pm
by scottwilkerson
Hmm, I did find this someone put together
https://www.svanbruggen.nl/powershell-r ... interface/

Re: No logs from Windows server - permits in place

Posted: Mon Mar 04, 2019 11:16 am
by rferebee
I think we've found a way to resolve this issue.

We are going to perform a mass re-deployment of the nxlog client using our software deployment suite and a batch script. Through testing we've determined that the latest version of the nxlog client resolves the issue with the "corrupt" Windows logs.

This thread can be locked. Thank you.

Re: No logs from Windows server - permits in place

Posted: Mon Mar 04, 2019 11:21 am
by scottwilkerson
rferebee wrote:I think we've found a way to resolve this issue.

We are going to perform a mass re-deployment of the nxlog client using our software deployment suite and a batch script. Through testing we've determined that the latest version of the nxlog client resolves the issue with the "corrupt" Windows logs.

This thread can be locked. Thank you.
Excellent,

Locking thread

Re: No logs from Windows server - permits in place

Posted: Mon Mar 04, 2019 4:45 pm
by scottwilkerson
unlocked per user request

Re: No logs from Windows server - permits in place

Posted: Mon Mar 04, 2019 4:52 pm
by rferebee
We have some new details that Nagios may be unaware of. It might help others.

Apparently, the version of nxlog-ce (2.9.1347) we were using only installs under the user profile of the person who installs it. So, if you attempt to script an uninstall using something like Symantec Altiris. You have to run the uninstall script as the account the client was installed with or it will fail. We were trying to use the Windows System account and were having difficulty figuring out why it kept failing.

The other work around is to write into your script to first install the client and then uninstall it using whatever account you want.

I had mentioned previously in the thread that I could not see the client in Add/Remove programs on some servers. Well, that's because it was installed by someone else. I don't know if this issue is fixed in nxlog-ce version 2.10.2150, but if it's not you may want to have something fix your MSI to install for all users on the next update.

Thank you.

Re: No logs from Windows server - permits in place

Posted: Mon Mar 04, 2019 4:56 pm
by scottwilkerson
Thanks for sharing this!

Re: No logs from Windows server - permits in place

Posted: Tue Mar 05, 2019 4:19 pm
by rferebee
Ok folks. I need some assistance here.

We've tried ad nauseam to get the nxlog client (version 2.9.1347) to uninstall cleanly via DOS scripting. Even the PS1 script you provided is leaving remnants of the application.

According to the PS1 script, we need to install the client for all users prior to being able to uninstall it (if we're using an account different from what the client was installed with). The issue we're seeing is that after the re-install and uninstall the original account that was used to install the client now shows both the 2.9 and 2.10 client in Add/Remove Programs.

There must be a way to completely uninstall this application from a machine via the CLI. We can't be the only customer with more than a few dozen servers running the nxlog client and if we're not then your other customers can't be uninstalling and reinstalling the client one by one on every server they have. Based on what we've seen so far, it seems to be the only way.

If the forums can't assist me, is there perhaps a Dev person I can talk to? Or, if what I'm asking for isn't possible can I submit a feature request for an nxlog client quiet uninstall utility?

Thank you!

Re: No logs from Windows server - permits in place

Posted: Tue Mar 05, 2019 4:26 pm
by scottwilkerson
rferebee wrote:If the forums can't assist me, is there perhaps a Dev person I can talk to? Or, if what I'm asking for isn't possible can I submit a feature request for an nxlog client quiet uninstall utility?
We are not the authors of NXlog, we just provide a link to the community version in the software as a mechanism to send Windows logs to Nagios Log Server. So we would not be able to build in the feature.

The software is originally from here
https://nxlog.co/products/nxlog-community-edition