hp procurve 1810 interface graph problem

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
feskens
Posts: 10
Joined: Wed Apr 01, 2009 4:57 am

hp procurve 1810 interface graph problem

Post by feskens »

Hi all,

Last week I installed some HP procurve 1810 switches with the latest software (1.17) I have multiple switches from different vendors like extreme, dell cisco etc which all works fine.

Now the problem with the HP switches is that the graphs being built are incorrect. The graphs of the first 3 ports are all similar, then 2 ports (which are connected) with no graphing at all (0.00) and the 2 ports with again the same graph (a few 'k' traffic which has to be much more). So it isnt right at all.

When I watch in de poller cache I see the mibs being polled. These mibs are right because when I walk them manual I see:

cacti:/usr/share/cacti/rra# snmpwalk -v1 -c snmp 10.0.2.5 .1.3.6.1.2.1.2.2.1.10.1
IF-MIB::ifInOctets.1 = Counter32: 5849810
cacti:/usr/share/cacti/rra# snmpwalk -v1 -c snmp 10.0.2.5 .1.3.6.1.2.1.2.2.1.10.2
IF-MIB::ifInOctets.2 = Counter32: 0
cacti:/usr/share/cacti/rra# snmpwalk -v1 -c snmp 10.0.2.5 .1.3.6.1.2.1.2.2.1.10.3
IF-MIB::ifInOctets.3 = Counter32: 0
cacti:/usr/share/cacti/rra# snmpwalk -v1 -c snmp 10.0.2.5 .1.3.6.1.2.1.2.2.1.10.4
IF-MIB::ifInOctets.4 = Counter32: 977725890

The graphs are 32bits so the known hp procurve 64bits issue isn't relevant.

I hope someone can help me !

Regards,

Frank.
pauls
Posts: 4
Joined: Mon Apr 26, 2010 6:22 am

Post by pauls »

Hi,

I cant help you but i just want to say i have problems with this type too.

regards, Paul
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please see 2nd link of my sig to find some helpful debugging hints. It would be worth to know, whether cacti poller returns valid results when polling those OIDs
R.
pauls
Posts: 4
Joined: Mon Apr 26, 2010 6:22 am

Post by pauls »

I did some debug:

The cacti poller has the following output:
04/26/2010 07:25:00 PM - CMDPHP: Poller[0] Host[11] DS[25] SNMP: v2: 192.168.2.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.24, output: 2147483647
04/26/2010 07:25:00 PM - CMDPHP: Poller[0] Host[11] DS[25] SNMP: v2: 192.168.2.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.24, output: 311451270

But if i look in the rrd file:

traffic_in traffic_out

1272216600: 4.4222259136e+003 0.0000000000e+000
1272216900: 4.3106840864e+003 0.0000000000e+000
1272217200: 1.2714776667e+004 0.0000000000e+000
1272217500: 3.9842466667e+003 0.0000000000e+000
1272217800: 4.0149566667e+003 0.0000000000e+000
1272218100: 3.8241700000e+003 0.0000000000e+000
1272218400: 4.1501633333e+003 0.0000000000e+000
1272218700: 1.2030550000e+004 0.0000000000e+000
1272219000: 4.8441533333e+003 0.0000000000e+000
1272219300: 7.0077200000e+003 0.0000000000e+000
1272219600: 1.4491013333e+004 0.0000000000e+000
1272219900: 1.6677216000e+005 0.0000000000e+000
1272220200: 1.6553107333e+005 0.0000000000e+000
1272220500: 1.2992193333e+004 0.0000000000e+000
1272220800: 4.4991300000e+003 0.0000000000e+000
1272221100: 4.1132933333e+003 0.0000000000e+000
1272221400: 4.1600800000e+003 0.0000000000e+000
1272221700: 4.8916622517e+003 0.0000000000e+000
1272222000: 4.6108944150e+003 0.0000000000e+000
1272222300: 5.2057966667e+003 0.0000000000e+000
1272222600: 1.2325713333e+004 0.0000000000e+000
1272222900: 4.7895900000e+003 0.0000000000e+000
1272223200: 4.4807200000e+003 0.0000000000e+000
1272223500: 4.1085433333e+003 0.0000000000e+000
1272223800: 4.5799633333e+003 0.0000000000e+000

And the rrtool info has the following output:

C:\inetpub\wwwroot\cacti\rra\11>c:\rrdtool\rrdtool.exe info 25.rrd
filename = "25.rrd"
rrd_version = "0003"
step = 300
last_update = 1272302700
ds[traffic_in].type = "COUNTER"
ds[traffic_in].minimal_heartbeat = 600
ds[traffic_in].min = 0.0000000000e+000
ds[traffic_in].max = NaN
ds[traffic_in].last_ds = "2147483647"
ds[traffic_in].value = 0.0000000000e+000
ds[traffic_in].unknown_sec = 0
ds[traffic_out].type = "COUNTER"
ds[traffic_out].minimal_heartbeat = 600
ds[traffic_out].min = 0.0000000000e+000
ds[traffic_out].max = NaN
ds[traffic_out].last_ds = "311451270"
ds[traffic_out].value = 0.0000000000e+000
pauls
Posts: 4
Joined: Mon Apr 26, 2010 6:22 am

Post by pauls »

now i think i see the problem.

04/26/2010 07:40:00 PM - CMDPHP: Poller[0] Host[11] DS[25] SNMP: v2: 192.168.2.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.24, output: 2147483647
04/26/2010 07:30:01 PM - CMDPHP: Poller[0] Host[11] DS[25] SNMP: v2: 192.168.2.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.24, output: 2147483647
04/26/2010 07:25:00 PM - CMDPHP: Poller[0] Host[11] DS[25] SNMP: v2: 192.168.2.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.24, output: 2147483647

The output value doesnt change over time...
feskens
Posts: 10
Joined: Wed Apr 01, 2009 4:57 am

Post by feskens »

Im using spine. This gives the following output for the 1810 device:

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2010.04.27 09:20:57 =~=~=~=~=~=~=~=~=~=~=~=
/usr/sbin/spine --verbosity=5 130 130
SPINE: Using spine config file [/etc/cacti/spine.conf]
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'path_webroot''
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'path_cactilog''
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: The path_php_server variable is /usr/share/cacti/script_server.php
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: The path_cactilog variable is /var/log/cacti/cacti.log
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'log_destination''
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: The log_destination variable is 1 (FILE)
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'path_php_binary''
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: The path_php variable is /usr/bin/php
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'availability_method''
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: The availability_method variable is 2
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'ping_recovery_count''
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: The ping_recovery_count variable is 3
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'ping_failure_count''
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: The ping_failure_count variable is 2
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'ping_method''
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: The ping_method variable is 2
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'ping_retries''
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: The ping_retries variable is 1
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'ping_timeout''
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: The ping_timeout variable is 400
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'log_perror''
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: The log_perror variable is 1
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'log_pwarn''
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: The log_pwarn variable is 0
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'log_pstats''
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: The log_pstats variable is 0
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'max_threads''
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: The threads variable is 1
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'poller_interval''
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: The polling interval is 300 seconds
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'concurrent_processes''
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: The number of concurrent processes is 1
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'script_timeout''
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: The script timeout is 50
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'php_servers''
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: The number of php script servers to run is 1
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT action FROM poller_item WHERE action=2 AND host_id BETWEEN 130 AND 130 LIMIT 1'
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: StartHost='130', EndHost='130', TotalPHPScripts='0'
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: The PHP Script Server is Not Required
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'max_get_size''
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: The Maximum SNMP OID Get Size is 10
04/27/2010 09:12:30 AM - SPINE: Poller[0] Version 0.8.7b starting
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: MySQL is Thread Safe!
04/27/2010 09:12:30 AM - SPINE: Poller[0] SPINE: Initializing Net-SNMP API
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SNMP Header Version is 5.4.1
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SNMP Library Version is 5.4.1
04/27/2010 09:12:30 AM - SPINE: Poller[0] SPINE: Initializing PHP Script Server(s)
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT id FROM host WHERE disabled='' AND id BETWEEN 130 AND 130 ORDER BY id'
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: Initial Value of Active Threads is 0
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: Valid Thread to be Created
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: In Poller, About to Start Polling of Host
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: The Value of Active Threads is 1
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT snmp_port, count(snmp_port) FROM poller_item WHERE host_id=0 AND rrd_next_step < 0 GROUP BY snmp_port'
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT action, hostname, snmp_community, snmp_version, snmp_username, snmp_password, rrd_name, rrd_path, arg1, arg2, arg3, local_data_id, rrd_num, snmp_port, snmp_timeout, snmp_auth_protocol, snmp_priv_passphrase, snmp_priv_protocol, snmp_context FROM poller_item WHERE host_id=0 and rrd_next_step <=0 ORDER by snmp_port'
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'UPDATE poller_item SET rrd_next_step=rrd_next_step-300 WHERE host_id=0'
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'UPDATE poller_item SET rrd_next_step=rrd_step-300 WHERE rrd_next_step < 0 and host_id=0'
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[0] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: The Value of Active Threads is 0
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: Valid Thread to be Created
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: In Poller, About to Start Polling of Host
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: The Value of Active Threads is 1
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT id, hostname, snmp_community, snmp_version, snmp_username, snmp_password, snmp_auth_protocol, snmp_priv_passphrase, snmp_priv_protocol, snmp_context, snmp_port, snmp_timeout, max_oids, availability_method, ping_method, ping_port, ping_timeout, ping_retries, status, status_event_count, status_fail_date, status_rec_date, status_last_error, min_time, max_time, cur_time, avg_time, total_polls, failed_polls, availability FROM host WHERE id=130'
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] SNMP Result: Host responded to SNMP
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'UPDATE host SET status='3', status_event_count='0', status_fail_date='0000-00-00 00:00:00', status_rec_date='0000-00-00 00:00:00', status_last_error='', min_time='5.723950', max_time='146.965030', cur_time='6.762980', avg_time='10.977024', total_polls='237', failed_polls='0', availability='100.0000' WHERE id='130''
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT data_query_id, action, op, assert_value, arg1 FROM poller_reindex WHERE host_id=130'
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] RECACHE: Processing 1 items in the auto reindex cache for '10.0.2.5'
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'UPDATE poller_reindex SET assert_value='102539900' WHERE host_id='130' AND data_query_id='1' and arg1='.1.3.6.1.2.1.1.3.0''
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT snmp_port, count(snmp_port) FROM poller_item WHERE host_id=130 AND rrd_next_step < 0 GROUP BY snmp_port'
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'SELECT action, hostname, snmp_community, snmp_version, snmp_username, snmp_password, rrd_name, rrd_path, arg1, arg2, arg3, local_data_id, rrd_num, snmp_port, snmp_timeout, snmp_auth_protocol, snmp_priv_passphrase, snmp_priv_protocol, snmp_context FROM poller_item WHERE host_id=130 and rrd_next_step <=0 ORDER by snmp_port'
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'UPDATE poller_item SET rrd_next_step=rrd_next_step-300 WHERE host_id=130'
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'UPDATE poller_item SET rrd_next_step=rrd_step-300 WHERE rrd_next_step < 0 and host_id=130'
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DS[2599] SNMP: v2: 10.0.2.5, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, value: 6544362
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DS[2599] SNMP: v2: 10.0.2.5, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, value: 20334844
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DS[2600] SNMP: v2: 10.0.2.5, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, value: 6544362
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DS[2600] SNMP: v2: 10.0.2.5, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, value: 20334844
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DS[2601] SNMP: v2: 10.0.2.5, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.3, value: 6544362
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DS[2601] SNMP: v2: 10.0.2.5, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.3, value: 20334844
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DS[2602] SNMP: v2: 10.0.2.5, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.4, value: 6544362
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DS[2602] SNMP: v2: 10.0.2.5, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.4, value: 20334844
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DS[2603] SNMP: v2: 10.0.2.5, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.5, value: 6544362
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DS[2603] SNMP: v2: 10.0.2.5, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.5, value: 20334844
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DS[2604] SNMP: v2: 10.0.2.5, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.6, value: 20334844
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DS[2604] SNMP: v2: 10.0.2.5, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.6, value: 6544362
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'INSERT INTO poller_output (local_data_id, rrd_name, time, output) VALUES (2599,'traffic_in','2010-04-27 09:12:30','6544362'),(2599,'traffic_out','2010-04-27 09:12:30','20334844'),(2600,'traffic_in','2010-04-27 09:12:30','6544362'),(2600,'traffic_out','2010-04-27 09:12:30','20334844'),(2601,'traffic_in','2010-04-27 09:12:30','6544362'),(2601,'traffic_out','2010-04-27 09:12:30','20334844'),(2602,'traffic_in','2010-04-27 09:12:30','6544362'),(2602,'traffic_out','2010-04-27 09:12:30','20334844'),(2603,'traffic_in','2010-04-27 09:12:30','6544362'),(2603,'traffic_out','2010-04-27 09:12:30','20334844'),(2604,'traffic_out','2010-04-27 09:12:30','20334844'),(2604,'traffic_in','2010-04-27 09:12:30','6544362')'
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: The Value of Active Threads is 0
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'replace into settings (name,value) values ('date',NOW())'
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: SQL:'insert into poller_time (poller_id, start_time, end_time) values (0, NOW(), NOW())'
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: Thread Cleanup Complete
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: PHP Script Server Pipes Closed
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: Allocated Variable Memory Freed
04/27/2010 09:12:30 AM - SPINE: Poller[0] SPINE: Net-SNMP API Shutdown Completed
04/27/2010 09:12:30 AM - SPINE: Poller[0] DEBUG: MYSQL Free & Close Completed
04/27/2010 09:12:30 AM - SPINE: Poller[0] Time: 0.1715 s, Threads: 1, Hosts: 2
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

When querying the device manually, do you receive similar data?
R.
MarkC
Posts: 2
Joined: Tue Apr 27, 2010 2:31 pm

HP Procurve 1810 / more diagnostics

Post by MarkC »

I'm think I am having the same issue. New HP 1810G-24, P1.17 (latest firmware). Cacti/Spine is showing '0' for all the interface bit counts.

I do have 3 network interfaces in the monitoring host, and this is the first switch not on 'eth0'.

More details:-

- snmpwalk from command line is returning reasonably sensible data.
# snmpwalk -Os -c public -v 2c -On 192.168.65.2 .1.3.6.1.2.1.2.2.1.10
.1.3.6.1.2.1.2.2.1.10.1 = Counter32: 0
.1.3.6.1.2.1.2.2.1.10.2 = Counter32: 2147483647
.1.3.6.1.2.1.2.2.1.10.3 = Counter32: 0
.1.3.6.1.2.1.2.2.1.10.4 = Counter32: 0
.1.3.6.1.2.1.2.2.1.10.5 = Counter32: 135667526
.1.3.6.1.2.1.2.2.1.10.6 = Counter32: 280902517
.1.3.6.1.2.1.2.2.1.10.7 = Counter32: 387696
.1.3.6.1.2.1.2.2.1.10.8 = Counter32: 10940830
.1.3.6.1.2.1.2.2.1.10.9 = Counter32: 0
snip
- spine from command line is returning zeros.
# spine -R --snmponly -S -f 79 -l 79 | grep in | sort
Host[79] DS[567] SNMP: v2: 192.168.65.2, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, value: 0
Host[79] DS[568] SNMP: v2: 192.168.65.2, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, value: 0
Host[79] DS[569] SNMP: v2: 192.168.65.2, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.3, value: 0
Host[79] DS[570] SNMP: v2: 192.168.65.2, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.4, value: 0
Host[79] DS[571] SNMP: v2: 192.168.65.2, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.5, value: 0
Host[79] DS[572] SNMP: v2: 192.168.65.2, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.6, value: 0
Host[79] DS[573] SNMP: v2: 192.168.65.2, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.7, value: 0
Host[79] DS[574] SNMP: v2: 192.168.65.2, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.8, value: 0
Host[79] DS[575] SNMP: v2: 192.168.65.2, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.9, value: 0
snip
Cacti is setup on Centos 5.4 (64bit).
Spine is 0.8.7c (but am about to compile and try 0.8.7e).
net-snmp-libs-5.3.2.2-7.el5_4.2

Update: Same behaviour with spine 0.8.7e

Not sure where to go from here, so any help very gratefully received!
feskens
Posts: 10
Joined: Wed Apr 01, 2009 4:57 am

Post by feskens »

when I query the device manually I get reasonable data to:

cacti:/usr/share/cacti/rra# snmpwalk -v1 -c snmp 10.0.2.5 .1.3.6.1.2.1.2.2.1.10.1
IF-MIB::ifInOctets.1 = Counter32: 5849810
cacti:/usr/share/cacti/rra# snmpwalk -v1 -c snmp 10.0.2.5 .1.3.6.1.2.1.2.2.1.10.2
IF-MIB::ifInOctets.2 = Counter32: 0
cacti:/usr/share/cacti/rra# snmpwalk -v1 -c snmp 10.0.2.5 .1.3.6.1.2.1.2.2.1.10.3
IF-MIB::ifInOctets.3 = Counter32: 0
cacti:/usr/share/cacti/rra# snmpwalk -v1 -c snmp 10.0.2.5 .1.3.6.1.2.1.2.2.1.10.4
IF-MIB::ifInOctets.4 = Counter32: 977725890

but spine gives:

04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DS[2599] SNMP: v2: 10.0.2.5, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, value: 6544362
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DS[2599] SNMP: v2: 10.0.2.5, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, value: 20334844
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DS[2600] SNMP: v2: 10.0.2.5, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, value: 6544362
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DS[2600] SNMP: v2: 10.0.2.5, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, value: 20334844
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DS[2601] SNMP: v2: 10.0.2.5, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.3, value: 6544362
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DS[2601] SNMP: v2: 10.0.2.5, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.3, value: 20334844
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DS[2602] SNMP: v2: 10.0.2.5, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.4, value: 6544362
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DS[2602] SNMP: v2: 10.0.2.5, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.4, value: 20334844
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DS[2603] SNMP: v2: 10.0.2.5, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.5, value: 6544362
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DS[2603] SNMP: v2: 10.0.2.5, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.5, value: 20334844
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DS[2604] SNMP: v2: 10.0.2.5, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.6, value: 20334844
04/27/2010 09:12:30 AM - SPINE: Poller[0] Host[130] DS[2604] SNMP: v2: 10.0.2.5, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.6, value: 6544362

so something goes wrong there...
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please try latest spine from SVN 087. There have been some fixes lately
R.
MarkC
Posts: 2
Joined: Tue Apr 27, 2010 2:31 pm

Post by MarkC »

gandalf wrote:Please try latest spine from SVN 087. There have been some fixes lately
R.
Hi Gandalf,

Thanks for the pointer, but I'm having some trouble getting it to work...

First issue was with poller.c - poll_host() appears to have been renamed poll_device() in poller.c, but child() hadn't been updated. Changing this seems to have at least made it compile, but I get a SEGV when trying to start it. GDB appears to show it dying when reading in options.

This is svn-spine from the main branch acquired:

Code: Select all

svn checkout svn://svn.cacti.net/cacti/spine
cd spine/branches/main
./bootstrap
./configure
./make
./spine -R
SPINE: Using spine config file [/etc/spine.conf]
Success/289053904/2010 03:18:, SPINE: Poller[0] FATAL: Spine Encountered a Segmentation Fault (Spine parent)

Code: Select all

(gdb) set args -R
(gdb) run
Starting program: /root/spine/snv-05_05_2010/spine -R
[Thread debugging using libthread_db enabled]
SPINE: Using spine config file [/etc/spine.conf]
[New Thread 0x2ad0f6701260 (LWP 10817)]
[New Thread 0x41773940 (LWP 10820)]
[Thread 0x41773940 (LWP 10820) exited]

Program received signal SIGSEGV, Segmentation fault.
0x0000003e6fa80490 in wcslen () from /lib64/libc.so.6
(gdb) bt
#0  0x0000003e6fa80490 in wcslen () from /lib64/libc.so.6
#1  0x0000003e6fa81487 in wcsrtombs () from /lib64/libc.so.6
#2  0x0000003e6fa46379 in vfprintf () from /lib64/libc.so.6
#3  0x0000003e6fa6988a in vsnprintf () from /lib64/libc.so.6
#4  0x0000003e6fa4d493 in snprintf () from /lib64/libc.so.6
#5  0x0000000000406423 in read_config_options () at util.c:480
#6  0x0000000000403667 in main (argc=<value optimized out>, argv=0x7fff5b2c68f8) at spine.c:391
I haven't a lot of time to chase this at present, but if you can confirm this is the version of spine you intended me to try, that'd be great.

Cheers,

Mark
feskens
Posts: 10
Joined: Wed Apr 01, 2009 4:57 am

new spine

Post by feskens »

I just compiled the newest spine version without any result. Hereby the debug output of spine:

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2010.05.19 15:15:59 =~=~=~=~=~=~=~=~=~=~=~=

SPINE: Using spine config file [/etc/cacti/spine.conf]
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The path_php_server variable is /usr/share/cacti/script_server.php
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The path_cactilog variable is /var/log/cacti/cacti.log
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The log_destination variable is 1 (FILE)
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The path_php variable is /usr/bin/php
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The availability_method variable is 2
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The ping_recovery_count variable is 3
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The ping_failure_count variable is 2
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The ping_method variable is 2
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The ping_retries variable is 1
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The ping_timeout variable is 400
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The snmp_retries variable is 3
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The log_perror variable is 1
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The log_pwarn variable is 0
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The boost_redirect variable is 0
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The log_pstats variable is 0
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The threads variable is 4
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The polling interval is 300 seconds
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The number of concurrent processes is 1
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The script timeout is 50
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The number of php script servers to run is 1
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: StartHost='135', EndHost='135', TotalPHPScripts='0'
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The PHP Script Server is Not Required
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The Maximum SNMP OID Get Size is 10
05/19/2010 03:15:44 PM - SPINE: Poller[0] Version 0.8.7e starting
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: MySQL is Thread Safe!
05/19/2010 03:15:44 PM - SPINE: Poller[0] SPINE: Initializing Net-SNMP API
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: SNMP Header Version is 5.4.1
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: SNMP Library Version is 5.4.1
05/19/2010 03:15:44 PM - SPINE: Poller[0] SPINE: Initializing PHP Script Server(s)
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: Initial Value of Active Threads is 0
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: Valid Thread to be Created
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: In Poller, About to Start Polling of Host
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The Value of Active Threads is 1
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: In Poller, About to Start Polling of Host
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: Valid Thread to be Created
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The Value of Active Threads is 2
05/19/2010 03:15:44 PM - SPINE: Poller[0] Host[0] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The Value of Active Threads is 1
05/19/2010 03:15:44 PM - SPINE: Poller[0] Host[135] SNMP Result: Host responded to SNMP
05/19/2010 03:15:44 PM - SPINE: Poller[0] Host[135] RECACHE: Processing 1 items in the auto reindex cache for '213.197.26.65'
05/19/2010 03:15:44 PM - SPINE: Poller[0] Host[135] NOTE: There are '12' Polling Items for this Host
05/19/2010 03:15:44 PM - SPINE: Poller[0] Host[135] DS[2688] SNMP: v2: 213.197.26.65, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.21, value: 1146100905
05/19/2010 03:15:44 PM - SPINE: Poller[0] Host[135] DS[2688] SNMP: v2: 213.197.26.65, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.21, value: 1197362652
05/19/2010 03:15:44 PM - SPINE: Poller[0] Host[135] DS[2690] SNMP: v2: 213.197.26.65, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.23, value: 1197362652
05/19/2010 03:15:44 PM - SPINE: Poller[0] Host[135] DS[2690] SNMP: v2: 213.197.26.65, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.23, value: 1146100905
05/19/2010 03:15:44 PM - SPINE: Poller[0] Host[135] DS[2689] SNMP: v2: 213.197.26.65, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.22, value: 1197362652
05/19/2010 03:15:44 PM - SPINE: Poller[0] Host[135] DS[2689] SNMP: v2: 213.197.26.65, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.22, value: 1146100905
05/19/2010 03:15:44 PM - SPINE: Poller[0] Host[135] DS[2687] SNMP: v2: 213.197.26.65, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.3, value: 1197362652
05/19/2010 03:15:44 PM - SPINE: Poller[0] Host[135] DS[2687] SNMP: v2: 213.197.26.65, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.3, value: 1146100905
05/19/2010 03:15:44 PM - SPINE: Poller[0] Host[135] DS[2685] SNMP: v2: 213.197.26.65, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, value: 1146100905
05/19/2010 03:15:44 PM - SPINE: Poller[0] Host[135] DS[2685] SNMP: v2: 213.197.26.65, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, value: 1197362652
05/19/2010 03:15:44 PM - SPINE: Poller[0] Host[135] DS[2686] SNMP: v2: 213.197.26.65, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, value: 1146100905
05/19/2010 03:15:44 PM - SPINE: Poller[0] Host[135] DS[2686] SNMP: v2: 213.197.26.65, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, value: 1197362652
05/19/2010 03:15:44 PM - SPINE: Poller[0] Host[135] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: The Value of Active Threads is 0
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: Thread Cleanup Complete
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: PHP Script Server Pipes Closed
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: Allocated Variable Memory Freed
05/19/2010 03:15:44 PM - SPINE: Poller[0] DEBUG: MYSQL Free & Close Completed
05/19/2010 03:15:44 PM - SPINE: Poller[0] Time: 0.1542 s, Threads: 4, Hosts: 2

when I use the cmdphp poller the graphs display the right output so it must be a spine issue.

Again, the strange thing is that the output of the interface MIB gives a value of 0 when it's disconnected. Spine gives a complete different value. for example:

spine:

05/19/2010 03:15:44 PM - SPINE: Poller[0] Host[135] DS[2686] SNMP: v2: 213.197.26.65, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, value: 1146100905

snmpwalk:

cacti:/home/frank# snmpwalk -v2c -c public 213.197.26.65 .1.3.6.1.2.1.2.2.1.16.2
IF-MIB::ifOutOctets.2 = Counter32: 0
gypsy
Posts: 1
Joined: Tue Oct 26, 2010 11:02 pm

Re: hp procurve 1810 interface graph problem

Post by gypsy »

FW P1.18 (hasn't been publicly released) fixes the graphing issue (just tested). Hopefully attaching it here is OK (would link externally, but not sure if *that's* allowed).

EDIT: Also, afaik, still no 64-bit counters.
Attachments
P.1.18.zip
(1.6 MiB) Downloaded 449 times
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests