LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX
User Name
Password
Other *NIX This forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.

Notices


Reply
  Search this Thread
Old 08-30-2010, 03:00 PM   #1
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,830
Blog Entries: 15

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
"Unable to open config file '//nrpe.cfg' for reading" when using netd.conf


On trying to setup some older HP-UX systems with the 3.x version of Nagios NRPE plugin I saw:

Quote:
Unable to open config file '//nrpe.cfg' for reading
This was attempted using inetd (on HP-UX as opposed to xinetd on Linux where it works fine). It had also worked fine on HP-UX running it as a daemon (-d option) as opposed to inet (-i option).

The incorrect entry initially added to /etc/inetd.conf on HP-UX was:
Code:
nrpe stream tcp nowait nagios /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -i
After doing some checking I saw many had this issue but never saw an actual resolution to it. After reviewing the entry against others and the man page my error became apparent. The correct line should be:

Code:
nrpe stream tcp nowait nagios /usr/local/nagios/bin/nrpe nrpe -c /usr/local/nagios/etc/nrpe.cfg -i
The man page says in part:
Quote:
server program arguments
Arguments to the server program. The same as in normal use, starting with argv[0], which is the name of the program.
In my mind I was thinking "the arugments" to the command rather than "the command AND its arguments" because the full path to command already existed on the line. However it requires the command AND arugments to exist staring as argv[0] in ADDITION to the full path entry before that.

This is being posted as I saw similar issues mentioning inetd.conf on Solaris, FreeBSD, AIX and other so hopefully someone else will find it useful. (Also newer as many of those posts were rather old.) Many of them also go down the wrong road trying to solve the socket error message seen on the Nagios master rather than the above error which is in the system log of the nrpe client server.
 
Old 10-25-2010, 07:24 AM   #2
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Thanks for the tip(s).

You might want to edit "the arugments" to "the arguments".
 
  


Reply

Tags
hpux, nagios, nrpe


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to open configuration file "/etc/samba/smb.conf" Permission denied jijawm Linux - Enterprise 8 08-18-2010 11:47 AM
[SOLVED] May I edit the file "grub.cfg" without causing harm to my system? seamuscristo Linux - Newbie 11 06-07-2010 01:13 PM
proftpd - Unable to open config file: /etc/security/pam_env.conf micxz Linux - Server 3 01-07-2010 08:59 AM
"Not replacing deleted config file /etc/apache/modules.conf" WTFN? lumix Linux - Software 1 04-26-2008 09:29 PM
unable to open "compiled HTML Help file" rahul_khare15 Linux - Newbie 1 11-07-2007 12:48 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX

All times are GMT -5. The time now is 04:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration