Re: [Nagios-users] Return Code 127
Kaplan, Andrew H. wrote: > I checked the commands.cfg file and modified the command syntax of check_nrpe > from /usr/lib/nagios/plugins/check_nrpe to $USER1$/check_nrpe. > > The result was I am no longer getting the 127 error, but I am now faced > with another issue. > > The new error that I am seeing is: > > CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for > error messages. > > I checked the HP-UX 11.11 box and the syslog.log file had the following > entry: > > Host 0.0.0.0 is not allowed to talk to us! > It seems there's a bug in HP-UX or you have some extremely odd firewall installed. This is supposed to print the ip-address of the connecting host. > I checked the nrpe.cfg file and under SERVER ADDRESS, I have nrpe bound to > client's ip address, and under ALLOWED HOSTS, I have several addresses, > including the Nagios 2.6 server, that are permitted to talk to NRPE on the > client. > Quick and dirty hack: Add "0.0.0.0" to the list of allowed_hosts. This will make it work but will most likely also make it possible to query the host from any other server on the network. -- Andreas Ericsson [EMAIL PROTECTED] OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 - 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
Re: [Nagios-users] Return Code 127
I checked the commands.cfg file and modified the command syntax of check_nrpe from /usr/lib/nagios/plugins/check_nrpe to $USER1$/check_nrpe. The result was I am no longer getting the 127 error, but I am now faced with another issue. The new error that I am seeing is: CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages. I checked the HP-UX 11.11 box and the syslog.log file had the following entry: Host 0.0.0.0 is not allowed to talk to us! I checked the nrpe.cfg file and under SERVER ADDRESS, I have nrpe bound to client's ip address, and under ALLOWED HOSTS, I have several addresses, including the Nagios 2.6 server, that are permitted to talk to NRPE on the client. -Original Message- From: Morris, Patrick [mailto:[EMAIL PROTECTED] Sent: Monday, December 18, 2006 11:54 AM To: Kaplan, Andrew H.; Andy Shellam (Mailing Lists); nagios-users@lists.sourceforge.net Subject: RE: [Nagios-users] Return Code 127 > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Kaplan, Andrew H. > Sent: Monday, December 18, 2006 8:48 AM > To: Andy Shellam (Mailing Lists); nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] Return Code 127 > > I checked that out and I confirmed that the nagios user could > execute the plugin by manually running check_nrpe by itself > and getting the help information printed onscreen. > > I confirmed the permissions on the file were 775, while the > user and group owners are nagios:nagios. The location of the > directory for the plugin is /usr/lib/nagios/plugins, and is > owned by user and group root:root with the permissions 775. > The parent directory, /usr/lib/nagios, is also owned by user > and group root:root with the permissions 755. > > Do I need to change the ownership on the two parent > directories to user and group nagios:nagios with permissions > 775, or is there something else that I should do? It's a bit more likely that your check command has an error in it. The messages you're seeing nearly always mean you're trying to run a plugin that isn't there. What does your check command look like? If it uses variables, make sure they're set to what you think they are. - 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
Re: [Nagios-users] Return Code 127
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Kaplan, Andrew H. > Sent: Monday, December 18, 2006 8:48 AM > To: Andy Shellam (Mailing Lists); nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] Return Code 127 > > I checked that out and I confirmed that the nagios user could > execute the plugin by manually running check_nrpe by itself > and getting the help information printed onscreen. > > I confirmed the permissions on the file were 775, while the > user and group owners are nagios:nagios. The location of the > directory for the plugin is /usr/lib/nagios/plugins, and is > owned by user and group root:root with the permissions 775. > The parent directory, /usr/lib/nagios, is also owned by user > and group root:root with the permissions 755. > > Do I need to change the ownership on the two parent > directories to user and group nagios:nagios with permissions > 775, or is there something else that I should do? It's a bit more likely that your check command has an error in it. The messages you're seeing nearly always mean you're trying to run a plugin that isn't there. What does your check command look like? If it uses variables, make sure they're set to what you think they are. - 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
Re: [Nagios-users] Return Code 127
I checked that out and I confirmed that the nagios user could execute the plugin by manually running check_nrpe by itself and getting the help information printed onscreen. I confirmed the permissions on the file were 775, while the user and group owners are nagios:nagios. The location of the directory for the plugin is /usr/lib/nagios/plugins, and is owned by user and group root:root with the permissions 775. The parent directory, /usr/lib/nagios, is also owned by user and group root:root with the permissions 755. Do I need to change the ownership on the two parent directories to user and group nagios:nagios with permissions 775, or is there something else that I should do? -Original Message- From: Andy Shellam (Mailing Lists) [mailto:[EMAIL PROTECTED] Sent: Monday, December 18, 2006 11:36 AM To: Kaplan, Andrew H. Cc: Nagios Users mailinglist Subject: Re: [Nagios-users] Return Code 127 This usually means Nagios cannot execute the plugin (on the server). If it was NRPE client-side it would give a different error. You need to be able to execute your plugin as the Nagios user, so check that first and any preceding directories above where that plugin is. Andy. Kaplan, Andrew H. wrote: > > I am attempting to monitor a remote HP-UX 11.11 client but I am > confronted with the following error message: > > Return code of 127 is out of bounds - plugin may be missing. > > The log files add the following: Make sure the plugin you're trying to > run actually exists. > > I checked the nrpe.cfg file on the remote client, and the check > commands do have the complete path to the > > plugins. I manually ran one of the commands to confirm it could run. I > then went to the Nagios server and > > verified the check_nrpe plugin was in the same directory as the > others. I noticed that I could not start > > the nrpe daemon as root, but I was able to do so as a sudo user. > > The version of nagios I am running is version 2.6. While the nrpe > client on the remote host and the check_nrpe > > plugin on the server are 2.5.1. > > What do I need to do to correct this? Thanks. > > !DSPAM:37,4586bfce30867380719048! > > > - > 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 > > !DSPAM:37,4586bfce30867380719048! > > > > ___ > 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 > > !DSPAM:37,4586bfce30867380719048! > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - 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
Re: [Nagios-users] Return Code 127
This usually means Nagios cannot execute the plugin (on the server). If it was NRPE client-side it would give a different error. You need to be able to execute your plugin as the Nagios user, so check that first and any preceding directories above where that plugin is. Andy. Kaplan, Andrew H. wrote: > > I am attempting to monitor a remote HP-UX 11.11 client but I am > confronted with the following error message: > > Return code of 127 is out of bounds – plugin may be missing. > > The log files add the following: Make sure the plugin you’re trying to > run actually exists. > > I checked the nrpe.cfg file on the remote client, and the check > commands do have the complete path to the > > plugins. I manually ran one of the commands to confirm it could run. I > then went to the Nagios server and > > verified the check_nrpe plugin was in the same directory as the > others. I noticed that I could not start > > the nrpe daemon as root, but I was able to do so as a sudo user. > > The version of nagios I am running is version 2.6. While the nrpe > client on the remote host and the check_nrpe > > plugin on the server are 2.5.1. > > What do I need to do to correct this? Thanks. > > !DSPAM:37,4586bfce30867380719048! > > > - > 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 > > !DSPAM:37,4586bfce30867380719048! > > > > ___ > 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 > > !DSPAM:37,4586bfce30867380719048! > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - 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