Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support
It is currently Thu Jul 24, 2014 8:00 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: CACTI - no data in graphs
PostPosted: Thu Jul 20, 2006 4:46 pm 
Offline

Joined: Wed Jun 29, 2005 5:17 am
Posts: 35
Hi all,

I have problem ... with cacti. Everything looks good, but I don't see any data in graphs. So I've tried to log in as cactiuser, and run /usr/..../php /apache/htdocs/cacti/poller.php - and what??????
I see some charts ???
Could You please help me, what I do wrong?????????
Thanks
michael


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 21, 2006 12:31 am 
Offline

Joined: Wed Jun 29, 2005 5:17 am
Posts: 35
Certainly I have added line to crontab and I've checked all paths.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 21, 2006 1:30 am 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14861
Location: MI, USA
Screen shots please? Poller log please, in MEDIUM? What happens when you run "php poller.php" from the command line (post output), what happens when you run "php <path_cacti>/cmd.php" from the command line. Do all these things in MEDIUM logging and post your results.

TheWitness

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 21, 2006 3:12 am 
Offline

Joined: Wed Jun 29, 2005 5:17 am
Posts: 35
Hi again,

When I start cmd.php from console I see following info:
Code:
"07/21/2006 08:01:01 AM - CMDPHP: Poller[0] Host[1] No host availability check possible for '127.0.0.1'.
07/21/2006 08:01:01 AM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /www/apache/cacti/scripts/linux_memory.pl MemFree:, output: 8304
07/21/2006 08:01:01 AM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /www/apache/cacti/scripts/linux_memory.pl SwapFree:, output: 0
07/21/2006 08:01:01 AM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /www/apache/cacti/scripts/loadavg_multi.pl,output: 1min:0.08 5min:0.02 10min:0.01
07/21/2006 08:01:01 AM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl /www/apache/cacti/scripts/unix_users.pl, output: 2
07/21/2006 08:01:01 AM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /www/apache/cacti/scripts/unix_processes.pl, output: 84
07/21/2006 08:01:01 AM - CMDPHP: Poller[0] Time: 0.3642 s, Theads: N/A, Hosts: 1


But if I run poller.php form console in cacti log I can find new information:

Code:
07/21/2006 08:09:12 AM - SYSTEM STATS: Time:1.0997 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5


07/21/2006 08:09:11 AM - CMDPHP: Poller[0] Time: 0.3635 s, Theads: N/A, Hosts: 1


07/21/2006 08:09:11 AM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /www/apache/cacti/scripts/unix_processes.pl, output: 88


07/21/2006 08:09:11 AM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl /www/apache/cacti/scripts/unix_users.pl, output: 2


07/21/2006 08:09:11 AM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /www/apache/cacti/scripts/loadavg_multi.pl, output: 1min:0.17 5min:0.06 10min:0.02


07/21/2006 08:09:11 AM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /www/apache/cacti/scripts/linux_memory.pl SwapFree:, output: 0


07/21/2006 08:09:11 AM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /www/apache/cacti/scripts/linux_memory.pl MemFree:, output: 3008


07/21/2006 08:09:11 AM - CMDPHP: Poller[0] Host[1] No host availability check possible for '127.0.0.1'.



THX


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 21, 2006 4:33 am 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14861
Location: MI, USA
Same information, the order is just reversed because you werer looking at the Cacti log in the second example. Your system is fine, I would bet your graphs are ok as well. I suspect a permissions issue.

TheWitness

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 21, 2006 5:27 am 
Offline

Joined: Wed Jun 29, 2005 5:17 am
Posts: 35
but where should I try to find, change permission.
I typed: chmod 777 -R /path_to_cacti/
Is this correct???


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 21, 2006 6:06 am 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14861
Location: MI, USA
That was correct, now see if your pollr log is more filled than it was earlier today. If no, thn your cron job is not running properly.

TheWitness

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 21, 2006 6:18 am 
Offline

Joined: Wed Jun 29, 2005 5:17 am
Posts: 35
In log tab I have more line with information (similar lines - no errors). How to check ctrontab.

I have added line to cron by cacti_user account, no by root.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 21, 2006 7:34 am 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14861
Location: MI, USA
Use root. It is likely not running because of some issue with the user ID you chose. Going to root removed that possiblilty.

TheWitness

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 21, 2006 3:17 pm 
Offline

Joined: Wed Jun 29, 2005 5:17 am
Posts: 35
Everything with crond is OK. I've checked this.
But sill I don't know what I'am doing wrong?????
Please help me......
If I run poller.php form console using cactiuser - cacti working correctly.
But when I'm waiting for data from "crond" - cacri not working correctly....

THX FOR HELP


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 21, 2006 5:11 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14861
Location: MI, USA
Maybe you should check to verify that the crond service is running. Try "chkconfig --list | grep cron". If it shows off for levels 345, then "chkconfig crond on" and "etc/init.d/crond start".

TheWitness

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 21, 2006 6:20 pm 
Offline
Cacti User

Joined: Mon Apr 17, 2006 3:28 pm
Posts: 58
Location: Chateauguay, Quebec
You have no graph are all your graph are empty?

have you check if your rrd file are updated every 5 minutes?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 22, 2006 7:46 am 
Offline

Joined: Wed Jun 29, 2005 5:17 am
Posts: 35
hi,

I've checked my mailbox and I have info from cron:

/bin/sh: cactiuser: command not found

mail subject: cron: cactiuser /usr/local/php/bin/php /www/apache/cacti/poller.php

In crontab I have following line */1 * * * * /usr/local/php/bin/php /www/apache/cacti/poller.php

THX for help.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 22, 2006 7:51 am 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14861
Location: MI, USA
Change your cron to push stdout and stderr to a file and then see what that file says.

TheWitness

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 22, 2006 8:25 am 
Offline

Joined: Wed Jun 29, 2005 5:17 am
Posts: 35
I do not understand what I have to make?
Could You tell me what i should do step by step.

Thanks for help


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group