cacti stop working after server reboot

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

Moderators: Developers, Moderators

Post Reply
chefchanyu
Cacti User
Posts: 153
Joined: Wed Aug 25, 2010 11:07 pm

cacti stop working after server reboot

Post by chefchanyu »

Hi:
I install cacti via rpm was working fine last few days. but today since reboot the server cacti stop working. how can I fix this problem?

Danny
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: cacti stop working after server reboot

Post by gandalf »

Please check e.g. whether crond, mysqld are running
R.
chefchanyu
Cacti User
Posts: 153
Joined: Wed Aug 25, 2010 11:07 pm

Re: cacti stop working after server reboot

Post by chefchanyu »

mysql is running.
crontab -u cacti -e :

Code: Select all

*/5 * * * * php /var/www/cacti/poller.php > /dev/null 2>&1
normally cacti log will tell all info. since reboot the server it stoped.

Code: Select all

03/03/2011 03:25:32 PM - AUTH LOGIN: User 'admin' Authenticated 
nothing else after that.

I double checked. run the follow command

Code: Select all

service httpd restart
service mysqld restart
service snmpd restart
it still same......
Dude
Cacti User
Posts: 73
Joined: Wed Aug 11, 2010 11:44 pm

Re: cacti stop working after server reboot

Post by Dude »

check if its the snmp graphs that have stopped or the script server ones.
check cacti's logs.
try an snmpwalk on the OIDs that have stopped to graph.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: cacti stop working after server reboot

Post by gandalf »

Your checks did NOT make sure that crond is running. And check e.g. /var/log/cron for expected entries
R.
chefchanyu
Cacti User
Posts: 153
Joined: Wed Aug 25, 2010 11:07 pm

Re: cacti stop working after server reboot

Post by chefchanyu »

Code: Select all

Mar  7 10:31:08 localhost anacron[3208]: Will run job `cron.daily' in 65 min.
Mar  7 10:31:08 localhost anacron[3208]: Jobs will be executed sequentially
Mar  7 10:30:01 localhost crond[3996]: (cacti) CMD (php /var/www/cacti/poller.php > /dev/null 2>&1)
Mar  7 10:30:01 localhost crond[3997]: (cacti) CMD (php /var/www/cacti/poller.php &>/dev/nul
Mar  7 10:32:31 localhost crontab[4036]: (root) BEGIN EDIT (root)
Mar  7 10:32:38 localhost crontab[4036]: (root) REPLACE (root)
Mar  7 10:32:38 localhost crontab[4036]: (root) END EDIT (root)
Mar  7 10:32:42 localhost crontab[4038]: (root) BEGIN EDIT (cacti)
Mar  7 10:32:47 localhost crontab[4038]: (root) REPLACE (cacti)
Mar  7 10:32:47 localhost crontab[4038]: (root) END EDIT (cacti)
Mar  7 10:33:01 localhost crond[3162]: (root) RELOAD (cron/root)
Mar  7 10:33:01 localhost crond[3162]: (cacti) RELOAD (cron/cacti)
Mar  7 10:35:01 localhost crond[4051]: (cacti) CMD (php /var/www/cacti/poller.php &>/dev/null)
Mar  7 10:35:01 localhost crond[4053]: (cacti) CMD (php /var/www/cacti/poller.php > /dev/null 2>&1)
the cron looks fine.
chefchanyu
Cacti User
Posts: 153
Joined: Wed Aug 25, 2010 11:07 pm

Re: cacti stop working after server reboot

Post by chefchanyu »

Don't know why the graph came back :roll:
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: cacti stop working after server reboot

Post by gandalf »

chefchanyu wrote:

Code: Select all

Mar  7 10:35:01 localhost crond[4051]: (cacti) CMD (php /var/www/cacti/poller.php &>/dev/null)
Mar  7 10:35:01 localhost crond[4053]: (cacti) CMD (php /var/www/cacti/poller.php > /dev/null 2>&1)
the cron looks fine.
The first one is wrong, the second is ok. So you have two cron entries; I suppose in different files
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests