You are not logged in.

#1 2009-08-25 14:08:05

rogg
Member
Registered: 2009-08-09
Posts: 10

Nagios [Solved]

Hey guys,

After installing it using Yaourt, i wasnt able to start it (using /etc/rc.d/nagios start). I tried to changing nagios.cfg definition of the user and group to nagios/nagios to no avail.
Does anyone know of any Arch documentation for setting up Nagios or does anyone know whats causing the startup error?

Thanks in advanced

Last edited by rogg (2009-08-27 08:40:44)

Offline

#2 2009-08-26 00:23:25

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: Nagios [Solved]

Try running this command which will give you more feedback:

/etc/nagios/daemon-init start

Offline

#3 2009-08-26 12:44:31

rogg
Member
Registered: 2009-08-09
Posts: 10

Re: Nagios [Solved]

Thanks that did the trick. For anyone else wondering
/usr/bin/nagios -v /etc/nagios/nagios.cfg will run a flight check, which is very useful.

I just have one more issue actually, after getitng nagios running when i try to do certain things on the webinterface such as leaving comments i get thrown:

Error: Could not open command file '/var/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.

for nagios.cmd my permissions are currently
prw-rw---- 1 nagios nagios

Does anyone know whats causing this?

Last edited by rogg (2009-08-26 12:50:37)

Offline

#4 2009-08-26 17:32:20

rine
Member
From: Germany
Registered: 2008-03-04
Posts: 217

Re: Nagios [Solved]

What about the parent directories? Can nagios read them?

Offline

#5 2009-08-26 22:37:18

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: Nagios [Solved]

That file needs to be writable by the http process, so:

chown nagios:http /var/nagios/rw/nagios.cmd
chmod 660 /var/nagios/rw/nagios.cmd

It's a pain... I'd change the PKGBUILD but I'm not the maintainer

Offline

#6 2009-08-27 08:40:32

rogg
Member
Registered: 2009-08-09
Posts: 10

Re: Nagios [Solved]

Thanks everyone, its all works now
Fukwai2's suggestion worked perfectly smile

thanks everyone!

Offline

Board footer

Powered by FluxBB