Installing NRPE with LDAP nagios user

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sarfarosh
Posts: 211
Joined: Fri Oct 05, 2012 3:56 am

Installing NRPE with LDAP nagios user

Post by sarfarosh »

Hello
we need to install NRPE on our server's with nagios user on LDAP server, how can we do it ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Installing NRPE with LDAP nagios user

Post by scottwilkerson »

What type of servers?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
sarfarosh
Posts: 211
Joined: Fri Oct 05, 2012 3:56 am

Re: Installing NRPE with LDAP nagios user

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Installing NRPE with LDAP nagios user

Post 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"
 
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked