Error when opening command file for update!

Hiya.

Got my nagios 3.0b.3 up and running following the ubuntu quickstart on the nagios site. Couple of things not quite right with it but otherwise it’s really neat and have added a couple of Windows boxes both LAN and WAN and are monitoring nicely. However, I’m now trying to get the notifications up. I’ve added my contact info, etc. and am trying to get the host to ‘notify for all services on host’. However, I get the error below:

Error: Could not open command file ‘/usr/local/nagios/var/rw/nagios.cmd’ for update!

(this in the browser, obviously)

I’ve followed nagios.sourceforge.net/docs/2_0/commandfile.html religiously, and rebooted the box just incase I was doing something dumb, but alack, I just CANT GET IT TO WORK!

argh. :frowning:

anyone? Will need to be nice to be as I’m a linux newbie! :stuck_out_tongue:

Hi,
try checking owner and permisisons of the nagios.cmd file (ls -l) and of all the parent directories in relation to the user running nagios (ps -ef | grep nagios).

It might be an access error.

Bye
Ivan

Hiya Ivan

when I do a ls -l on the RW folder I get:

prw-rw----- 1 nagios nagios 0 (date/time) nagios.cmd

when i do a ps -ef (but can’t find the keyboard button for " | " through my vnc connection) I get a long list of folders and stuff but the nagios user isn’t listed there?

i don’t know if i mentioned but my nagios.cfg – nagios is running as nagios user nagios group.

:?:
corcoran

user should be nagios
and the group nagiocmd

both with read and write

Blade: this is version 3? So at the moment only nagios/nagios has RW to this file, is that right? (What, no GUI? :stuck_out_tongue: )

the wwwrun user need to access this file as well

not sure if this posted, but resolved this by created a new RW folder and updating the config