Stuck at Cacti Installation Guide

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

cboyd213
Cacti User
Posts: 54
Joined: Sat Apr 05, 2008 12:15 am

Post by cboyd213 »

When doing the following command:
snmpwalk -c crazycharter -v 1 192.168.4.1 system

I get back: No Response from 192.168.4.1

But using the same information in Cacti when adding the device
It shows at the top:
Peplink Router (192.168.4.1)
SNMP Information
System: PePLink Balance Series
Uptime: 18557 (0 days, 0 hours, 3 minutes)
Hostname: Cacti
Location: PePLink
Contact: not specified

On the main devices screen it shows unkown
Does this information help?
cboyd213
Cacti User
Posts: 54
Joined: Sat Apr 05, 2008 12:15 am

Post by cboyd213 »

I changed my peplink to SNMP v1 and got the follwing data from command:
snmpwalk -c crazycharter -v 1 192.168.4.1 system

[root@monitoring ~]# snmpwalk -c crazycharter -v 1 192.168.4.1 system
SNMPv2-MIB::sysDescr.0 = STRING: PePLink Balance Series
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (28129) 0:04:41.29
SNMPv2-MIB::sysContact.0 = STRING: not specified
SNMPv2-MIB::sysName.0 = STRING: Cacti
SNMPv2-MIB::sysLocation.0 = STRING: PePLink
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (21) 0:00:00.21
SNMPv2-MIB::sysORID.1 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.2 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.3 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.4 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.5 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORID.6 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.7 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.8 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.9 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.2 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.3 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.5 = STRING: The management information definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORDescr.6 = STRING: The MIB module to describe generic objects for network interface sub-layers
SNMPv2-MIB::sysORDescr.7 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.8 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.9 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (3) 0:00:00.03
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (3) 0:00:00.03
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (4) 0:00:00.04
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (4) 0:00:00.04
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (4) 0:00:00.04
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (5) 0:00:00.05
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (21) 0:00:00.21
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (21) 0:00:00.21
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (21) 0:00:00.21
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

cboyd213 wrote:When doing the following command:
snmpwalk -c crazycharter -v 1 192.168.4.1 system

I get back: No Response from 192.168.4.1
Weird. Perhaps the MIB files are not installed
But using the same information in Cacti when adding the device
It shows at the top:
Peplink Router (192.168.4.1)
SNMP Information
System: PePLink Balance Series
Uptime: 18557 (0 days, 0 hours, 3 minutes)
Hostname: Cacti
Location: PePLink
Contact: not specified
That's fine. So don't bother with the above.
On the main devices screen it shows unkown
This is normal, if no graph has been created yet. Did you make sure, that the poller is called from crontab every 5 minutes? Have a look at cacti.log to verify. If the poller is running, please "Create Graphs for this Host" and select some.
BTB: which host template is associated with that host?
Reinhard
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

cboyd213 wrote:I changed my peplink to SNMP v1 and got the follwing data from command:
snmpwalk -c crazycharter -v 1 192.168.4.1 system
Pardon me. I used V1 only to make sure it works. Most devices, even if configured for V2c will answer to V1. With the exception for your's. You may retry the snmpwalk using V2c and configure your device again for V2c. That should work with cacti, if the device is configured for V2 (cacti calls V2c to be V2).
Reinhard
cboyd213
Cacti User
Posts: 54
Joined: Sat Apr 05, 2008 12:15 am

Post by cboyd213 »

For my peplink: (Not sure if I can use those graphs)
Graph Template Name Status
1) Cisco - CPU Usage Not Being Graphed
2) Host MIB - Logged in Users Not Being Graphed
3) SNMP - Generic OID Template Not Being Graphed

For the loopback (The graphs look fine for the loopback/All data is there)
Associated Graph Templates
Graph Template Name Status
1) Linux - Memory Usage Is Being Graphed (Edit)
2) Unix - Load Average Is Being Graphed (Edit)
3) Unix - Logged in Users Is Being Graphed (Edit)
4) Unix - Processes Is Being Graphed (Edit)
cboyd213
Cacti User
Posts: 54
Joined: Sat Apr 05, 2008 12:15 am

Post by cboyd213 »

Also there is my report for V2

[root@monitoring ~]# snmpwalk -c crazycharter -v 2c 192.168.4.1 system
SNMPv2-MIB::sysDescr.0 = STRING: PePLink Balance Series
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (3166) 0:00:31.66
SNMPv2-MIB::sysContact.0 = STRING: not specified
SNMPv2-MIB::sysName.0 = STRING: Cacti
SNMPv2-MIB::sysLocation.0 = STRING: PePLink
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (5) 0:00:00.05
SNMPv2-MIB::sysORID.1 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.2 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.3 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.4 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.5 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORID.6 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.7 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.8 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.9 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.2 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.3 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.5 = STRING: The management information definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORDescr.6 = STRING: The MIB module to describe generic objects for network interface sub-layers
SNMPv2-MIB::sysORDescr.7 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.8 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.9 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (2) 0:00:00.02
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (2) 0:00:00.02
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (2) 0:00:00.02
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (2) 0:00:00.02
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (3) 0:00:00.03
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (4) 0:00:00.04
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (5) 0:00:00.05
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (5) 0:00:00.05
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (5) 0:00:00.05
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

For the moment, let's skip the localhost and stick to the peplink. Delete the three graph templates from the host. Associate the host with the "ucd/net SNMP Host Template" and post results/a screenshot.
And run

Code: Select all

snmpwalk -c crazycharter -v 2c 192.168.4.1 interface
BTB: it would be better not to post the real community string for security reasons
Reinhard
cboyd213
Cacti User
Posts: 54
Joined: Sat Apr 05, 2008 12:15 am

Post by cboyd213 »

[root@monitoring ~]# snmpwalk -c crazycharter -v 2c 192.168.4.1 interface
IF-MIB::ifNumber.0 = INTEGER: 4
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifDescr.1 = STRING: LAN
IF-MIB::ifDescr.2 = STRING: WAN1
IF-MIB::ifDescr.3 = STRING: WAN2
IF-MIB::ifDescr.4 = STRING: WAN3
IF-MIB::ifType.1 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.4 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifMtu.1 = INTEGER: 1500
IF-MIB::ifMtu.2 = INTEGER: 1440
IF-MIB::ifMtu.3 = INTEGER: 1440
IF-MIB::ifMtu.4 = INTEGER: 1440
IF-MIB::ifSpeed.1 = Gauge32: 10000000
IF-MIB::ifSpeed.2 = Gauge32: 10000000
IF-MIB::ifSpeed.3 = Gauge32: 10000000
IF-MIB::ifSpeed.4 = Gauge32: 10000000
IF-MIB::ifPhysAddress.1 = STRING: 0:11:6e:0:e1:b8
IF-MIB::ifPhysAddress.2 = STRING: 0:11:6e:0:e1:b9
IF-MIB::ifPhysAddress.3 = STRING: 0:11:6e:0:e1:ba
IF-MIB::ifPhysAddress.4 = STRING: 0:11:6e:0:e1:bb
IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
IF-MIB::ifAdminStatus.2 = INTEGER: up(1)
IF-MIB::ifAdminStatus.3 = INTEGER: down(2)
IF-MIB::ifAdminStatus.4 = INTEGER: down(2)
IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifOperStatus.2 = INTEGER: up(1)
IF-MIB::ifOperStatus.3 = INTEGER: down(2)
IF-MIB::ifOperStatus.4 = INTEGER: down(2)
IF-MIB::ifInOctets.1 = Counter32: 2700307245
IF-MIB::ifInOctets.2 = Counter32: 2447043143
IF-MIB::ifInOctets.3 = Counter32: 0
IF-MIB::ifInOctets.4 = Counter32: 0
IF-MIB::ifInUcastPkts.1 = Counter32: 15432686
IF-MIB::ifInUcastPkts.2 = Counter32: 15055037
IF-MIB::ifInUcastPkts.3 = Counter32: 0
IF-MIB::ifInUcastPkts.4 = Counter32: 0
IF-MIB::ifInDiscards.1 = Counter32: 0
IF-MIB::ifInDiscards.2 = Counter32: 0
IF-MIB::ifInDiscards.3 = Counter32: 0
IF-MIB::ifInDiscards.4 = Counter32: 0
IF-MIB::ifInErrors.1 = Counter32: 0
IF-MIB::ifInErrors.2 = Counter32: 0
IF-MIB::ifInErrors.3 = Counter32: 0
IF-MIB::ifInErrors.4 = Counter32: 0
IF-MIB::ifOutOctets.1 = Counter32: 3485472811
IF-MIB::ifOutOctets.2 = Counter32: 1601280575
IF-MIB::ifOutOctets.3 = Counter32: 0
IF-MIB::ifOutOctets.4 = Counter32: 0
IF-MIB::ifOutUcastPkts.1 = Counter32: 16294672
IF-MIB::ifOutUcastPkts.2 = Counter32: 13485989
IF-MIB::ifOutUcastPkts.3 = Counter32: 0
IF-MIB::ifOutUcastPkts.4 = Counter32: 0
IF-MIB::ifOutDiscards.1 = Counter32: 0
IF-MIB::ifOutDiscards.2 = Counter32: 0
IF-MIB::ifOutDiscards.3 = Counter32: 0
IF-MIB::ifOutDiscards.4 = Counter32: 0
IF-MIB::ifOutErrors.1 = Counter32: 0
IF-MIB::ifOutErrors.2 = Counter32: 0
IF-MIB::ifOutErrors.3 = Counter32: 0
IF-MIB::ifOutErrors.4 = Counter32: 0
IF-MIB::ifOutQLen.1 = Gauge32: 0
IF-MIB::ifOutQLen.2 = Gauge32: 0
IF-MIB::ifOutQLen.3 = Gauge32: 0
IF-MIB::ifOutQLen.4 = Gauge32: 0
IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zexxxxxxxx
IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zexxxxxxxx
IF-MIB::ifSpecific.3 = OID: SNMPv2-SMI::zexxxxxxxx
IF-MIB::ifSpecific.4 = OID: SNMPv2-SMI::zexxxxxxxx
cboyd213
Cacti User
Posts: 54
Joined: Sat Apr 05, 2008 12:15 am

Post by cboyd213 »

Image
cboyd213
Cacti User
Posts: 54
Joined: Sat Apr 05, 2008 12:15 am

Post by cboyd213 »

Anybody got any ideas why the devices show unkown
cboyd213
Cacti User
Posts: 54
Joined: Sat Apr 05, 2008 12:15 am

Post by cboyd213 »

Could these errors cause the unkown problem?

05/12/2008 02:35:02 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (7, 'proc', '2008-05-12 02:35:02', '131')'
05/12/2008 02:35:02 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (6, 'users', '2008-05-12 02:35:02', '2')'
05/12/2008 02:35:02 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (5, '', '2008-05-12 02:35:02', '1min:0.05 5min:0.06 10min:0.11')'
05/12/2008 02:35:02 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (4, 'mem_swap', '2008-05-12 02:35:02', '2031608')'
05/12/2008 02:35:02 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (3, 'mem_buffers', '2008-05-12 02:35:02', '35412')'
cboyd213
Cacti User
Posts: 54
Joined: Sat Apr 05, 2008 12:15 am

Post by cboyd213 »

I changed my poller from cmd.php to spine
For the first time I got a device showing up
My Peplink router is up
The others setup for ping is not working for some reason
cboyd213
Cacti User
Posts: 54
Joined: Sat Apr 05, 2008 12:15 am

Post by cboyd213 »

05/12/2008 11:27:53 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT name, file, function FROM plugin_hooks WHERE status = 1 AND hook = 'config_arrays'"
05/12/2008 11:27:53 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "SELECT name, file, function FROM plugin_hooks WHERE status = 1 AND hook = 'config_arrays'

My Peplink is up but nothing is graphing for it
I'm using the following graphs:
Graph Template Name Status
1) ucd/net - CPU Usage Not Being Graphed
2) ucd/net - Load Average Not Being Graphed
3) ucd/net - Memory Usage Not Being Graphed

Are those graphs above wrong?
In short what does those errors mean above?

Thanks for your help
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please change "Downed Device Detection" to SNMP only and retry
Reinhard
cboyd213
Cacti User
Posts: 54
Joined: Sat Apr 05, 2008 12:15 am

Post by cboyd213 »

It is already set to SMMP only
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests