Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I installed nrpe on new servers. Nagios is already running and checking other server (I haven't installed).

I've got several error lines in my syslog file :

Oct 31 15:17:01 myservername nrpe[41848]: Host nagios_ip is not allowed to talk to us!

My nrpe.cfg file includes the following line :

allowed_hosts=nagios_ip

What am I doing wrong ?

(with nagios_ip the actual IP for my nagios server)

share|improve this question
    
Have you tried restarting the nrpe service on the target server? –  norrland Oct 31 '13 at 14:45
    
Yes I did but it had no effect –  Jean-Philippe Caruana Oct 31 '13 at 14:47
    
Which OS and Nagios/NRPE version is installed? –  norrland Oct 31 '13 at 14:52
    
Also. Check nrpe.conf for whitespaces after allowed_hosts=<ip>. In vim :set list –  norrland Oct 31 '13 at 14:54

1 Answer 1

up vote 1 down vote accepted

I found the solution, but the error message is totally misleading. The user nagios has to be in the suders...

/etc/sudoers:

nagios  ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/
share|improve this answer
    
this is not correct at all, actually –  Keith Oct 31 '13 at 18:02
2  
well, this solved the problem at once. Could you be more specific ? –  Jean-Philippe Caruana Nov 4 '13 at 9:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.