CACTI - no data in graphs

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

Moderators: Developers, Moderators

michasio
Posts: 36
Joined: Wed Jun 29, 2005 5:17 am

CACTI - no data in graphs

Post by michasio »

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
michasio
Posts: 36
Joined: Wed Jun 29, 2005 5:17 am

Post by michasio »

Certainly I have added line to crontab and I've checked all paths.
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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 dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
michasio
Posts: 36
Joined: Wed Jun 29, 2005 5:17 am

Post by michasio »

Hi again,

When I start cmd.php from console I see following info:

Code: Select all

 "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: Select all

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
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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 dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
michasio
Posts: 36
Joined: Wed Jun 29, 2005 5:17 am

Post by michasio »

but where should I try to find, change permission.
I typed: chmod 777 -R /path_to_cacti/
Is this correct???
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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 dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
michasio
Posts: 36
Joined: Wed Jun 29, 2005 5:17 am

Post by michasio »

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.
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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 dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
michasio
Posts: 36
Joined: Wed Jun 29, 2005 5:17 am

Post by michasio »

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
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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 dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
neurotox
Cacti User
Posts: 63
Joined: Mon Apr 17, 2006 3:28 pm
Location: Chateauguay, Quebec

Post by neurotox »

You have no graph are all your graph are empty?

have you check if your rrd file are updated every 5 minutes?
michasio
Posts: 36
Joined: Wed Jun 29, 2005 5:17 am

Post by michasio »

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.
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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 dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
michasio
Posts: 36
Joined: Wed Jun 29, 2005 5:17 am

Post by michasio »

I do not understand what I have to make?
Could You tell me what i should do step by step.

Thanks for help
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests