LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 01-02-2008, 11:05 AM   #1
Rush_898
Member
 
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:

Quote:
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:

nagiocmd:!:500:apache,nagios


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, 04:34 PM   #2
dguitar
Member
 
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
Quote:
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:
Code:
execute_service_checks=1
There is also a place in your service definitions where you can turn on/off active and passive checks...

Quote:
Originally Posted by Rush_898 View Post
nagiocmd:!:500:apache,nagios
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, 08:18 AM   #3
bhagya
LQ Newbie
 
Registered: Mar 2008
Posts: 7

Rep: Reputation: 0
hello
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
register 0 ; DONT REGISTER THIS - ITS A TEMPLATE
}


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


Reply


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 12:52 PM
Nagios--- NRPE lazylark Linux - Software 1 04-11-2007 02:57 PM
Nagios - nrpe plugin configuration nitin-saxena Linux - Software 1 10-27-2006 02:50 PM
Nagios/NRPE issue JF1980 Linux - Security 1 05-18-2006 03:59 PM
Nagios NRPE twantrd Linux - Software 1 10-20-2004 09:24 AM


All times are GMT -5. The time now is 08:47 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration