cacti stop working after server reboot
Moderators: Developers, Moderators
-
- Cacti User
- Posts: 153
- Joined: Wed Aug 25, 2010 11:07 pm
cacti stop working after server reboot
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
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
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: cacti stop working after server reboot
Please check e.g. whether crond, mysqld are running
R.
R.
-
- Cacti User
- Posts: 153
- Joined: Wed Aug 25, 2010 11:07 pm
Re: cacti stop working after server reboot
mysql is running.
crontab -u cacti -e :
normally cacti log will tell all info. since reboot the server it stoped.
nothing else after that.
I double checked. run the follow command
it still same......
crontab -u cacti -e :
Code: Select all
*/5 * * * * php /var/www/cacti/poller.php > /dev/null 2>&1
Code: Select all
03/03/2011 03:25:32 PM - AUTH LOGIN: User 'admin' Authenticated
I double checked. run the follow command
Code: Select all
service httpd restart
service mysqld restart
service snmpd restart
Re: cacti stop working after server reboot
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.
check cacti's logs.
try an snmpwalk on the OIDs that have stopped to graph.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: cacti stop working after server reboot
Your checks did NOT make sure that crond is running. And check e.g. /var/log/cron for expected entries
R.
R.
-
- Cacti User
- Posts: 153
- Joined: Wed Aug 25, 2010 11:07 pm
Re: cacti stop working after server reboot
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)
-
- Cacti User
- Posts: 153
- Joined: Wed Aug 25, 2010 11:07 pm
Re: cacti stop working after server reboot
Don't know why the graph came back
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: cacti stop working after server reboot
The first one is wrong, the second is ok. So you have two cron entries; I suppose in different fileschefchanyu wrote:the cron looks fine.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)
R.
Who is online
Users browsing this forum: No registered users and 3 guests