[SOLVED] SNMPv3 (authPriv) Graphs at NaN

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

Moderators: Developers, Moderators

Post Reply
User avatar
Mark.
Cacti User
Posts: 74
Joined: Tue Jul 03, 2007 4:11 pm
Location: San Luis Obispo

[SOLVED] SNMPv3 (authPriv) Graphs at NaN

Post by Mark. »

Just configured an existing host, that was using SNMPv2 to poll, with SNMPv3 (md5 and DES). From the WEB UI, HOST, I can see SNMP Information from the Host. Seems like everything is working right...

My graphs are now empty. NAN
I read the post: Debug NaN's (http://docs.cacti.net/node/283) and it seems like I'm having the same problem mentioned in section 11:

"cacti was logging a "U" for unparseable in the debug output, and was recording NAN. So my fix there was to make the script run faster - it has to complete in less than one second, and the age of my box make that hard."

But executing an snmpget from the cli of the cacti server is instantaneous. My equipment isn't old.

snmpget -v 3 -l authPriv -a md5 -A authpass -x DES -X privpass -u Manager equipmentname .1.3.6.1.4.1.2272.1.14.2.0

SNMPv2-SMI::enterprises.2272.1.14.2.0 = INTEGER: 1140

Going back to SNMPv2, everything works just fine. I need to get this working on SNMPv3 as policy is requiring me to stop all snmpv1/2.
Last edited by Mark. on Wed Jan 16, 2008 3:28 pm, edited 3 times in total.
Cacti Ver: 0.8.7h
netSNMP 5.4.2.1
PHP 5.3.2-1ubuntu4.9 with Suhosin-Patch
mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486) using readline 6.1
RRDtool 1.3.8
CCNA,CCDA,CCSE
User avatar
Mark.
Cacti User
Posts: 74
Joined: Tue Jul 03, 2007 4:11 pm
Location: San Luis Obispo

Post by Mark. »

Viewing Poller Cache:

test itdlas1 - Brige FDB Entries

SNMP Version: 3, User: Manager, OID: .1.3.6.1.4.1.2272.1.14.2.0
RRD: /usr/local/cacti/rra/test_itdlas1_fdb_size_1257.rrd

Viewing Permissions of rrd file.
-rw-r--r-- 1 cacti root 95328 Jan 4 08:55 test_itdlas1_fdb_size_1257.rrd


Log file from Yesterday:

01/03/2008 12:45:07 PM - CACTID: Poller[0] Host[97] PING Result: UDP: Host is Alive

01/03/2008 12:45:07 PM - CACTID: Poller[0] Host[97] SNMP Result: SNMP not performed due to setting or ping result

01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: MySQL Insert ID '93': 'update host set status='3', status_event_count='0', status_fail_date='0000-00-00 00$

01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: MySQL Insert ID '93': OK

01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: MySQL Query ID '202': 'SELECT data_query_id, action, op, assert_value, arg1 FROM poller_reindex WHERE host$

01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: MySQL Query ID '202': OK

01/03/2008 12:45:07 PM - CACTID: Poller[0] Host[97] RECACHE: Processing 1 items in the auto reindex cache for 'itdlas1'

01/03/2008 12:45:07 PM - CACTID: Poller[0] Host[97] ASSERT: '1667051100' .lt. '' failed. Recaching host 'itdlas1', data query #1


01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: MySQL Insert ID '94': 'replace into poller_command (poller_id, time, action, command) values (0, NOW(), 1,$

01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: MySQL Insert ID '94': OK

01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: MySQL Insert ID '95': 'update poller_reindex set assert_value='' where host_id='97' and
data_query_id='1' $

01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: MySQL Insert ID '95': OK

01/03/2008 12:45:07 PM - CACTID: Poller[0]

01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: MySQL Query ID '203': 'SELECT action, hostname, snmp_community, snmp_version, snmp_username, snmp_password$

01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: MySQL Query ID '203': OK

01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: MySQL Query ID '204': 'UPDATE poller_item SET rrd_next_step=rrd_next_step-300 WHERE host_id=97'

01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: MySQL Query ID '204': OK

01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: MySQL Query ID '205': 'UPDATE poller_item SET rrd_next_step=rrd_step-300 WHERE rrd_next_step < 0 and host_$

01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: MySQL Query ID '205': OK

01/03/2008 12:45:07 PM - CACTID: Poller[0] Host[97] DS[1260] WARNING: SNMP timeout detected [500 ms], ignoring host 'itdlas1'

01/03/2008 12:45:07 PM - CACTID: Poller[0] Host[97] DS[1260] SNMP: v3: itdlas1, dsname: chas_temp, oid: .1.3.6.1.4.1.2272.1.100.1.2.0, value: U

01/03/2008 12:45:07 PM - CACTID: Poller[0] Host[97] DS[1258] WARNING: SNMP timeout detected [500 ms], ignoring host 'itdlas1'

01/03/2008 12:45:07 PM - CACTID: Poller[0] Host[97] DS[1258] SNMP: v3: itdlas1, dsname: cpu_util, oid: .1.3.6.1.4.1.2272.1.1.20.0, value: U

01/03/2008 12:45:07 PM - CACTID: Poller[0] Host[97] DS[1259] WARNING: SNMP timeout detected [500 ms], ignoring host 'itdlas1'


01/03/2008 12:45:07 PM - CACTID: Poller[0] Host[97] DS[1259] SNMP: v3: itdlas1, dsname: dram_util, oid: .1.3.6.1.4.1.2272.1.1.47.0, value: U

01/03/2008 12:45:07 PM - CACTID: Poller[0] Host[97] DS[1261] WARNING: SNMP timeout detected [500 ms], ignoring host 'itdlas1'

01/03/2008 12:45:07 PM - CACTID: Poller[0] Host[97] DS[1261] SNMP: v3: itdlas1, dsname: fan1_temp, oid: .1.3.6.1.4.1.2272.1.4.7.1.1.3.1, value: U

01/03/2008 12:45:07 PM - CACTID: Poller[0] Host[97] DS[1257] WARNING: SNMP timeout detected [500 ms], ignoring host 'itdlas1'

01/03/2008 12:45:07 PM - CACTID: Poller[0] Host[97] DS[1257] SNMP: v3: itdlas1, dsname: fdb_size, oid: .1.3.6.1.4.1.2272.1.14.2.0, value: U

01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: MySQL Insert ID '96': 'INSERT INTO poller_output (local_data_id, rrd_name, time, output) VALUES (1260,'cha$

01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: MySQL Insert ID '96': OK

01/03/2008 12:45:07 PM - CACTID: Poller[0] Host[97] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function

01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 3

01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 2

01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 1

01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: Valid Thread to be Created

01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 3

01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: In Poller, About to Start Polling of Host

01/03/2008 12:45:07 PM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...

01/03/2008 12:45:07 PM - CACTID: Poller[0] MYSQL: Connected to MySQL database 'cacti' on 'localhost'...

01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: MySQL Query ID '161': 'SELECT id, hostname, snmp_community, snmp_username, snmp_password, snmp_version, sn$

01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: MySQL Query ID '161': OK

01/03/2008 12:45:07 PM - CACTID: Poller[0] WARNING: Falling back to UDP Ping due to not running asroot. Please use "chmod xxx0 /usr/bin/cactid" to resolve.

01/03/2008 12:45:07 PM - CACTID: Poller[0] DEBUG: The UDP Ping return_code was -1, errno was 111, total_time was 6605.1483



Looking at the "Ping due to not running asroot" - I don't even have a cactid file located in /usr/bin/ -probably doesn't have anything to do with my graphing problem.


Graph Debug Output:
/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=1199380184 \
--end=1199466584 \
--title="test itdlas1 - Bridge FDB Entries" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2008/01/03 09\:09\:44 To 2008/01/04 09\:09\:44\c" \
COMMENT:" \n" \
--vertical-label="entries" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/usr/local/cacti/rra/test_itdlas1_fdb_size_1257.rrd":fdb_size:AVERAGE \
DEF:b="/usr/local/cacti/rra/test_itdlas1_fdb_size_1257.rrd":fdb_size:MAX \
AREA:a#EACC00FF:"" \
GPRINT:a:LAST:"Current\:%8.0lf" \
GPRINT:a:AVERAGE:"Average\:%8.0lf" \
GPRINT:b:MAX:"Maximum\:%8.0lf"

If there is anything else you need...please let me know. I really appreciate anything anyone can do to help me resolve this issue. It seems pretty uncommon.
Cacti Ver: 0.8.7h
netSNMP 5.4.2.1
PHP 5.3.2-1ubuntu4.9 with Suhosin-Patch
mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486) using readline 6.1
RRDtool 1.3.8
CCNA,CCDA,CCSE
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You tell us that you're using cacti 087a. But your log shows CACTID as a poller. 087a requires using SPINE as a poller (or plain old cmd.php, if you like).
Reinhard
User avatar
Mark.
Cacti User
Posts: 74
Joined: Tue Jul 03, 2007 4:11 pm
Location: San Luis Obispo

Post by Mark. »

Interesting...
I am using 8.7a. From the web ui, settings, poller, it says SPINE. What do you think is going on?

Also...all (100+) snmpv2 devices are being polled fine.

Ok, looked in "settings, Paths"
Spine Poller File Path
The path to Spine binary.

/usr/local/cactid/bin/cactid

Doing a: find / -name spine
shows NOTHING. I assume it didn't find spine and used cactid. I switched it to cmd.php
Will see if that works.
Cacti Ver: 0.8.7h
netSNMP 5.4.2.1
PHP 5.3.2-1ubuntu4.9 with Suhosin-Patch
mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486) using readline 6.1
RRDtool 1.3.8
CCNA,CCDA,CCSE
User avatar
Mark.
Cacti User
Posts: 74
Joined: Tue Jul 03, 2007 4:11 pm
Location: San Luis Obispo

Post by Mark. »

ITS WORKING!! YAY. SNMPv3 is working. I am obviously new to cacti and linux. I'm learning lots, fast.

Next I'm going to try and get it working using AES. I'll look for a "how to" for upgrading cmd.php to SPINE. Thanks for looking at that Gandalf. I'll continue to monitor and change title to [SOLVED] on Tuesday.
Cacti Ver: 0.8.7h
netSNMP 5.4.2.1
PHP 5.3.2-1ubuntu4.9 with Suhosin-Patch
mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486) using readline 6.1
RRDtool 1.3.8
CCNA,CCDA,CCSE
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Mark. wrote:Interesting...
I am using 8.7a. From the web ui, settings, poller, it says SPINE. What do you think is going on?
The predecessor of spine was called cactid. It is the fast cmd.php replacement. See documentatuon tab at top of each cacti page to find the documentation.
/usr/local/cactid/bin/cactid
It's quite obvious, that you've got the wrong (old) poller. Download spine and compile it as given by the documentation
Reinhard
User avatar
Mark.
Cacti User
Posts: 74
Joined: Tue Jul 03, 2007 4:11 pm
Location: San Luis Obispo

Post by Mark. »

Thanks for the help. I'll read the documentation.

FYI, DES and AES polling is working using cmd.php. I'll work on upgrading to spine.
Cacti Ver: 0.8.7h
netSNMP 5.4.2.1
PHP 5.3.2-1ubuntu4.9 with Suhosin-Patch
mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486) using readline 6.1
RRDtool 1.3.8
CCNA,CCDA,CCSE
User avatar
Mark.
Cacti User
Posts: 74
Joined: Tue Jul 03, 2007 4:11 pm
Location: San Luis Obispo

Post by Mark. »

Home » Cacti 0.8.7 Manual » 3. Advanced Topics Section 15 (SPINE) explains what SPINE is but not how to install or where to download. I don't see why SPINE install would be in 8.6 Documentation. Anyone know where to find SPINE Installation Documentation?
Cacti Ver: 0.8.7h
netSNMP 5.4.2.1
PHP 5.3.2-1ubuntu4.9 with Suhosin-Patch
mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486) using readline 6.1
RRDtool 1.3.8
CCNA,CCDA,CCSE
User avatar
Mark.
Cacti User
Posts: 74
Joined: Tue Jul 03, 2007 4:11 pm
Location: San Luis Obispo

Post by Mark. »

Thanks.
Cacti Ver: 0.8.7h
netSNMP 5.4.2.1
PHP 5.3.2-1ubuntu4.9 with Suhosin-Patch
mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486) using readline 6.1
RRDtool 1.3.8
CCNA,CCDA,CCSE
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

When I first started reading this post, thought I was going to have to fix another bug... :cry: But reasonably happy now. 8)

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

TheWitness wrote:When I first started reading this post, thought I was going to have to fix another bug... :cry:
Oh, I could help with that if you want me to do so :lol:
Reinhard
macdaddy
Posts: 39
Joined: Fri Jan 13, 2006 4:00 pm

Post by macdaddy »

Mark,

If you ever get AES to work please share how you did it with the forums. I'm running into problems with AES as well.

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

Post by gandalf »

Please explain in more detail which problems you are facing. Please mention current settings of SNMP V3 options (replace the passwords, please). Then post a result of a manual snmpwalk.
List your net-snmp version and whether php-snmp is installed.
If runnings spine, please post output of a DEBUG run for that very host.
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests