[SOLVED] Log file stopped being written to

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
etc
Cacti User
Posts: 52
Joined: Thu Apr 19, 2007 2:36 pm

[SOLVED] Log file stopped being written to

Post by etc »

I am running cacti version 0.8.6j

I renamed the log file which got huge due to debugging.

Then I did "cat /dev/null > cacti.log"

Ever since then, nothing is written to this file.

How can restart cacti or the daemon that's responsible for the log file?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

can you run this :

Code: Select all

$ ls -ld /path/to/cacti/log
$ ls -l /path/to/cacti/log/cacti.log
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
etc
Cacti User
Posts: 52
Joined: Thu Apr 19, 2007 2:36 pm

Post by etc »

root@bizcacti:/var/www/html/cacti/log# ls -ld /var/www/html/cacti/log
drwxr-xr-x 2 cacti cacti 4096 Feb 18 11:10 /var/www/html/cacti/log

root@bizcacti:/var/www/html/cacti/log# ls -l /var/www/html/cacti/log/cacti.log
-rw-r--r-- 1 root root 0 Feb 18 11:10 /var/www/html/cacti/log/cacti.log
root@bizcacti:/var/www/html/cacti/log#
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Please run that :

Code: Select all

# chown cacti:cacti /var/www/html/cacti/log/cacti.log 
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
etc
Cacti User
Posts: 52
Joined: Thu Apr 19, 2007 2:36 pm

Post by etc »

Thanks, it worked. It was an ownership issue.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests