|
|
| Author |
Message |
cboyd213 Cacti User
Joined: 05 Apr 2008 Posts: 54
|
Posted: Thu May 08, 2008 5:22 am Post subject: Stuck at Cacti Installation Guide |
|
|
running CentOS 5
Installed Services:
Apache 2.2.3
MySQL 5.0.22
PHP 5.1.6
rrdtool 1.2.27
net-snmp
net-snmp-devel
net-snmp-libs
net-snmp-utils
php-snmp
[NOT FOUND] RRDTool Binary Path: The path to the rrdtool binary.
[ERROR: FILE NOT FOUND]
[FOUND] PHP Binary Path: The path to your PHP binary file (may require a php recompile to get this file).
[OK: FILE FOUND]
[NOT FOUND] snmpwalk Binary Path: The path to your snmpwalk binary.
[ERROR: FILE NOT FOUND]
[NOT FOUND] snmpget Binary Path: The path to your snmpget binary.
[ERROR: FILE NOT FOUND]
[NOT FOUND] snmpbulkwalk Binary Path: The path to your snmpbulkwalk binary.
[ERROR: FILE NOT FOUND]
[NOT FOUND] snmpgetnext Binary Path: The path to your snmpgetnext binary.
[ERROR: FILE NOT FOUND]
[FOUND] Cacti Log File Path: The path to your Cacti log file.
[OK: FILE FOUND]
-----------------------------------------------------------------------------------
Now far as the RRDTool Binary Path not found
I don't see anything at /usr/local/bin/rrdtool
But
I do see a directory at /usr/local/rrdtool-1.2.27 (Inside the folder it has files called bin, include, lib, share)
Is that the right directory? (/usr/local/rrdtool-1.2.27)
now far as the SNMP paths I can't find anything on that
Any help is appreciated!
Thank You! |
|
| Back to top |
|
 |
cboyd213 Cacti User
Joined: 05 Apr 2008 Posts: 54
|
Posted: Thu May 08, 2008 6:30 am Post subject: |
|
|
OK I got all the SNMP stuff done
All I need to know is if the directory "/usr/local/rrdtool-1.2.27" is good for the rrdtool binary path
(Inside the dir. it has files called bin, include, lib, share) |
|
| Back to top |
|
 |
cboyd213 Cacti User
Joined: 05 Apr 2008 Posts: 54
|
Posted: Thu May 08, 2008 8:23 am Post subject: |
|
|
Ok Cacti is now installed
I used /usr/local/rrdtool-1.2.27/bin/rrdtool
One problem
none of the charts are showing up |
|
| Back to top |
|
 |
cboyd213 Cacti User
Joined: 05 Apr 2008 Posts: 54
|
Posted: Fri May 09, 2008 5:58 am Post subject: |
|
|
I have been trying to install Cacti for 2 days now
I'm have almost no clue where to go from here
I have 2 Problems:
1.
None of the charts are showing up
Correct me if I'm wrong but if the charts are not showing up it should be an issue with rrdtool right?
I have rrdtool install and cacti point to : /usr/bin/rrdtool for rrdtool
2.
All of the devices show Unknown
I will look into that more but not till I get problem 1 solved |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12186 Location: Muenster, Germany
|
Posted: Fri May 09, 2008 8:13 am Post subject: |
|
|
The rrdtool bin path should point to the binary itself, not to the directory. If /usr/local/rrdtool-1.2.27/bin/rrdtool is given, run /usr/local/rrdtool-1.2.27/bin/rrdtool --version from command line. If output is fine, well done.
To debug broken graphs, visit graph management and switch to debug. Post whole rrdtool graph statement
Reinhard |
|
| Back to top |
|
 |
cboyd213 Cacti User
Joined: 05 Apr 2008 Posts: 54
|
Posted: Fri May 09, 2008 8:56 am Post subject: |
|
|
Thanks for your post
I got the graphs to show up now
I ended up dumping everything and used the package manager for install.
Currently all the graphs show "nan" for loopback
Is that because under SNMP options for SNMP version is set to "Not in use"?
Also I still need to read up on adding equipment because I tried adding things in as a simple ping and they all show "Unknown" for status
The only thing up for status is the loopback |
|
| Back to top |
|
 |
cboyd213 Cacti User
Joined: 05 Apr 2008 Posts: 54
|
Posted: Fri May 09, 2008 5:35 pm Post subject: |
|
|
Everytime I go to a Devise under Devices I get an error on IE at the bottom right showing:
Line: 563
Char: 2
Error: Not implemented
Code: 0
URL: http://192.168.4.103/cacti/host.php?action=edit&id=2
I checked the host.php file and line 563 shows:
$host["snmp_username"], $host["snmp_password"],
What can I do to fix this error or do I need to? |
|
| Back to top |
|
 |
cboyd213 Cacti User
Joined: 05 Apr 2008 Posts: 54
|
Posted: Sat May 10, 2008 5:25 am Post subject: |
|
|
I have the same problem as in the following forum: http://forums.cacti.net/about14743.html
All the Devices show unkown except the loopback
I know cacti can see it because if I setup a ping for a device it shows alive
The following below I pulled from the forum mentioned above
What did TheWitness mean by "irst check that you have all the patches applied"
I really need help here PLEASE!!!!!!!!!
Quote:
-------------------------------------------------------------------------
eecee,
Follow the following procedure:
1) Goto Utilities and Select "View Poller Cache"
2) Verify that there are Data Sources for the hosts in question. If not, stop.
3) Turn logging to DEBUG
4) Open a shell as root/administrator and run "php <path_cacti>/cmd.php"
5) If you get responses, this is good. Look for host status information, like host is up, or host down skipping...
6) If you don't see bad information, then your issue would be permissions or local environment.
7) Next, as root/administrator, run "php poller.php", you should get lot's of "OK"'s.
If you failed step 2), then you likely have a database issue and should simply first check that you have all the patches applied, and if you do, reinstall your database. If running MySQL 5.x, make sure strict mode if off.
TheWitness
------------------------------------------------------------------------------------------------- |
|
| Back to top |
|
 |
cboyd213 Cacti User
Joined: 05 Apr 2008 Posts: 54
|
Posted: Sat May 10, 2008 6:03 am Post subject: |
|
|
I disabled strict mode in MySQL 5
Reinstalled Cacti and reuploaded the database
Now my graphs are showing up with data
but
My alarms still show Uknown
I did a php /var/www/cacti/cmd.php
got the followiing: 5/10/2008 06:52:48 AM - CMDPHP: Poller[0] Time: 0.1606 s, Theads: N/A, Hosts: 2
I tried the command php /var/www/cacti/poller.php
It doesn't do anything
It just skips to the next line
What does that mean? |
|
| Back to top |
|
 |
cboyd213 Cacti User
Joined: 05 Apr 2008 Posts: 54
|
Posted: Sat May 10, 2008 7:07 am Post subject: |
|
|
After putting in the command "php /var/www/cacti/poller.php" over and over and reported the following:
05/10/2008 07:58:36 AM - SYSTEM STATS: Time:1.1594 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:5 RRDsProcessed:5
OK u:0.00 s:0.00 r:1.02
OK u:0.00 s:0.00 r:1.02
OK u:0.00 s:0.00 r:1.02
OK u:0.00 s:0.00 r:1.02
OK u:0.00 s:0.00 r:1.02 |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12186 Location: Muenster, Germany
|
Posted: Sat May 10, 2008 2:56 pm Post subject: |
|
|
| cboyd213 wrote: | | Is that because under SNMP options for SNMP version is set to "Not in use"? | Yes. SNMP is required to fetch that data
Reinhard |
|
| Back to top |
|
 |
cboyd213 Cacti User
Joined: 05 Apr 2008 Posts: 54
|
Posted: Sat May 10, 2008 6:38 pm Post subject: |
|
|
Well currently the loopback shows up and charts are reporting data
All other devices I add to Cacti shows "Unkown"
If I click on the devices it shows at the top "Ping Results Host is alive" so why doesn't it ever show up? |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12186 Location: Muenster, Germany
|
Posted: Sun May 11, 2008 6:51 am Post subject: |
|
|
For SNMP devices, best practise is to use SNMP availability checks.
Reinhard |
|
| Back to top |
|
 |
cboyd213 Cacti User
Joined: 05 Apr 2008 Posts: 54
|
Posted: Sun May 11, 2008 6:56 am Post subject: |
|
|
It will show unkown even on a simple ping with SNMP off
I setup cacti on 3 different machines and all of them do the same thing. |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12186 Location: Muenster, Germany
|
Posted: Sun May 11, 2008 7:13 am Post subject: |
|
|
| cboyd213 wrote: | It will show unkown even on a simple ping with SNMP off
I setup cacti on 3 different machines and all of them do the same thing. | That does not help.
If you're going to get SNMP related data from any host (be it localhost or remote hosts), we should stick to SNMP even for localhost.
So, make sure that all hosts (even localhost) is reachable by SNMP. See first link of my sig. Verify SNMP by running the following command from cacti server against each of those hosts (even localhost)
| Code: | | snmpwalk -c <your community> -v 1 <your target> system |
Report your findings.
If this is fine, make sure that your hosts definitions (even for localhost) match those settings. Use SNMP as availabilty checking method. Verify, that "system" information is printed on the upper left corner of the screen when editing the host definition.
Report your findings as well.
Reinhard |
|
| Back to top |
|
 |
|