Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 01-02-2008, 10:05 AM   #1
Registered: Mar 2004
Distribution: debian...
Posts: 31

Rep: Reputation: 16
Nagios, NRPE, cmd permissions problems

I have installed nagios, but all the checks and alerts are in disabled mode. whenever I go to enable something I get the following error:

Error: Could not open command file '/var/log/nagios/rw/nagios.cmd' for update!

The permissions on the external command file and/or directory may be incorrect. Read the FAQs on how to setup proper permissions.

An error occurred while attempting to commit your command for processing.

Return from whence you came

I checked the permissions in the directories starting from /var on down to nagios.cmd and everything is as it should be according to the documentation. I found online a tip to make sure the user apache runs as is a member of the nagiocmd group. So I used gpasswd -a apache nagiocmd to add the user to the group. now when I do a cat /etc/group I see this:


It still does not work ( also added the nagios user just to try it). What does the "!" mean in this context? This is the only group that has the symbol and I have not seen this before. I'm down right confused. Thanks for any help.
Old 01-02-2008, 03:34 PM   #2
Registered: Jun 2005
Location: Portland, ME
Distribution: Slackware 13, CentOS 5.3, FBSD 7.2, OBSD 4.6, Fedora 11
Posts: 122

Rep: Reputation: 17
Originally Posted by Rush_898 View Post
but all the checks and alerts are in disabled mode
This is interesting to me... By default they should be Enabled. Did you install the default cfg files and adjust for your own needs?

In your nagios.cfg there should be a line that looks like this:
There is also a place in your service definitions where you can turn on/off active and passive checks...

Originally Posted by Rush_898 View Post
The ! is the spot where a password goes. Normally there is an x there, or it's blank... alteast for groups. You can view more info by doing man group. I've personally never seen a ! in that field...
Old 03-17-2008, 07:18 AM   #3
LQ Newbie
Registered: Mar 2008
Posts: 7

Rep: Reputation: 0
there is an error will configuring the hosts.cfg
the error is

Error: Invalid host object directive 'retry_interval'.
Error: Could not add object property in file '/usr/local/nagios/etc/hosts.cfg' on line 7.

the hosts.cfg file contains

define host{
name linux-box ; Name of this template
use generic-host ; Inherit default values
check_command check-host-alive
check_period 24x7
check_interval 5
retry_interval 1
max_check_attempts 5
notification_period 24x7
notification_interval 30
notification_options d,u,r
contact_groups admins

define host{
use linux-box
host_name remotehost
alias Fedora Core 6


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
nagios + nrpe configuration aeby Linux - Server 6 05-29-2012 11:52 AM
Nagios--- NRPE lazylark Linux - Software 1 04-11-2007 01:57 PM
Nagios - nrpe plugin configuration nitin-saxena Linux - Software 1 10-27-2006 01:50 PM
Nagios/NRPE issue JF1980 Linux - Security 1 05-18-2006 02:59 PM
Nagios NRPE twantrd Linux - Software 1 10-20-2004 08:24 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:20 AM.

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