Page 1 of 1
Installing NRPE with LDAP nagios user
Posted: Mon Nov 11, 2013 10:13 am
by sarfarosh
Hello
we need to install NRPE on our server's with nagios user on LDAP server, how can we do it ?
Re: Installing NRPE with LDAP nagios user
Posted: Mon Nov 11, 2013 12:31 pm
by scottwilkerson
What type of servers?
Re: Installing NRPE with LDAP nagios user
Posted: Mon Nov 11, 2013 1:23 pm
by sarfarosh
Hello Scott,
Client machine to be monitored is Solaris 10, where we are not authorized to create Local user, so we have to use Ldap user.
Re: Installing NRPE with LDAP nagios user
Posted: Tue Nov 12, 2013 10:35 am
by abrist
This is possible, but the users/groups need to be pre-configured through ldap. The nrpe agent assumes a "nagios" user who is member of the groups "nagcmd" and "nagios". If those account/groups preexist from ldap, then you could probably comment out the user/group creation lines from the 2-usersgroups sub script of the nrpe install:
Code: Select all
#eval "$useraddbin" -n "$nagiosuser"
#eval "$groupaddbin" "$nagiosgroup"
#eval "$useraddbin" "$nagiosuser"
#eval "$groupaddbin" "$nagioscmdgroup"
#eval "$usermodbin" -a -G "$nagioscmdgroup" "$nagiosuser"
#eval "$usermodbin" -a -G "$nagiosgroup" "$nagiosuser"