Search found 3 matches

by teeljb
Wed Aug 14, 2013 6:57 am
Forum: Nagios XI
Topic: NRPE Agent Install failure when NIS is authenticator
Replies: 4
Views: 521

Re: NRPE Agent Install failure when NIS is authenticator

I got it working reasonably well. Here are the script modifications I made to /tmp/linux-nrpe-agent/2-usersgroups: # Make sure user exists if ! grep -q "^$nagiosuser:" /etc/passwd; then if ! (ypcat passwd | grep -q "^$nagiosuser:"); then # <----- add this line echo "ERROR: U...
by teeljb
Tue Aug 13, 2013 8:36 pm
Forum: Nagios XI
Topic: NRPE Agent Install failure when NIS is authenticator
Replies: 4
Views: 521

Re: NRPE Agent Install failure when NIS is authenticator

Where the script checked for the absence of the user: if ! grep -q "^$nagiosuser:" /etc/passwd ... I added an interior check for NIS user: if ! (ypcat passwd | grep -q "^$nagiosuser:") I did the same for checking the groups. I did not verify the two prerequisite conditions (1-NIS...
by teeljb
Tue Aug 13, 2013 7:55 am
Forum: Nagios XI
Topic: NRPE Agent Install failure when NIS is authenticator
Replies: 4
Views: 521

NRPE Agent Install failure when NIS is authenticator

While trying to install the NRPE agent for Linux (RHEL 5.8), it failed after the installation sub-script '2-usersgroups'. The script is written for local userids/groups only, and doesn't not work when NIS is the authentication mechanism for the server. NIS normally only stores the userids in the /et...