Operating System - Linux
1751796 Members
4805 Online
108781 Solutions
New Discussion юеВ

Re: Cacti - config problem

 
SOLVED
Go to solution
Piotr Kirklewski
Super Advisor

Re: Cacti - config problem

/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cacti";
$database_password = "111111";
$database_port = "3306";
?>

Now works :)

How about those php errors ?
Jesus is the King
Court Campbell
Honored Contributor

Re: Cacti - config problem

you can remove these

extension=mysql.so
extension=gd.so

this is not debian, this is fedora.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Piotr Kirklewski
Super Advisor

Re: Cacti - config problem

Hi again
I'm logging to cacti - but don't have any graphs displayed.

If I click the graph management and Turn On Graph Debug Mode then I have:

RRDTool Says:

ERROR: openning '/usr/share/cacti/rra/localhost_load_1min_5.rrd': No such file or directory

Where is the problem ?

Cheers

Jesus is the King
Court Campbell
Honored Contributor

Re: Cacti - config problem

what is the output in /usr/share/cacti/log/cacti.log?
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Piotr Kirklewski
Super Advisor

Re: Cacti - config problem

from version"
06/19/2007 08:16:02 PM - CMDPHP: Poller[0] FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
06/19/2007 08:16:02 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed "select cacti from version"
06/19/2007 08:16:39 PM - CMDPHP: Poller[0] FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
06/19/2007 08:16:39 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed "select cacti from version"

The last entry is yesterday at 08.16 when I've changed the dp.php.

Cheers

Jesus is the King
Court Campbell
Honored Contributor

Re: Cacti - config problem

please post te output from

# rpm -q rrdtool net-snmp
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Piotr Kirklewski
Super Advisor

Re: Cacti - config problem

[root@jimlaptop ~]# rpm -q rrdtool net-snmp
rrdtool-1.2.23-5.fc7
net-snmp-5.4-13.fc7

and :

[root@jimlaptop ~]# snmpwalk -v 1 -c public localhost
Timeout: No Response from localhost

Cherers
Jesus is the King
Piotr Kirklewski
Super Advisor

Re: Cacti - config problem

This command wors for now - but steel no graphs in cacti:

#snmpwalk -v 1 -c public localhost

SNMPv2-MIB::sysDescr.0 = STRING: Linux jimlaptop.marketrix.local 2.6.21-1.3228.fc7 #1 SMP Tue Jun 12 15:37:31 EDT 2007 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (8859) 0:01:28.59
SNMPv2-MIB::sysContact.0 = STRING: Root (configure /etc/snmp/snmp.local.conf)
SNMPv2-MIB::sysName.0 = STRING: jimlaptop.marketrix.local
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf)
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (9) 0:00:00.09
SNMPv2-MIB::sysORID.1 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.2 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.3 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORID.4 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.5 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.6 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.7 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.8 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORDescr.1 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.3 = STRING: The management information definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.6 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.7 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORDescr.8 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (8) 0:00:00.08
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (8) 0:00:00.08
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (8) 0:00:00.08
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (9) 0:00:00.09
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (9) 0:00:00.09
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (9) 0:00:00.09
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (9) 0:00:00.09
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (9) 0:00:00.09
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (337663) 0:56:16.63
End of MIB
Jesus is the King
Piotr Kirklewski
Super Advisor

Re: Cacti - config problem

I've got two pullers in the system I'm not sure which one to use ?

*/5 * * * * cacti php /usr/share/cacti/lib/poller.php > /dev/null/ 2>&1

*/5 * * * * cacti php /usr/share/cacti/poller.php > /dev/null/ 2>&1

Jesus is the King
Court Campbell
Honored Contributor

Re: Cacti - config problem

login to cacti as admin. then go to settings. then click on the poller tab. take a screen shot and post it. Note: if the poller type is cmd.php then you do not need the cron entries.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"