Go Back   The UNIX and Linux Forums > Special Forums > Infrastructure Monitoring


Infrastructure Monitoring Forum for Nagios, Zabbix and other network monitoring and management tools.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-28-2012
Registered User
 
Join Date: Mar 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
npre error.....

Any ideas why this doesn't work?
/etc/services has the port/npre line, but there's still an error in /var/log/messages.

Thoughts?



Code:
[root@dggs-earth etc]# cat xinetd.d/nrpe 
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
           flags           = REUSE
        socket_type     = stream    
    port        = 5666    
           wait            = no
        user            = nagios
    group        = nagios
           server          = /usr/local/nagios/bin/nrpe
        server_args     = -c /usr/local/nagios/etc/nrpe.cfg --inetd
           log_on_failure  += USERID
        disable         = no
    only_from       = 204.90.103.9
}
[root@dggs-earth etc]# ls -la /usr/local/nagios/bin/nrpe 
-rwxrwxr-x. 1 nagios nagios 131764 Mar 28 13:25 /usr/local/nagios/bin/nrpe
[root@dggs-earth etc]# ls -la /usr/local/nagios/etc/nrpe.cfg 
-rw-r--r--. 1 nagios nagios 7336 Mar 28 13:25 /usr/local/nagios/etc/nrpe.cfg
[root@dggs-earth etc]# egrep nrpe services 
nrpe          5666/tcp                        # NRPE
[root@dggs-earth etc]# egrep nrpe /var/log/messages 
Mar 28 13:26:29 dggs-earth xinetd[8918]: service/protocol combination not in /etc/services: nrpe/tcp
Mar 28 13:36:26 dggs-earth xinetd[9425]: service/protocol combination not in /etc/services: nrpe/tcp
Mar 28 13:38:48 dggs-earth xinetd[9448]: service/protocol combination not in /etc/services: nrpe/tcp
Mar 28 13:48:49 dggs-earth xinetd[9492]: service/protocol combination not in /etc/services: nrpe/tcp
Mar 28 13:50:57 dggs-earth xinetd[9534]: service/protocol combination not in /etc/services: nrpe/tcp
[root@dggs-earth etc]# uname -a
Linux dggs-earth 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@dggs-earth etc]# telnet localhost 5666
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
[root@dggs-earth etc]# netstat -at |egrep nrpe
[root@dggs-earth etc]# which xinetd
/usr/sbin/xinetd
[root@dggs-earth etc]# ls -la /usr/sbin/xinetd
-rwxr-xr-x. 1 root root 174456 Dec  7 12:09 /usr/sbin/xinetd
[root@dggs-earth etc]# ps -ef |egrep xinetd
root      9534     1  0 13:50 ?        00:00:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
root      9982 14581  0 16:18 pts/3    00:00:00 egrep xinetd
[root@dggs-earth etc]#

Sponsored Links
    #2  
Old 06-18-2012
Registered User
 
Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Do you have iptables or a firewall running on the server?
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
> 5 ")syntax error: operand expected (error token is " error metal005 UNIX for Dummies Questions & Answers 4 05-09-2011 10:30 AM
Error: msgcnt 1 vxfs: mesg 016: vx_ilisterr - / file system error reading AndryMB SCO 1 07-13-2010 06:49 AM
fssnap error :snapshot error: File system could not be write locked aggadtech08 Solaris 2 09-15-2009 10:12 AM
awk Shell Script error : "Syntax Error : `Split' unexpected Herry UNIX for Dummies Questions & Answers 2 03-17-2008 11:16 AM
Error: Internal system error: Unable to initialize standard output file firkus UNIX for Dummies Questions & Answers 2 10-25-2005 03:23 PM



All times are GMT -4. The time now is 08:58 PM.