Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Jun 17, 2019 2:37 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject:
PostPosted: Tue Jan 08, 2002 12:00 pm 
Offline

Joined: Mon Jan 07, 2002 7:00 pm
Posts: 4
Greetings, I have been searching this forum for some pointers on my cacti install. I do not see any updates to the rra/ or log/ directories and my graphs images show up as the image error (X). I have combed my permissions.

Any assistance would be greatly appreciated.

Thanks.

_________________
Michael P. Hale


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 08, 2002 3:50 pm 
Offline
Lead Developer

Joined: Sat Oct 13, 2001 7:00 pm
Posts: 2237
Location: Carlisle, PA
Assuming your permissions are fine (web server has has write access to those directories). The next thing to do is make sure your crontab entry is running correctly. It should look something like:

*/5 * * * * webserveruser /path/to/cmd.php

You could also try running the script manually by executing:

php /path/to/cmd.php

At the command line. For your information, 'cmd.php' is located in cacti's main directory.

-Ian


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 13, 2002 5:00 am 
Offline

Joined: Mon Dec 24, 2001 7:00 pm
Posts: 11
Location: Soest, The Netherlands
If you use a default RH7.2 installation, the php executable is compiled without mysql support. You may need to compile php and configure with '--with-mysql'.

The above applies if you get a message like :
'cannot connect to mysql database' if you run 'php <path_to_cacti>/cmd.php' manualy.

Nossie


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 22, 2002 3:41 am 
Offline

Joined: Mon Jan 07, 2002 7:00 pm
Posts: 4
Ian,

I have been gathering some more information. Fist of all, I am running on a Dual PIII FreeBSD 4.4 box. Apache, PHP, Mysql, RRDTool(latest stable release for all). I have triple checked all permissions.

When I run php ./cmd.php, I get some interesting results:
# php ./cmd.php
usage: ping [-QRadfnqrv] [-c count] [-i wait] [-l preload] [-m ttl]
[-p pattern] [-P policy] [-s packetsize] [-S src_addr] [-t timeout]
[host | [-L] [-I iface] [-T ttl] mcast-group]
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: '[email protected]' (Using password: YES)'
/usr/bin/smbstatus: not found
wc: /var/log/httpd/access_log: open: No such file or directory
cat: /proc/meminfo: No such file or directory
cat: /proc/meminfo: No such file or directory
cat: /proc/meminfo: No such file or directory
cat: /proc/meminfo: No such file or directory
cat: /proc/meminfo: No such file or directory
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: interfaces.ifTable.ifEntry.ifInOctets.2

Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: interfaces.ifTable.ifEntry.ifOutOctets.201

I have been modifying the ./scripts/*.pl files to match my actual log dirs and BSD syntax. For example, ping.pl needed the ARGVs swapped. /proc/meminfo is not an option on BSD. The SNMP is the functionality I am looking for the most. When I get it working, I will be more than happy to send you the files I have modified.

I think my post needs a new descriptor of BSD cacti user. I will open an post one of that nature.

Thanks!!!

Quote:
On 2002-01-08 15:50, raX wrote:
Assuming your permissions are fine (web server has has write access to those directories). The next thing to do is make sure your crontab entry is running correctly. It should look something like:

*/5 * * * * webserveruser /path/to/cmd.php

You could also try running the script manually by executing:

php /path/to/cmd.php

At the command line. For your information, 'cmd.php' is located in cacti's main directory.

-Ian


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 22, 2002 6:04 pm 
Offline
Lead Developer

Joined: Sat Oct 13, 2001 7:00 pm
Posts: 2237
Location: Carlisle, PA
Thank you very much for your further investigation. I guess this proves very much that my perl scripts are very Linux-centric in that sense. I used to have a FreeBSD 4.2 box lying around, but I do not anymore. That would be excellent if you would contribute your modified perl scripts. This is one area that cacti could definetely use work in.

-Ian


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 10 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