Re: Nagios Warnung: Monitoring process may not be running!
On Tue, Jan 11, 2005 at 12:31:55PM +0100, Tobias Krais wrote:
> Hi nochmals,
>
> > Error: Could not stat() command file '/var/run/nagios/nagios.cmd'!
>
> Dieses File existiert bei mir nicht. Würdest du bitte kurz posten, was
> bei dir da so drin steht?
bei mir (stable-backport):
#$ less /etc/nagios/nagios.cfg | grep ...
# EXTERNAL COMMAND FILE
# This is the file that Nagios checks for external command requests.
# It is also where the command CGI will write commands that are
# submitted
# by users, so it must be writeable by the user that the web server
# is running as (usually 'nobody'). Permissions should be set at the
# directory level instead of on the file, as the file is deleted every
# time its contents are processed.
command_file=/var/log/nagios/rw/nagios.cmd
#$ ls -l /var/log/nagios/rw/nagios.cmd
prw-rw---- 1 nagios nagios 0 11. Jan 05:13 /var/log/nagios/rw/nagios.cmd
Scheint aber von nagios angelegt zu werden, nur der Pfad sollte
schreibbar sein :)
#$ ls -l /var/log/nagios/
insgesamt 100
drwxr-xr-x 2 nagios nagios 4096 11. Jan 00:00 archives
-rw-rw-r-- 1 nagios nagios 0 10. Jan 12:01 comment.log
-rw-rw-r-- 1 nagios nagios 0 10. Jan 12:01 downtime.log
-rw-rw-r-- 1 nagios nagios 81720 11. Jan 12:01 nagios.log
drwxr-xr-x 2 nagios nagios 4096 10. Jan 12:01 rw
-rw-rw-r-- 1 nagios nagios 4048 11. Jan 12:56 status.log
-rw-rw-r-- 1 nagios nagios 3034 11. Jan 12:01 status.sav
#$ ls -la /var/run/nagios/
insgesamt 12
drwxr-xr-x 2 nagios www-data 4096 10. Jan 12:01 .
drwxr-xr-x 9 root root 4096 6. Jan 11:45 ..
-rw-r--r-- 1 root root 5 10. Jan 12:01 nagios.pid
hagen
Reply to: