Apply configuration doesn't finish
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: Apply configuration doesn't finish
Hi,
No I didn't modify the uid.
Could you please explain me what could be the link between the uid and my performance problem (please remind that that problem is corrected after a server restart, bu occurs after a moment).
Frederic
No I didn't modify the uid.
Could you please explain me what could be the link between the uid and my performance problem (please remind that that problem is corrected after a server restart, bu occurs after a moment).
Frederic
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Apply configuration doesn't finish
As far as I am concerned, applying configuration, is not purely a performance issue. The reason I ask about the UID, is that nagios is created as uid 500, your file has a uid of 500, but it is not listed as the user nagios, also I noted the use of winbindd which leads me to believe you might be integrating with a M$ AD system. This leads me to believe based on past experiences, that the uid for nagios has been changed, or possibly the user removed entirely. In most cases, this is due to ldap\AD integration and the uid being vastly changed. This can and will cause file permission issues, slowness on the web interface and other such issues. Let's 100% verify this is not the case, and if it is, work to resolve it so that apache and nagios have the proper access to write your configuration files.
Code: Select all
grep -i 'nag' /etc/passwd
grep -i 'nag' /etc/groupNagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: Apply configuration doesn't finish
For information :
LAst server boot : 2013-10-28 11:11
No performance problem at that time.
[root@nagiosxi ~]# grep -i 'nag' /etc/passwd
nagios
20739:500::/home/nagios:/bin/bash
[root@nagiosxi ~]# grep -i 'nag' /etc/passwd
nagios
20739:500::/home/nagios:/bin/bash
LAst server boot : 2013-10-28 11:11
No performance problem at that time.
[root@nagiosxi ~]# grep -i 'nag' /etc/passwd
nagios
[root@nagiosxi ~]# grep -i 'nag' /etc/passwd
nagios
Re: Apply configuration doesn't finish
It seems like the nagios UID has been changed to 20739. You might want to change it back to 500 if this is not in use.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: Apply configuration doesn't finish
Hi,
Please give me the commands to do that.
Frederic
Please give me the commands to do that.
Frederic
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Apply configuration doesn't finish
Well first you need to validate how that was altered. Is this due to the winbindd setup, possibly for AD integration? Do you have a puppet or other central config management software that maintains /etc/passwd or /etc/shadow? We did run into this issue previously with this thread. Just as a fair warning, choosing to ignore this will only lead to future issues as the nagios user does not have proper ownership of files, in fact no user actually owns them since the system does not have a user with id of 500.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: Apply configuration doesn't finish
Do you have a puppet or other central config management software that maintains /etc/passwd or /etc/shadow?
=> No
=> No
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Apply configuration doesn't finish
Can you answer this portion as well?
Well first you need to validate how that was altered. Is this due to the winbindd setup, possibly for AD integration?
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: Apply configuration doesn't finish
I never touched winbind configuration.
Frederic
Frederic
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Apply configuration doesn't finish
OK, this still doesn't answer the question of how nagios got the uid of 20k-something. What is winbindd doing for you? Again before we can give you an accurate way to resolve the file permission issues, we need to know how and why this would have been altered, and if it may at some point change again. We want to provide you a long term solution that will work with your environment, opposed to a quick patch to make apply config happy while there are still other issues.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.