Re: [Nagios-users] NRPE Problem
You can also try typing your arguments at the far end in the nrpe command file. I'm not the biggest fan of passing arguments via nrpe. I've found it simpler to deploy the same nrpe command file to a cluster and have nagios just execute the check_nrpe_1arg command. -lee On Thu, Feb 12, 2009 at 3:39 AM, LEVEAU Stanislas wrote: > hi > > in your define command, i think it's > > define command{ > command_name check_nrpe_manual_disk > command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c > check_manual_disk -a $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ > } > > and not -a $ARG1$ $ARG2$ $ARG3$ > > maybe > > regards > Stan > > Thomas Guyot-Sionnest a écrit : > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 11/02/09 02:43 PM, Vasiliy Boulytchev wrote: > > > Gents, > > I am trying to have Nagios specify which partition to check via > nrpe... and am getting the following error: > > DISK CRITICAL - 10 is not accessible: No such file or directory > > Here is my configuration: > > > ### > > define command{ > command_name check_nrpe_manual_disk > command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c > check_manual_disk -a $ARG1$ $ARG2$ $ARG3$ > } > > > > command[check_manual_disk]=/usr/local/nagios-plugins/libexec/check_disk > -w $ARG1$ -c $ARG2$ -p $ARG3$ > > > > > define service{ > use local-service > host_name localhost > service_description Manual Disk /dev/sda1 > check_command check_nrpe_manual_disk!20!10!/ > } > > > It looks like an extra argument is passed somehow, so check_disk ends up > checking the the path "10" (your warning threshold)", although your > config looks ok. Are you sure NRPE and Nagios have been started with the > most recent config, and there's not more than one instance of Nagios and > NRPE running? > > Have you tried running the check trough the command link (check_nrpe)? > > - -- > Thomas > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.6 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFJk7aK6dZ+Kt5BchYRArhiAJ0dYvtmC13zVi0WGHFaWXeB/snukACgr8By > JhACq1XdPD5D2Ay+7IJdzgI= > =Yglg > -END PGP SIGNATURE- > > -- > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code > to > build responsive, highly engaging applications that combine the power of > local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > -- > LEVEAU Stanislas > Rectorat de Caen > SIAC > 168, rue Caponière > B.P. 6184 > 14061 CAEN Cedex > > > Service Informatique de l'académie de Caen > Département Systèmes & Réseaux > > > Tel : 02.31.30.17.86 > > > > > -- > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code > to > build responsive, highly engaging applications that combine the power of > local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE Problem
hi in your define command, i think it's define command{ command_name check_nrpe_manual_disk command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_manual_disk -a $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ } and not -a $ARG1$ $ARG2$ $ARG3$ maybe regards Stan Thomas Guyot-Sionnest a écrit : -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/02/09 02:43 PM, Vasiliy Boulytchev wrote: Gents, I am trying to have Nagios specify which partition to check via nrpe... and am getting the following error: DISK CRITICAL - 10 is not accessible: No such file or directory Here is my configuration: ### define command{ command_name check_nrpe_manual_disk command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_manual_disk -a $ARG1$ $ARG2$ $ARG3$ } command[check_manual_disk]=/usr/local/nagios-plugins/libexec/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ define service{ use local-service host_name localhost service_description Manual Disk /dev/sda1 check_command check_nrpe_manual_disk!20!10!/ } It looks like an extra argument is passed somehow, so check_disk ends up checking the the path "10" (your warning threshold)", although your config looks ok. Are you sure NRPE and Nagios have been started with the most recent config, and there's not more than one instance of Nagios and NRPE running? Have you tried running the check trough the command link (check_nrpe)? - -- Thomas -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJk7aK6dZ+Kt5BchYRArhiAJ0dYvtmC13zVi0WGHFaWXeB/snukACgr8By JhACq1XdPD5D2Ay+7IJdzgI= =Yglg -END PGP SIGNATURE- -- Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- *LEVEAU Stanislas** *Rectorat de Caen SIAC 168, rue Caponière B.P. 6184 14061 CAEN Cedex / Service Informatique de l'académie de Caen Département Systèmes & Réseaux/ Tel : 02.31.30.17.86 -- Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE Problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/02/09 02:43 PM, Vasiliy Boulytchev wrote: > Gents, > > I am trying to have Nagios specify which partition to check via > nrpe... and am getting the following error: > > DISK CRITICAL - 10 is not accessible: No such file or directory > > Here is my configuration: > > > ### > > define command{ > command_name check_nrpe_manual_disk > command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c > check_manual_disk -a $ARG1$ $ARG2$ $ARG3$ > } > > > > command[check_manual_disk]=/usr/local/nagios-plugins/libexec/check_disk > -w $ARG1$ -c $ARG2$ -p $ARG3$ > > > > > define service{ > use local-service > host_name localhost > service_description Manual Disk /dev/sda1 > check_command check_nrpe_manual_disk!20!10!/ > } It looks like an extra argument is passed somehow, so check_disk ends up checking the the path "10" (your warning threshold)", although your config looks ok. Are you sure NRPE and Nagios have been started with the most recent config, and there's not more than one instance of Nagios and NRPE running? Have you tried running the check trough the command link (check_nrpe)? - -- Thomas -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJk7aK6dZ+Kt5BchYRArhiAJ0dYvtmC13zVi0WGHFaWXeB/snukACgr8By JhACq1XdPD5D2Ay+7IJdzgI= =Yglg -END PGP SIGNATURE- -- Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] NRPE Problem
Gents, I am trying to have Nagios specify which partition to check via nrpe... and am getting the following error: DISK CRITICAL - 10 is not accessible: No such file or directory Here is my configuration: ### define command{ command_namecheck_nrpe_manual_disk command_line$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_manual_disk -a $ARG1$ $ARG2$ $ARG3$ } command[check_manual_disk]=/usr/local/nagios-plugins/libexec/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ define service{ use local-service host_name localhost service_description Manual Disk /dev/sda1 check_command check_nrpe_manual_disk!20!10!/ } -- Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nrpe problem
Thanks its working for me using -n (with out ssl option) ie, check_nrpe -H -c -n _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, October 12, 2007 7:13 PM To: [EMAIL PROTECTED]; nagios-users@lists.sourceforge.net Subject: RE: [Nagios-users] nrpe problem Sukesh, 1. Can you execute this command and also check if you have proper version of nrpe running on both client and server. Without SSL $./check_nrpe -H x -n NRPE v2.9 With SSL $./check_nrpe -H x NRPE v2.9 2. Can you can run the nrpe command locally with check_nrpe ./check_nrpe -H localhost -c command 3. Can you see if the plugin are located as configured in the nrpe.cfg? 4. Can you verify if nagios user has execute permission to run plugins? Regards, Narendan Neelamegam _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, October 12, 2007 3:59 PM To: [EMAIL PROTECTED]; nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] nrpe problem Hi _ From: Sukesh /IT/BLR/JIG/IN [mailto:[EMAIL PROTECTED] Sent: 12 October 2007 04:17 To: Welsh,T,Tom,DLS C Subject: RE: [Nagios-users] nrpe problem This is my remote host log messages Oct 11 07:00:13 ngapps-prd xinetd[619]: START: nrpe pid=1767 from=192.168.1.84 Oct 11 07:00:15 ngapps-prd nrpe[1767]: Could not read request from client, bailing out... Oct 11 07:00:15 ngapps-prd xinetd[619]: EXIT: nrpe status=0 pid=1767 duration=2(sec) _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 11, 2007 6:07 PM To: [EMAIL PROTECTED]; nagios-users@lists.sourceforge.net Subject: RE: [Nagios-users] nrpe problem From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sukesh /IT/BLR/JIG/IN Sent: 11 October 2007 10:48 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] nrpe problem Hi Iam running nagios-3.0a4 and nrpe V2.8.1.iam not getting the result while running ./check_nrpe -H . alreday no firewall is running behind those servers .tried to put '-t' option also but didn't work.Still iam able to telnet 5666 with out any problem/so please help him for this.(iam able to access one server and client using nrpe daemon other could not)/ Thanks, Sukesh . Hi Sukesh, >From reading your email i take it you can sucessfully connect to the remote NRPE host via telnet. [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> :~> telnet host1.somedomain.com 5666 Trying xxx.xxx.xxx.199... Connected to host1.somedomain.com. Escape character is '^]'. If this is correct then NRPE is accepting connections. You said in the previous mail that NRPE is working correctly on one machine but not on another. This sounds like you have some configuration differences between the two boxes. We really need to have more details to help you with this problem. What OS is running on the two remote boxes? Is it the same OS on both boxes. Can you send snippets off your configuration THAT RELATE TO nrpe? NRPE.CFG. SERVICES.CFG CHECKCOMMAND.CFG etc Have you carried out the following Turn on debugging on the remote host running nrpe and see what comes out in the logs? To do this edit your nrpe.cfg file and turn debugging on debugging=1 An example off NRPE debugging turned on Oct 11 13:30:01 host1 nrpe[3950]: Added command[check_dns1]=/usr/local/nagios/libexec/check_dns -H www.teeks.org -w 1 -c 2 Oct 11 13:30:01 host1 nrpe[3950]: Added command[check_swap]=/usr/local/nagios/libexec/check_swap -w 30% -c 20% Oct 11 13:30:01 host nrpe[3950]: Added command[check_ntp]=/usr/local/nagios/libexec/check_ntp -H xxx.xxx.xxx-t 15 Oct 11 13:30:01 host nrpe[3950]: INFO: SSL/TLS initialized. All network traffic will be encrypted. Oct 11 13:30:01 host nrpe[3950]: Handling the connection... Hi Sukesh, Please dont respond to me directly. Please respond via the mailing list. Also please ost your reply comments at the bottom off teh email as it makes it easier to read it in chronological order. Well enough off that spagetti, back to your problem. Your log extract -- Oct 11 07:00:13 ngapps-prd xinetd[619]: START: nrpe pid=1767 from=192.168.1.84 Oct 11 07:00:15 ngapps-prd nrpe[1767]: Could not read request from client, bailing out... Oct 11 07:00:15 ngapps-prd xinetd[619]: EXIT: nrpe status=0 pid=1767 duration=2(sec) -- This really does not tell me anything. I take it you have already goggled for "nrpe + Could not read request from client, bailing out..." and found the Nagios FAQ about this. It doset look like its your problem but I dont know as you have provided only one piece off te information i asked for. So here we go again. 1. >>"./check_nrpe -H . already no firewall is running behind those servers .tried to put '-t' option also but didn't >>work." Please past
Re: [Nagios-users] nrpe problem
Sukesh, 1. Can you execute this command and also check if you have proper version of nrpe running on both client and server. Without SSL $./check_nrpe -H x -n NRPE v2.9 With SSL $./check_nrpe -H x NRPE v2.9 2. Can you can run the nrpe command locally with check_nrpe ./check_nrpe -H localhost -c command 3. Can you see if the plugin are located as configured in the nrpe.cfg? 4. Can you verify if nagios user has execute permission to run plugins? Regards, Narendan Neelamegam From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, October 12, 2007 3:59 PM To: [EMAIL PROTECTED]; nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] nrpe problem Hi From: Sukesh /IT/BLR/JIG/IN [mailto:[EMAIL PROTECTED] Sent: 12 October 2007 04:17 To: Welsh,T,Tom,DLS C Subject: RE: [Nagios-users] nrpe problem This is my remote host log messages Oct 11 07:00:13 ngapps-prd xinetd[619]: START: nrpe pid=1767 from=192.168.1.84 Oct 11 07:00:15 ngapps-prd nrpe[1767]: Could not read request from client, bailing out... Oct 11 07:00:15 ngapps-prd xinetd[619]: EXIT: nrpe status=0 pid=1767 duration=2(sec) From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 11, 2007 6:07 PM To: [EMAIL PROTECTED]; nagios-users@lists.sourceforge.net Subject: RE: [Nagios-users] nrpe problem From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sukesh /IT/BLR/JIG/IN Sent: 11 October 2007 10:48 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] nrpe problem Hi Iam running nagios-3.0a4 and nrpe V2.8.1.iam not getting the result while running ./check_nrpe -H . alreday no firewall is running behind those servers .tried to put '-t' option also but didn't work.Still iam able to telnet 5666 with out any problem/so please help him for this.(iam able to access one server and client using nrpe daemon other could not)/ Thanks, Sukesh . Hi Sukesh, >From reading your email i take it you can sucessfully connect to the remote NRPE host via telnet. [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> :~> telnet host1.somedomain.com 5666 Trying xxx.xxx.xxx.199... Connected to host1.somedomain.com. Escape character is '^]'. If this is correct then NRPE is accepting connections. You said in the previous mail that NRPE is working correctly on one machine but not on another. This sounds like you have some configuration differences between the two boxes. We really need to have more details to help you with this problem. What OS is running on the two remote boxes? Is it the same OS on both boxes. Can you send snippets off your configuration THAT RELATE TO nrpe? NRPE.CFG. SERVICES.CFG CHECKCOMMAND.CFG etc Have you carried out the following Turn on debugging on the remote host running nrpe and see what comes out in the logs? To do this edit your nrpe.cfg file and turn debugging on debugging=1 An example off NRPE debugging turned on Oct 11 13:30:01 host1 nrpe[3950]: Added command[check_dns1]=/usr/local/nagios/libexec/check_dns -H www.teeks.org -w 1 -c 2 Oct 11 13:30:01 host1 nrpe[3950]: Added command[check_swap]=/usr/local/nagios/libexec/check_swap -w 30% -c 20% Oct 11 13:30:01 host nrpe[3950]: Added command[check_ntp]=/usr/local/nagios/libexec/check_ntp -H xxx.xxx.xxx-t 15 Oct 11 13:30:01 host nrpe[3950]: INFO: SSL/TLS initialized. All network traffic will be encrypted. Oct 11 13:30:01 host nrpe[3950]: Handling the connection... Hi Sukesh, Please dont respond to me directly. Please respond via the mailing list. Also please ost your reply comments at the bottom off teh email as it makes it easier to read it in chronological order. Well enough off that spagetti, back to your problem. Your log extract -- Oct 11 07:00:13 ngapps-prd xinetd[619]: START: nrpe pid=1767 from=192.168.1.84 Oct 11 07:00:15 ngapps-prd nrpe[1767]: Could not read request from client, bailing out... Oct 11 07:00:15 ngapps-prd xinetd[619]: EXIT: nrpe status=0 pid=1767 duration=2(sec) -- This really does not tell me anything. I take it you have already goggled for "nrpe + Could not read request from client, bailing out..." and found the Nagios FAQ about this. It doset look like its your problem but I dont know as you have provided only one piece off te information i asked for. So here we go again. 1. >>"./check_nrpe -H . already no firewall is running behind those servers .tried to put '-t' option also but didn't >>work." Please paste the output off the above command when you run it against your two hosts. I take it you are running the check_nrpe command as the user nagios? Here is an example that I ran on my nagios server connecting to one off my
Re: [Nagios-users] nrpe problem
Hi From: Sukesh /IT/BLR/JIG/IN [mailto:[EMAIL PROTECTED] Sent: 12 October 2007 04:17 To: Welsh,T,Tom,DLS C Subject: RE: [Nagios-users] nrpe problem This is my remote host log messages Oct 11 07:00:13 ngapps-prd xinetd[619]: START: nrpe pid=1767 from=192.168.1.84 Oct 11 07:00:15 ngapps-prd nrpe[1767]: Could not read request from client, bailing out... Oct 11 07:00:15 ngapps-prd xinetd[619]: EXIT: nrpe status=0 pid=1767 duration=2(sec) From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 11, 2007 6:07 PM To: [EMAIL PROTECTED]; nagios-users@lists.sourceforge.net Subject: RE: [Nagios-users] nrpe problem From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sukesh /IT/BLR/JIG/IN Sent: 11 October 2007 10:48 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] nrpe problem Hi Iam running nagios-3.0a4 and nrpe V2.8.1.iam not getting the result while running ./check_nrpe -H . alreday no firewall is running behind those servers .tried to put '-t' option also but didn't work.Still iam able to telnet 5666 with out any problem/so please help him for this.(iam able to access one server and client using nrpe daemon other could not)/ Thanks, Sukesh . Hi Sukesh, >From reading your email i take it you can sucessfully connect to the remote NRPE host via telnet. [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> :~> telnet host1.somedomain.com 5666 Trying xxx.xxx.xxx.199... Connected to host1.somedomain.com. Escape character is '^]'. If this is correct then NRPE is accepting connections. You said in the previous mail that NRPE is working correctly on one machine but not on another. This sounds like you have some configuration differences between the two boxes. We really need to have more details to help you with this problem. What OS is running on the two remote boxes? Is it the same OS on both boxes. Can you send snippets off your configuration THAT RELATE TO nrpe? NRPE.CFG. SERVICES.CFG CHECKCOMMAND.CFG etc Have you carried out the following Turn on debugging on the remote host running nrpe and see what comes out in the logs? To do this edit your nrpe.cfg file and turn debugging on debugging=1 An example off NRPE debugging turned on Oct 11 13:30:01 host1 nrpe[3950]: Added command[check_dns1]=/usr/local/nagios/libexec/check_dns -H www.teeks.org -w 1 -c 2 Oct 11 13:30:01 host1 nrpe[3950]: Added command[check_swap]=/usr/local/nagios/libexec/check_swap -w 30% -c 20% Oct 11 13:30:01 host nrpe[3950]: Added command[check_ntp]=/usr/local/nagios/libexec/check_ntp -H xxx.xxx.xxx-t 15 Oct 11 13:30:01 host nrpe[3950]: INFO: SSL/TLS initialized. All network traffic will be encrypted. Oct 11 13:30:01 host nrpe[3950]: Handling the connection... Hi Sukesh, Please dont respond to me directly. Please respond via the mailing list. Also please ost your reply comments at the bottom off teh email as it makes it easier to read it in chronological order. Well enough off that spagetti, back to your problem. Your log extract -- Oct 11 07:00:13 ngapps-prd xinetd[619]: START: nrpe pid=1767 from=192.168.1.84 Oct 11 07:00:15 ngapps-prd nrpe[1767]: Could not read request from client, bailing out... Oct 11 07:00:15 ngapps-prd xinetd[619]: EXIT: nrpe status=0 pid=1767 duration=2(sec) -- This really does not tell me anything. I take it you have already goggled for "nrpe + Could not read request from client, bailing out..." and found the Nagios FAQ about this. It doset look like its your problem but I dont know as you have provided only one piece off te information i asked for. So here we go again. 1. >>"./check_nrpe -H . already no firewall is running behind those servers .tried to put '-t' option also but didn't >>work." Please paste the output off the above command when you run it against your two hosts. I take it you are running the check_nrpe command as the user nagios? Here is an example that I ran on my nagios server connecting to one off my remote NRPE boxes usel:~ # su - nagios [EMAIL PROTECTED]:~> id uid=1001(nagios) gid=100(users) groups=100(users),1001(nagcmd) /usr/local/nagios/libexec/check_nrpe -H xxx.xxx.xxx.xxx -p 5666 -c check_users USERS OK - 0 users currently logged in |users=0;5;10;0 2. >>Still I am able to telnet 5666 with out any problem/ Please paste in the output off your telnet sessions to both boxes and the syslog/messages output on the remote hosts like I have below. [EMAIL PROTECTED]:~> telnet xxx.xxx.xxx.xxx 5666 Trying xxx.xxx.xxx.xxx... Connected to xxx.xxx.xxx.xxx. Escape character is '^]'. 3. >>so please help him for this. We will If you provide us with more information 4. >> (iam able to access one serv
Re: [Nagios-users] nrpe problem
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sukesh /IT/BLR/JIG/IN Sent: 11 October 2007 10:48 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] nrpe problem Hi Iam running nagios-3.0a4 and nrpe V2.8.1.iam not getting the result while running ./check_nrpe -H . alreday no firewall is running behind those servers .tried to put '-t' option also but didn't work.Still iam able to telnet 5666 with out any problem/so please help him for this.(iam able to access one server and client using nrpe daemon other could not)/ Thanks, Sukesh . Hi Sukesh, >From reading your email i take it you can sucessfully connect to the remote NRPE host via telnet. [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> :~> telnet host1.somedomain.com 5666 Trying xxx.xxx.xxx.199... Connected to host1.somedomain.com. Escape character is '^]'. If this is correct then NRPE is accepting connections. You said in the previous mail that NRPE is working correctly on one machine but not on another. This sounds like you have some configuration differences between the two boxes. We really need to have more details to help you with this problem. What OS is running on the two remote boxes? Is it the same OS on both boxes. Can you send snippets off your configuration THAT RELATE TO nrpe? NRPE.CFG. SERVICES.CFG CHECKCOMMAND.CFG etc Have you carried out the following Turn on debugging on the remote host running nrpe and see what comes out in the logs? To do this edit your nrpe.cfg file and turn debugging on debugging=1 An example off NRPE debugging turned on Oct 11 13:30:01 host1 nrpe[3950]: Added command[check_dns1]=/usr/local/nagios/libexec/check_dns -H www.teeks.org -w 1 -c 2 Oct 11 13:30:01 host1 nrpe[3950]: Added command[check_swap]=/usr/local/nagios/libexec/check_swap -w 30% -c 20% Oct 11 13:30:01 host nrpe[3950]: Added command[check_ntp]=/usr/local/nagios/libexec/check_ntp -H xxx.xxx.xxx-t 15 Oct 11 13:30:01 host nrpe[3950]: INFO: SSL/TLS initialized. All network traffic will be encrypted. Oct 11 13:30:01 host nrpe[3950]: Handling the connection... - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] nrpe problem
Hi Iam running nagios-3.0a4 and nrpe V2.8.1.iam not getting the result while running ./check_nrpe -H . alreday no firewall is running behind those servers .tried to put '-t' option also but didn't work.Still iam able to telnet 5666 with out any problem/so please help him for this.(iam able to access one server and client using nrpe daemon other could not)/ Thanks, Sukesh . - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE problem
On Thu, 28 Dec 2006, Jesús Oliván wrote: i'm using NRPE to monitorize a Solaris host. When i launch disk nrpe request through check_nrpe plugin on server machine, it returns me a DISK Warning problem, and my host nrpe config is configured to see warnings since 10% space free, but any filesystem reaches 18%. Curiously, if i try to execute check_disk plugin from the host machine, it works well and returns me a DISK OK message. This is nrpe.cfg from client machine: command[check_disk1]=/usr/local/lib/nagios/plugins/check_disk -w 10 -c 5 if i execute this plugin from localhost, this is the result: [EMAIL PROTECTED]:/usr/local/etc: >/usr/local/lib/nagios/plugins/check_disk -w 10 -c 5 DISK OK [2116032 kB (51%) free on /dev/md/dsk/d10] [1916289 kB (46%) free on /dev/md/dsk/d30] [7864408 kB (99%) free on swap] [7864408 kB (99%) free on swap] [3218951 kB (78%) free on /dev/md/dsk/d40] [15269693 kB (83%) free on /dev/md/dsk/d50] [9892740 kB (80%) free on /dev/md/dsk/d60] [16301852 kB (80%) free on nefertari:/product/cvs] [13942787 kB (75%) free on osiris:/opt/contentserver/CSCluster] [6227616 kB (18%) free on nasdm2:/sigma/sigma/utilitats] [6499752 kB (78%) free on nasdm2:/sia/www/cgi-bin] [4126008 kB (99%) free on nasdm2:/portal_forum] Can you do this on a partition basis? What happens if you check only a single partition with 1 check? It is a matter of taste but I would like to get a more specific alert if a partition is running low. So I would split it into 1 service per partition. Also I would prefer to keep NFS disks out of such a list and check on them on the NFS server itself. Hugo. -- [EMAIL PROTECTED] http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons.- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] NRPE problem
Hi! i'm using NRPE to monitorize a Solaris host. When i launch disk nrpe request through check_nrpe plugin on server machine, it returns me a DISK Warning problem, and my host nrpe config is configured to see warnings since 10% space free, but any filesystem reaches 18%. Curiously, if i try to execute check_disk plugin from the host machine, it works well and returns me a DISK OK message. This is nrpe.cfg from client machine: command[check_disk1]=/usr/local/lib/nagios/plugins/check_disk -w 10 -c 5 if i execute this plugin from localhost, this is the result: [EMAIL PROTECTED]:/usr/local/etc: >/usr/local/lib/nagios/plugins/check_disk -w 10 -c 5 DISK OK [2116032 kB (51%) free on /dev/md/dsk/d10] [1916289 kB (46%) free on /dev/md/dsk/d30] [7864408 kB (99%) free on swap] [7864408 kB (99%) free on swap] [3218951 kB (78%) free on /dev/md/dsk/d40] [15269693 kB (83%) free on /dev/md/dsk/d50] [9892740 kB (80%) free on /dev/md/dsk/d60] [16301852 kB (80%) free on nefertari:/product/cvs] [13942787 kB (75%) free on osiris:/opt/contentserver/CSCluster] [6227616 kB (18%) free on nasdm2:/sigma/sigma/utilitats] [6499752 kB (78%) free on nasdm2:/sia/www/cgi-bin] [4126008 kB (99%) free on nasdm2:/portal_forum] and this is the result when i try to check it from server using nrpe: sensor# ./check_nrpe -H isis -c check_disk1 DISK WARNING [2116033 kB (51%) free on /dev/md/dsk/d10] [1917350 kB (46%) free on /dev/md/dsk/d30] [7863912 kB (99%) free on swap] [7863912 kB (99%) free on swap] [3219111 kB (78%) free on /dev/md/dsk/d40] [15269693 kB (83%) free on /dev/md/dsk/d50] [9892868 kB (80%) free on /dev/md/dsk/d60] [16301852 kB (80%) free on nefertari:/product/cvs] [13948714 kB (75%) free on osiris:/opt/contentserver/CSCluster] [6227632 kB (18%) free on nasdm2:/sigma/sigma/utilitats] [6499776 kB (78%) free on nasdm2:/sia/www/cgi-bin] Any help would be greatly appreciated. Thanks in advance! - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] NRPE Problem
Hi,I got a problem. The error displays something like this:CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages. This appears on the service monitoring with the 'UNKNOWN' status. Anyone have an idea on how to fix this?Thanks.Ronald RojasSystem Administrator
Re: [Nagios-users] NRPE-Problem
[Cut out all the reply stuff..] Thanks for everyone's help. I got the hint from someone else to use pNSClient instead and that worked out fine at once. That also looks a bit more configurable. Regards, Kai --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
RE: [Nagios-users] NRPE-Problem
Kai, The pre-build nrpe_nt binaries have ssl enabled by default, try to deinstall "nrpe_nt -u" then "nrpe_nt -i -n" to install with ssl disabled. cheers MiWi -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kai Reese Sent: Thursday, January 26, 2006 2:42 PM To: Nagios Users Mailing List Subject: Re: [Nagios-users] NRPE-Problem Hey. Thanks for the reply. I compiled the nrpe-plugin on the nagios host with ssl-disabled. The config on the to-be-checked-host has the ip of the nagios server in the allowed_hosts, too, so I would say these are not the reasons for the error. Never the less, SSL seems to be the problem. Is there any way I can disable SSL on the to-be-checked host? The binary I got from Openexchange seems to expect SSL and in the nrpe.cfg is no option documented to disable it again. Thanks again for putting me on the right track. (BTW: enabling debug mode in nrpe.cfg helped some, too :) ) On 1/26/06, moshe sharon <[EMAIL PROTECTED]> wrote: > Hello > > This problem can be caused by several issues. you are trying to connect with > SSL client to non SSL server if so run check_nrpe -n and it will disable the > ssl option. i think this error also occures if you did not set > allowed_hosts=. remember to restart the NRPE_NT each time you do > changes in the configuration > > Moshe Sharon > > > On 1/26/06, Kai Reese <[EMAIL PROTECTED]> wrote: > > > > Hey everyone. > > > > I compiled the NRPE plugin on my nagios (Suse) box and it compiled and > > installed just fine, with no warnings or errors. > > > > I also downloaded one of the NRPE_NT Plugins from the openexchange > > forum, installed that and some service-checks like nt_cpuload on my > > win2k machine. > > > > Now, when trying to run the plugin: > > > > nagios: ./check_nrpe -n -H -c nt_cpuload > > > > it responds with : > > > > CHECK_NRPE: Error receiving data from daemon. > > > > I'd be grateful for anyone giving me a hint where to look. > > My host-to-check replies to a telnet IP 5666 just fine, so I don't > > think it is any connection problem. Also, I made sure the service is > > running on the w2k machine. > > > > Thanks, > > > > Kai Reese > > > > > > --- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > > http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642 > > ___ > > Nagios-users mailing list > > Nagios-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE-Problem
Hey. Thanks for the reply. I compiled the nrpe-plugin on the nagios host with ssl-disabled. The config on the to-be-checked-host has the ip of the nagios server in the allowed_hosts, too, so I would say these are not the reasons for the error. Never the less, SSL seems to be the problem. Is there any way I can disable SSL on the to-be-checked host? The binary I got from Openexchange seems to expect SSL and in the nrpe.cfg is no option documented to disable it again. Thanks again for putting me on the right track. (BTW: enabling debug mode in nrpe.cfg helped some, too :) ) On 1/26/06, moshe sharon <[EMAIL PROTECTED]> wrote: > Hello > > This problem can be caused by several issues. you are trying to connect with > SSL client to non SSL server if so run check_nrpe -n and it will disable the > ssl option. i think this error also occures if you did not set > allowed_hosts=. remember to restart the NRPE_NT each time you do > changes in the configuration > > Moshe Sharon > > > On 1/26/06, Kai Reese <[EMAIL PROTECTED]> wrote: > > > > Hey everyone. > > > > I compiled the NRPE plugin on my nagios (Suse) box and it compiled and > > installed just fine, with no warnings or errors. > > > > I also downloaded one of the NRPE_NT Plugins from the openexchange > > forum, installed that and some service-checks like nt_cpuload on my > > win2k machine. > > > > Now, when trying to run the plugin: > > > > nagios: ./check_nrpe -n -H -c nt_cpuload > > > > it responds with : > > > > CHECK_NRPE: Error receiving data from daemon. > > > > I'd be grateful for anyone giving me a hint where to look. > > My host-to-check replies to a telnet IP 5666 just fine, so I don't > > think it is any connection problem. Also, I made sure the service is > > running on the w2k machine. > > > > Thanks, > > > > Kai Reese > > > > > > --- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > > http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642 > > ___ > > Nagios-users mailing list > > Nagios-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE-Problem
Hello This problem can be caused by several issues. you are trying to connect with SSL client to non SSL server if so run check_nrpe -n and it will disable the ssl option. i think this error also occures if you did not set allowed_hosts=. remember to restart the NRPE_NT each time you do changes in the configuration Moshe Sharon On 1/26/06, Kai Reese <[EMAIL PROTECTED]> wrote: Hey everyone.I compiled the NRPE plugin on my nagios (Suse) box and it compiled andinstalled just fine, with no warnings or errors. I also downloaded one of the NRPE_NT Plugins from the openexchangeforum, installed that and some service-checks like nt_cpuload on mywin2k machine.Now, when trying to run the plugin:nagios: ./check_nrpe -n -H -c nt_cpuload it responds with :CHECK_NRPE: Error receiving data from daemon.I'd be grateful for anyone giving me a hint where to look.My host-to-check replies to a telnet IP 5666 just fine, so I don'tthink it is any connection problem. Also, I made sure the service is running on the w2k machine.Thanks,Kai Reese---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642 ___Nagios-users mailing listNagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] NRPE-Problem
Hey everyone. I compiled the NRPE plugin on my nagios (Suse) box and it compiled and installed just fine, with no warnings or errors. I also downloaded one of the NRPE_NT Plugins from the openexchange forum, installed that and some service-checks like nt_cpuload on my win2k machine. Now, when trying to run the plugin: nagios: ./check_nrpe -n -H -c nt_cpuload it responds with : CHECK_NRPE: Error receiving data from daemon. I'd be grateful for anyone giving me a hint where to look. My host-to-check replies to a telnet IP 5666 just fine, so I don't think it is any connection problem. Also, I made sure the service is running on the w2k machine. Thanks, Kai Reese --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null