Graphs from different hosts look equal

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

Moderators: Developers, Moderators

Post Reply
ricardoainati
Posts: 5
Joined: Tue Oct 04, 2005 7:45 am

Graphs from different hosts look equal

Post by ricardoainati »

Hi,
I'm having a problem to collect remote data using cacti (version 0.86). The data in the graphs from different hosts (localhost and other host) look very similar. I've tried to use SNMP - Generic OID template for the other host with a random OID number and it got equal to the localhost graph. I've followed the instructions in the manual (chapter 13), like Data source type = GAUGE, Maximum Value = 300 (the common values are near 80) and a random OID.
Maybe I'm missing some configuration?
ricardoainati
Posts: 5
Joined: Tue Oct 04, 2005 7:45 am

By the way

Post by ricardoainati »

By the way, I get a "CMDPHP: Poller[0] Host[4] DS[28] WARNING: Result from SNMP not valid. Partial Result:" in debug mode.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You should have seen another message right above the one you posted. In this message, you'll see the OID that was used. Is this the correct OID? What is return, when you try to snmpwalk this OID from cli? Please post your findings
Reinhard
ricardoainati
Posts: 5
Joined: Tue Oct 04, 2005 7:45 am

Post by ricardoainati »

Ok, here's a part of the logfile in the debug mode:

10/07/2005 09:20:03 AM - CMDPHP: Poller[0] Time: 0.7716 s, Theads: N/A, Hosts: 4
10/07/2005 09:20:03 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
10/07/2005 09:20:03 AM - CMDPHP: Poller[0] Host[4] DS[28] SNMP: v1: gnome.c3sl.ufpr.br, dsname: snmp_oid, oid: 2.3.4.3.2.1, output: U
10/07/2005 09:20:03 AM - CMDPHP: Poller[0] Host[4] DS[28] WARNING: Result from SNMP not valid. Partial Result:
10/07/2005 09:20:03 AM - CMDPHP: Poller[0] Host[4] DS[24] CMD: perl /home/ainati/public_html/cacti/scripts/unix_processes.pl, output: 83
10/07/2005 09:20:03 AM - CMDPHP: Poller[0] Host[4] DS[22] CMD: perl /home/ainati/public_html/cacti/scripts/loadavg_multi.pl, output: 1min:0.00 5min:0.02 10min:0.00
10/07/2005 09:20:03 AM - CMDPHP: Poller[0] Host[4] RECACHE: Processing 2 items in the auto reindex cache for 'gnome.c3sl.ufpr.br'.
10/07/2005 09:20:03 AM - CMDPHP: Poller[0] Host[4] SNMP: Host responded to SNMP


When I try the following in the client:
snmpwalk -v 2c -c xxxxxxxx server.c3sl.ufpr.br 2.3.4.3.2.1

I get the message:

joint-iso-ccitt.3.4.3.2.1 = No more variables left in this MIB View (It is past the end of the MIB tree)

Maybe my OID is not correct? (I actually don't have much experience about OIDs)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

ricardoainati wrote:When I try the following in the client:
snmpwalk -v 2c -c xxxxxxxx server.c3sl.ufpr.br 2.3.4.3.2.1

I get the message:

joint-iso-ccitt.3.4.3.2.1 = No more variables left in this MIB View (It is past the end of the MIB tree)

Maybe my OID is not correct?
Yes, now you've got it! You'll have to find out the correct OID. Try this from cli. If and only if this returns some numbers, you may enter this OID into your data template. What data are you currently looking for? Maybe someone already found the OID?
Reinhard
ricardoainati
Posts: 5
Joined: Tue Oct 04, 2005 7:45 am

Post by ricardoainati »

Well, I used the command:

snmpwalk -On -v 2c -c public chimay number1

And the answer was:

number1 = OID: number2

Or the answer wasn't a number, for example:

number1 = Timeticks: (10) 0:00:00.10


I put some "number2" as the SNMP OIDs and a "number1" too. I tried:

snmpwalk -On -v 2c -c public chimay SystemNumUsers

And the answer, wich I also put, was:

.1.3.6.1.2.1.25.1.5 = No more variables left in this MIB View (It is past the end of the MIB tree)

I waited for some time and the results were blank graphs (Current: 0.00, Average: 0.00, Maximum: 0.00 OR Current: nan, Average: nan, Maximum: nan ).

Also I have in the debug mode a strange "U" as the output:

10/10/2005 10:30:03 AM - CMDPHP: Poller[0] Host[4] DS[32] SNMP: v1:client , dsname: snmp_oid, oid: .1.3.6.1.2.1.31, output: U
10/10/2005 10:30:03 AM - CMDPHP: Poller[0] Host[4] DS[32] WARNING: Result from SNMP not valid. Partial Result:

I think I still didn't find the correct OIDs. I already took a look at the forum and didn't find any information that fit. I need to graph as many data as possible.

*How do I get directly the OIDs from CPU usage or number of users (and the others avaiable)? By the way, with the command executed in the host:

snmpwalk -c public -v 1 localhost

I get the following:

SNMPv2-MIB::sysDescr.0 = STRING: Linux chimay 2.6.8-2-386 #1 Thu May 19 17:40:50 JST 20
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
SNMPv2-MIB::sysUpTime.0 = Timeticks: (102529973) 11 days, 20:48:19.73
SNMPv2-MIB::sysContact.0 = STRING: Root <root@localhost> (configure /etc/snmp/snmpd.loc
SNMPv2-MIB::sysName.0 = STRING: chimay
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (configure /etc/snmp/snmpd.local.conf)
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (13) 0:00:00.13
SNMPv2-MIB::sysORID.1 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.2 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.3 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.4 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.5 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.6 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.7 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.8 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.9 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module to describe generic objects for netwo
b-layers
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing IP and ICMP implementati
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORDescr.6 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.7 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.8 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.9 = STRING: The management information definitions for the SNMP
rity Model.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (8) 0:00:00.08
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (10) 0:00:00.10
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (10) 0:00:00.10
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (10) 0:00:00.10
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (10) 0:00:00.10
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (10) 0:00:00.10
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (13) 0:00:00.13
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (13) 0:00:00.13
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (13) 0:00:00.13
End of MIB
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests