Page 1 of 1
nagios 4.0.5 website cannot write to file
Posted: Sun Apr 13, 2014 6:08 am
by averlon
Hi,
I got the message on my nagios website:
Code: Select all
Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update!
This happens by chance. Sometimes, sometimes not.
What could be the reason for this.
Was the same behaviour in 4.0.4.
I had to reinstall my complete server (due to other reasons).
Ubuntu 13.10
nagios 4.0.4
mysql
ndoutils
Re: nagios 4.0.5 website cannot write to file
Posted: Mon Apr 14, 2014 9:51 am
by slansing
What is the output of:
Code: Select all
ls -la /usr/local/nagios/var/rw/nagios.cmd
How often does this happen? Is it after restarts of nagios?
Re: nagios 4.0.5 website cannot write to file
Posted: Mon Apr 14, 2014 11:07 am
by averlon
Hi,
Code: Select all
prw-rw---- 1 nagios nagios 0 Apr 14 07:27 /usr/local/nagios/var/rw/nagios.cmd
No, it is not only after restart of nagios.
But it is only a home-installation - just to get knowledge on nagios. 3 Servers to monitor. 3 Clients, Printers, Switches, ...
Nagios Server is a XEN Guest. It probably is a network issue or some performance issue on the XEN/Ubuntu Guest.
Difficult to analyse and difficult to say.
Re: nagios 4.0.5 website cannot write to file
Posted: Mon Apr 14, 2014 4:12 pm
by scottwilkerson
Is the user apache runs under part of the nagios group?
This is one reason I could see it happening, otherwise it is usually just if the nagios process isn't currently running.
Re: nagios 4.0.5 website cannot write to file
Posted: Tue Apr 15, 2014 12:08 am
by averlon
Hi,
yes, www-data is part of nagios group.
Re: nagios 4.0.5 website cannot write to file
Posted: Tue Apr 15, 2014 10:08 am
by lmiltchev
Run the following commands and show us the output:
Code: Select all
ls -lad /usr/local/nagios/var/rw/
ps -ef | grep nagios
grep nag /etc/group