|
RE: Nrpe Error Message: msg#00396network.nagios.user
Hmm. Nothing glaring that I can see. Were there any messages sent to your terminal before you got your shell prompt back? Did you remember to put this in /etc/services: nrpe 5666/tcp # NRPE See if that helps. Try running it again without the --daemon switch. Don't bother with strace (for now). jc > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN@xxxxxxxxxxxx] > Sent: Thursday, January 09, 2003 11:00 AM > To: Carroll, Jim P [Contractor] > Subject: RE: [Nagios-users] Nrpe Error Message > > > Jim, > > I'm enclosing the entire file just to make sure nothing > relevant is left out. > > -----Original Message----- > From: Carroll, Jim P [Contractor] [mailto:jcarro10@xxxxxxxxxxxxxxxxxx] > Sent: Thursday, January 09, 2003 11:23 AM > To: Kaplan, Andrew H.; 'Jeremy Tinley' > Cc: 'Nagios-users@xxxxxxxxxxxxxxxxxxxxx' > Subject: RE: [Nagios-users] Nrpe Error Message > > > Since you're on Linux, try this: > > strace -o /tmp/nrpe.err /usr/local/nagios/nrpe -c > /usr/local/nagios/nrpe.cfg > > (Yes, skip the --daemon option, as we want this to run > without detaching > from the terminal.) > > From what you've said, I expect that nrpe will exit and > you'll be back at > the shell prompt. Next, take a look at /tmp/nrpe.err and see > if there are > any glaring errors. Start at the end of the file and work > backwards. Paste > anything relevant here, and include 3 lines before/after the > line(s) in > question. > > jc > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN@xxxxxxxxxxxx] > > Sent: Thursday, January 09, 2003 8:44 AM > > To: 'Jeremy Tinley' > > Cc: 'Nagios-users@xxxxxxxxxxxxxxxxxxxxx' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > I ran the ps auxww | grep npre command and nrpe did not appear. > > > > If nrpe is not starting up, what is going on and what do I need to > > do to get it up and running? I have followed the instructions to the > > letter and there should be no reason for this to be happening. > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley@xxxxxxxxxx] > > Sent: Thursday, January 09, 2003 9:41 AM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > When you ran: > > /usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg --daemon > > > > It should have returned you to a prompt. > > > > Check ps auxww | grep nrpe and it should be running. Then > > check netstat. The > > problem it appears is that nrpe isn't starting. > > > > Once you get nrpe started, it should show up in netstat, then > > you can try > > sending commands to it. > > > > -J > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN@xxxxxxxxxxxx] > > Sent: Thursday, January 09, 2003 7:49 AM > > To: 'Jeremy Tinley' > > Cc: 'Nagios-users@xxxxxxxxxxxxxxxxxxxxx' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > I ran netstat and I simply returned to the command prompt > > without any output > > appearing on the screen. > > > > I restarted xinetd via /etc/rc.d/init.d/xinetd restart and > > there were no > > messages from nrpe in the log. > > > > Finally, I ran the command line you suggested, but did not > > get any different > > reaction. > > > > What now? > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley@xxxxxxxxxx] > > Sent: Wednesday, January 08, 2003 3:25 PM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > Sorry, I was at lunch. :) > > > > Ok, check netstat again and see if it's bound. You should > > have something > > like > > this: > > > > $ netstat -a | grep 5666 > > tcp 0 0 *:5666 *:* > > LISTEN > > > > If you don't, then nrpe isn't running. > > > > Restart xinetd. If you get no messages from nrpe in the log > > and it still > > isn't running, you need to try running it manually. > > > > /usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg --daemon > > > > Let me know what that does. > > > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN@xxxxxxxxxxxx] > > Sent: Wednesday, January 08, 2003 1:59 PM > > To: 'Jeremy Tinley' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > Jeremy -- Sorry to bother you, but have you any ideas why I'm > > having this > > problem? Thanks. > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley@xxxxxxxxxx] > > Sent: Wednesday, January 08, 2003 2:16 PM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > What does /var/log/messages show now? > > > > And what's the ls -al output of /usr/local/nagios ? > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN@xxxxxxxxxxxx] > > Sent: Wednesday, January 08, 2003 1:15 PM > > To: 'Jeremy Tinley' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > Did what you asked...and still no luck.... > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley@xxxxxxxxxx] > > Sent: Wednesday, January 08, 2003 2:02 PM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > Ok, go into /etc/xinetd.d/nrpe and modify it thus (only the > > server_args > > changed), then make sure that /usr/local/nagios/nrpe is chmod 755 > > (-rwxr-xr-x): > > > > # default: on > > # description: NRPE > > service nrpe > > { > > disable = no > > flags = REUSE > > socket_type = stream > > wait = no > > user = root > > server = /usr/local/nagios/nrpe > > server_args = --inetd -c /usr/local/nagios/nrpe.cfg > > log_on_failure += USERID > > only_from = 132.183.12.125 > > } > > > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN@xxxxxxxxxxxx] > > Sent: Wednesday, January 08, 2003 12:59 PM > > To: 'Jeremy Tinley' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > The version of nrpe that I am using is version 1.6. > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley@xxxxxxxxxx] > > Sent: Wednesday, January 08, 2003 1:57 PM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > One more.. what version of NRPE are you using on oneofxeon > > > > > > # /usr/local/nagios/bin/nrpe --help > > > > NRPE - Nagios Remote Plugin Executor > > Copyright (c) 1999-2002 Ethan Galstad (nagios@xxxxxxxxxx) > > Version: 1.5 > > Last Modified: 06-03-2002 > > License: GPL > > > > > > Then give me an "ls -al /usr/local/nagios/nrpe" > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN@xxxxxxxxxxxx] > > Sent: Wednesday, January 08, 2003 12:52 PM > > To: 'Jeremy Tinley' > > Cc: 'Nagios-users@xxxxxxxxxxxxxxxxxxxxx' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > The file reads as follows: > > > > # default: on > > # description: NRPE > > service nrpe > > { > > disable = no > > flags = REUSE > > socket_type = stream > > wait = no > > user = root > > server = /usr/local/nagios/nrpe > > server_args = -i /usr/local/nagios/nrpe.cfg > > log_on_failure += USERID > > only_from = 132.183.12.125 > > } > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley@xxxxxxxxxx] > > Sent: Wednesday, January 08, 2003 1:47 PM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > Ok, what's the /etc/xinetd.d/nrpe file look like? > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN@xxxxxxxxxxxx] > > Sent: Wednesday, January 08, 2003 12:44 PM > > To: 'Jeremy Tinley' > > Cc: 'Nagios-users@xxxxxxxxxxxxxxxxxxxxx' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > I am running nrpe under xinetd. > > > > I did a netstat -a | grep 5666 and there was no output. I was > > returned to a > > shell prompt. > > > > Nrpe.cfg is located at /usr/local/nagios > > > > Anything else? > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley@xxxxxxxxxx] > > Sent: Wednesday, January 08, 2003 1:36 PM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > Ok, take one giant step backwards. > > > > How are you running nrpe? As a daemon or xinetd/inetd? > > > > Now do a netstat -a | grep 5666 > > > > What's the output? > > > > Now, where is nrpe.cfg? > > > > > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN@xxxxxxxxxxxx] > > Sent: Wednesday, January 08, 2003 12:34 PM > > To: 'Jeremy Tinley' > > Cc: 'Nagios-users@xxxxxxxxxxxxxxxxxxxxx' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > The messages log file had the following entries: > > > > Server /usr/local/nagios/nrpe is not executable [line=10] > > > > nrpe[26725]: Unable to open config file '//nrpe.cfg' for reading > > Config file '//nrpe.cfg' contained errors, bailing out... > > > > What gives? > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley@xxxxxxxxxx] > > Sent: Wednesday, January 08, 2003 1:07 PM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > check_disk? Or check)disk. Not sure if you just made a typo > > on the command > > back into the email. > > > > Check the log on oneofxeon, probably in /var/log/messages to > > see what's > > going > > on. That usually means that you don't have permission to > > connect (ala, > > /etc/hosts.allow if you run under (x)inetd or the nrpe.cfg > file if you > > don't. > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN@xxxxxxxxxxxx] > > Sent: Wednesday, January 08, 2003 11:55 AM > > To: 'Jeremy Tinley' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > I entered in the following: > > > > ./check_nrpe -H oneofxeon -p 5666 -c check)disk > > > > and got the following: > > > > CHECK_NRPE: Error receiving data from host. > > > > > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley@xxxxxxxxxx] > > Sent: Wednesday, January 08, 2003 12:49 PM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > Perhaps I gave you the wrong command.. lowercase c, instead > > of capital: > > > > $ ./check_nrpe -H db1 -p 5666 -c check_disk_var > > DISK OK - [4632496 kB (96%) free on /dev/sda8] > > > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN@xxxxxxxxxxxx] > > Sent: Wednesday, January 08, 2003 11:46 AM > > To: 'Jeremy Tinley' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > Here's what I entered: > > > > ./check_nrpe -H oneofxeon -p 5666 -C check_disk -w 80 -c 95 > > > > I got the same error message..... > > > > I also tried > > > > ./check_nrpe -H oneofxeon -p 5666 -C check_disk > > > > and got the same result.... > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley@xxxxxxxxxx] > > Sent: Wednesday, January 08, 2003 12:41 PM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > You have to specify -C check_disk > > > > It's the same command in the square brackets: > > command[check_users]=.... > > > > > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN@xxxxxxxxxxxx] > > Sent: Wednesday, January 08, 2003 11:37 AM > > To: 'Jeremy Tinley' > > Cc: 'Nagios-users@xxxxxxxxxxxxxxxxxxxxx' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > The command that I entered at the monitoring host was > > > > ./check_nrpe -H oneofxeon -p 5666 -C > > /usr/local/nagios/libexec/check_disk -w > > 80 -c 95 > > > > The result was INCORRECT COMMAND LINE ARGUMENTS SUPPLIED > > > > What gives? > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley@xxxxxxxxxx] > > Sent: Wednesday, January 08, 2003 11:49 AM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > Try running the check_nrpe command from the monitoring host. > > > > check_nrpe -H <host> -p <port> -C check_userrs > > > > see if that gets you any further. > > > > I noticed that -H and -p were added in the change from nrpe > 1.5 to 1.6 > > > > -J > > > > -----Original Message----- > > From: nagios-users-admin@xxxxxxxxxxxxxxxxxxxxx > > [mailto:nagios-users-admin@xxxxxxxxxxxxxxxxxxxxx] On Behalf > Of Kaplan, > > Andrew > > H. > > Sent: Wednesday, January 08, 2003 10:33 AM > > To: 'Carroll, Jim P [Contractor]' > > Cc: Nagios-users@xxxxxxxxxxxxxxxxxxxxx > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > Things got a little better since I sent out my e-mail. I am > getting a > > connection > > to > > to the remote client. Now I am getting an INCORRECT COMMAND > > LINE ARGUMENTS > > SUPPLIED > > error. > > > > When I run the check from the command line, it comes out fine. > > > > Here is the syntax of the nrpe.cfg file on the client: > > > > command[check_users]=/usr/local/nagios/libexec/check_users 50 80 > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > > 95 /dev/sda8 > > command[check_load]=/usr/local/nagios/libexec/check_load > > 15,10,5 30,25,20 > > command[check_procs]=/usr/local/nagios/libexec/check_procs 150 200 > > > > What is going on? > > > > -----Original Message----- > > From: Carroll, Jim P [Contractor] > [mailto:jcarro10@xxxxxxxxxxxxxxxxxx] > > Sent: Wednesday, January 08, 2003 11:05 AM > > To: Kaplan, Andrew H.; Nagios-users@xxxxxxxxxxxxxxxxxxxxx > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > And running check_nrpe from the command line...? Pass or fail...? > > > > jc > > > > > -----Original Message----- > > > From: Kaplan, Andrew H. [mailto:AHKAPLAN@xxxxxxxxxxxx] > > > Sent: Wednesday, January 08, 2003 9:00 AM > > > To: Nagios-users@xxxxxxxxxxxxxxxxxxxxx > > > Subject: [Nagios-users] Nrpe Error Message > > > > > > > > > I installed the latest nrpe client on a remote machine, and > > > also copied the > > > necessary > > > plugins from the nagios server to the client. The nrpe.cfg > > > file was modified > > > to suit the > > > remote machine's configuration. When I tried to monitor the > > > various services > > > on the client > > > I was confronted with the following error message: > > > > > > Return code of 127 is out of bounds - plugin may be missing. > > > > > > I am running Nagios 1.0 with the latest nrpe client as well > > > as the latest > > > nagios plug-ins. > > > > > > There were no apparent problems with compiling and > > installing the nrpe > > > client on the remote machine. > > > > > > The /etc/xinetd.d services were restarted after the nrpe > install was > > > complete. > > > > > > The nagios server is running on a Red Hat 8.0 box and the > > > remote client is > > > Red Hat 7.3 > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.NET email is sponsored by: > > > SourceForge Enterprise Edition + IBM + LinuxWorld = > Something 2 See! > > > http://www.vasoftware.com > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users@xxxxxxxxxxxxxxxxxxxxx > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users@xxxxxxxxxxxxxxxxxxxxx > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users@xxxxxxxxxxxxxxxxxxxxx > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Nrpe Error Message: 00396, Carroll, Jim P [Contractor] |
|---|---|
| Next by Date: | Slashdot Article: 00396, Gerald |
| Previous by Thread: | RE: Nrpe Error Messagei: 00396, Carroll, Jim P [Contractor] |
| Next by Thread: | RE: Host Dependencies: 00396, Carroll, Jim P [Contractor] |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |