changing UID for nagios user

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
cjsGSB
Posts: 18
Joined: Mon Apr 08, 2019 11:34 am

changing UID for nagios user

Post by cjsGSB »

How does changing the UID of the nagios user on nagios log server prevent the elasticsearch database from starting?
We created a share on a brickstor unit to archive as part of the "Managing Snapshots and Maintenance" procedure. However the UID of 500 was taken up in the brickstor system. The next available UID was on the brickstor was 502. On the log server we where able to switch the UID of the nagios user to 502. This should allow us the mount the share on the brickstor with the same owner and group as the log server.
With the UID changed to 502 the elasticsearch service wont start on the log server, changing it back to 500 allows it to start again.
Is there something I am missing or do I need to rebuild the log server from scratch assigning the nagios user with a UID of 502 before the install?
Thanks
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: changing UID for nagios user

Post by cdienger »

The ownership of files will still point to the old UID. You can update these with:

Code: Select all

find /var/ -user 500 -exec chown -h 502 {} \;
find /usr/local/ -user 500 -exec chown -h 502 {} \;
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
cjsGSB
Posts: 18
Joined: Mon Apr 08, 2019 11:34 am

Re: changing UID for nagios user

Post by cjsGSB »

This worked - Thank you
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: changing UID for nagios user

Post by cdienger »

Glad to hear!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked