Pending Initial Gathering

MChandler

30-06-2006 14:26:13

I have setup Netmrg 0.18.2-1 on Fedora Core 4 with two devices (localhost and a Cisco Router) in NetMRG but I am getting no graphs and it states "Pending Initial Gathering". I already have MRTG running on this box so I'm pretty sure SNMP is working correctly. Can anyone point me in the right direction? The documentation is a bit sparse.

This is what I get when I run netmrg-gatherer --sa

[L 0032, C 0001] NetMRG starting.
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0064, C 0001] Creating Lockfile.
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0064, C 0257] Initializing SNMP library.
[L 0064, C 0129] Initializing RRDTOOL pipe.
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking MySQL
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Unlocking MySQL
[L 0128, C 1024] Mysql Query Succeeded. (SELECT version FROM versioninfo WHERE module = 'Main')
[L 0128, C 1024] Mysql Query Succeeded. (SELECT id FROM devices WHERE disabled=0 ORDER BY id)
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking ActiveThreads
[L 0064, C 0002] [ACTIVE] Last 0, Now 0
[L 0032, C 0004] [Dev 0003] Starting device thread at 2006-06-30 093219.
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking MySQL
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Unlocking MySQL
[L 0064, C 0004] [Dev 0003] MySQL connection established.
[L 0128, C 1024] [Dev 0003] Mysql Query Succeeded. (SELECT name, ip, snmp_version, snmp_read_community, snmp_recache_method, snmp_uptime, snmp_ifnumber, snmp_port, snmp_timeout, snmp_retries, no_snmp_uptime_check FROM devices WHERE id=3)
[L 0064, C 0004] [Dev 0003] CBS-GARD-L1 / <Field Omitted>
[L 0128, C 0256] [Dev 0003] Starting SNMP Session.
[L 0128, C 0256] [Dev 0003] SNMPv1
[L 0128, C 0256] [Dev 0003] Port 161; Timeout 1000000; Retries 3.
[L 0128, C 0002] Locking SNMP
[L 0128, C 0002] Unlocking SNMP
[L 0128, C 0256] [Dev 0003] SNMP Query (<Field Omitted>, <Field Omitted>, 'system.sysUpTime.0')
[L 0032, C 0004] [Dev 0004] Starting device thread at 2006-06-30 093219.
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking MySQL
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0128, C 0002] Unlocking MySQL
[L 0064, C 0004] [Dev 0004] MySQL connection established.
[L 0128, C 1024] [Dev 0004] Mysql Query Succeeded. (SELECT name, ip, snmp_version, snmp_read_community, snmp_recache_method, snmp_uptime, snmp_ifnumber, snmp_port, snmp_timeout, snmp_retries, no_snmp_uptime_check FROM devices WHERE id=4)
[L 0064, C 0004] [Dev 0004] Astro-Gardena-Router / <Field Omitted>
[L 0128, C 0256] [Dev 0004] Starting SNMP Session.
[L 0128, C 0256] [Dev 0004] SNMPv2c
[L 0128, C 0256] [Dev 0004] Port 161; Timeout 1000000; Retries 3.
[L 0128, C 0002] Locking SNMP
[L 0128, C 0002] Unlocking SNMP
[L 0128, C 0256] [Dev 0004] SNMP Query (<Field Omitted>, <Field Omitted>, 'system.sysUpTime.0')
[L 0064, C 0256] [Dev 0003] SNMP Uptime is Zilch (0 centiseconds)
[L 0128, C 1024] [Dev 0003] MySQL Update Succeeded. (UPDATE devices SET snmp_uptime=0 WHERE id=3)
[L 0016, C 0004] [Dev 0003] Device is SNMP-dead. Avoiding SNMP tests.
[L 0064, C 0256] [Dev 0004] SNMP Uptime is Zilch (0 centiseconds)
[L 0128, C 1024] [Dev 0004] MySQL Update Succeeded. (UPDATE devices SET snmp_uptime=0 WHERE id=4)
[L 0016, C 0004] [Dev 0004] Device is SNMP-dead. Avoiding SNMP tests.
[L 0128, C 1024] MySQL Update Succeeded. (INSERT INTO log SET date=NOW(), dev_id=3, subdev_id=NULL, mon_id=NULL, level=16, component=4, message = 'Device is SNMP-dead. Avoiding SNMP tests.')
[L 0128, C 1024] MySQL Update Succeeded. (INSERT INTO log SET date=NOW(), dev_id=4, subdev_id=NULL, mon_id=NULL, level=16, component=4, message = 'Device is SNMP-dead. Avoiding SNMP tests.')
[L 0128, C 1024] [Dev 0003] Mysql Query Succeeded. (SELECT id, type, name FROM sub_devices WHERE dev_id=3)
[L 0064, C 0008] [Dev 0003] [Sub 0005] Starting Subdevice.
[L 0128, C 1024] [Dev 0004] Mysql Query Succeeded. (SELECT id, type, name FROM sub_devices WHERE dev_id=4)
[L 0128, C 1024] [Dev 0003] [Sub 0005] Mysql Query Succeeded. (SELECT name, value FROM sub_dev_variables WHERE type = 'static' AND sub_dev_id = 5)
[L 0128, C 1024] [Dev 0004] MySQL Update Succeeded. (UPDATE devices SET status=0, snmp_avoided=1 WHERE id=4)
[L 0128, C 0256] [Dev 0004] Cleaning up SNMP Session.
[L 0064, C 0004] [Dev 0004] Trimming device event log.
[L 0128, C 1024] [Dev 0003] [Sub 0005] MySQL Update Succeeded. (DELETE FROM sub_dev_variables WHERE type = 'dynamic' AND sub_dev_id = 5)
[L 0128, C 1024] [Dev 0004] Mysql Query Succeeded. (SELECT id FROM log WHERE dev_id=4 ORDER BY id)
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0032, C 0004] [Dev 0004] Ending device thread at 2006-06-30 093223, after a duration of 4 seconds.
[L 0128, C 0002] Locking ActiveThreads
[L 0128, C 0002] Unlocking ActiveThreads
[L 0032, C 0002] Thread Ended.
[L 0128, C 1024] [Dev 0003] [Sub 0005] MySQL Update Succeeded. (INSERT DELAYED INTO sub_dev_variables SET type = 'dynamic', sub_dev_id = 5, name = 'subdev_name', value = 'System')
[L 0128, C 1024] [Dev 0003] [Sub 0005] MySQL Update Succeeded. (INSERT DELAYED INTO sub_dev_variables SET type = 'dynamic', sub_dev_id = 5, name = 'snmp_read_community', value = 'public')
[L 0128, C 1024] [Dev 0003] [Sub 0005] MySQL Update Succeeded. (INSERT DELAYED INTO sub_dev_variables SET type = 'dynamic', sub_dev_id = 5, name = 'ip', value = '127.0.0.1')
[L 0128, C 1024] [Dev 0003] [Sub 0005] MySQL Update Succeeded. (INSERT DELAYED INTO sub_dev_variables SET type = 'dynamic', sub_dev_id = 5, name = 'dev_name', value = 'CBS-GARD-L1')
[L 0128, C 1024] [Dev 0003] [Sub 0005] Mysql Query Succeeded. (SELECT monitors.data_type, data_types.rrd_type, monitors.min_val, monitors.max_val, monitors.tuned, monitors.test_type, monitors.test_id, monitors.test_params, monitors.last_val, monitors.id, NOW() - monitors.last_time FROM monitors LEFT JOIN data_types ON monitors.data_type=data_types.id WHERE sub_dev_id = 5)
[L 0128, C 1024] [Dev 0003] [Sub 0005] MySQL Update Succeeded. (UPDATE sub_devices SET status=0 WHERE id=5)
[L 0128, C 1024] [Dev 0003] MySQL Update Succeeded. (UPDATE devices SET status=0, snmp_avoided=1 WHERE id=3)
[L 0128, C 0256] [Dev 0003] Cleaning up SNMP Session.
[L 0064, C 0004] [Dev 0003] Trimming device event log.
[L 0128, C 1024] [Dev 0003] Mysql Query Succeeded. (SELECT id FROM log WHERE dev_id=3 ORDER BY id)
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0032, C 0004] [Dev 0003] Ending device thread at 2006-06-30 093223, after a duration of 4 seconds.
[L 0128, C 0002] Locking ActiveThreads
[L 0128, C 0002] Unlocking ActiveThreads
[L 0032, C 0002] Thread Ended.
[L 0064, C 0002] [PASSIVE] Last 0, Now 0
[L 0128, C 0002] Unlocking ActiveThreads
[L 0064, C 0001] Closed MySQL connection.
[L 0064, C 0001] Runtime 4
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings
[L 0064, C 0129] Closed RRDTOOL pipe.
[L 0064, C 0257] Cleaned up SNMP.
[L 0128, C 0002] Locking Settings
[L 0128, C 0002] Unlocking Settings

balleman

30-06-2006 15:00:56

Unfortunately, it does look like an SNMP issue of some sort. Can you try to snmpwalk from the netmrg user on your machine
[code13080f9bf6b]
snmpwalk -v1 -c your-snmp-community your-device-ip-address system
[/code13080f9bf6b]

To verify all is well?

MChandler

30-06-2006 16:19:54

Looks like it worked.


SNMPv2-MIBsysDescr.0 = STRING Cisco Internetwork Operating System Software
IOS (tm) 3700 Software (C3725-ENTSERVICESK9-M), Version 12.3(9d), RELEASE SOFTWARE (fc2)
Technical Support http//www.cisco.com/techsupport
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Fri 01-A
SNMPv2-MIBsysObjectID.0 = OID SNMPv2-SMIenterprises.9.1.414
SNMPv2-MIBsysUpTime.0 = Timeticks (10875230) 1 day, 61232.30
SNMPv2-MIBsysContact.0 = STRING
SNMPv2-MIBsysName.0 = STRING Astro_Gardena1.cusa.canon.com
SNMPv2-MIBsysLocation.0 = STRING Gardena,Ca.
SNMPv2-MIBsysServices.0 = INTEGER 78
SNMPv2-MIBsysORLastChange.0 = Timeticks (0) 00000.00

balleman

30-06-2006 16:27:45

Yes, looks like it works.

Please try disabling the SNMP uptime check for your devices. The option is on the Devices Page (docs). It is possible your local SNMP configuration is causing issues with NetMRG's handling of the SNMP uptime.