Strange result on cmd.php with Get SNMP Data

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

Moderators: Developers, Moderators

Post Reply
agismaniax
Posts: 5
Joined: Mon Jul 19, 2004 4:11 am
Contact:

Strange result on cmd.php with Get SNMP Data

Post by agismaniax »

I'm using cacti 0.8.5.a on RH8 with net-snmp-5.0.1-6.

I've created a new Data Input Methods like this:

Code: Select all

Get SNMP Data (Port)
management_ip  0 (Not In Use)  SNMP IP Address   hostname 
snmp_community 0 (Not In Use)  SNMP Community    snmp_community
snmp_username  0 (Not In Use)  SNMP Username     snmp_username
snmp_password  0 (Not In Use)  SNMP Password     snmp_password
snmp_version   0 (Not In Use)  SNMP Version (1, 2, or 3)   snmp_version
snmp_port      0 (Not In Use)  SNMP Port         snmp_port
snmp_timeout   0 (Not In Use)  SNMP Timeout      snmp_timeout
oid            0 (Not In Use)  OID               snmp_oid
Then, I've created two Data Templates like this:

Code: Select all

CGP - SMTP Input
Data Source Name: |host_description| - CGP - SMTP Input
Data Source Input Method: Get SNMP Data (Port)
Data Source Item: smtp_input
Data Source Type: COUNTER
Custom Data: SNMP Port: 1610

Code: Select all

CGP - SMTP Output
Data Source Name: |host_description| - CGP - SMTP Output
Data Source Input Method: Get SNMP Data (Port)
Data Source Item: smtp_output
Data Source Type: COUNTER
Custom Data: SNMP Port: 1610
Then, I make a Graph Templates like this:

Code: Select all

Item # 1 (smtp_input): SMTP Input: LINE1 AVERAGE   F51D30     
Item # 2 (smtp_input): Current: GPRINT LAST        
Item # 3 (smtp_input): Average: GPRINT AVERAGE        
Item # 4 (smtp_input): Maximum:<HR> GPRINT MAX        
Item # 5 (smtp_output): SMTP Output LINE1 AVERAGE   4444FF     
Item # 6 (smtp_output): Current: GPRINT LAST        
Item # 7 (smtp_output): Average: GPRINT AVERAGE        
Item # 8 (smtp_output): Maximum: GPRINT MAX 
Then, I put this templates on my device.
But, when I try capture the data, I found strange result on cmd.php:

Code: Select all

**** cut *****
                        q:  quick print for easier parsing
                          Q:  quick print with equal-signs
                          s:  print only last symbolic element of OID
                          S:  print MIB module-id plus last element
                          t:  print timeticks unparsed as numeric integers
                          T:  print human-readable text along with hex strings
                          u:  print OIDs using UCD-style prefix suppression
                          v:  print values only (not OID = value)
                          X:  extended index format
  -I INOPTS             Toggle various defaults controlling input parsing:
                          b:  do best/regex matching to find a MIB node
                          r:  do not check values for range/type legality
                          R:  do random access to OID labels
                          u:  top-level OIDs must have '.' prefix (UCD-style)
  -C APPOPTS            Set various application specific behaviours:
                          f:  do not fix errors and retry the request
snmp: 127.0.0.1:161, dsname: proc, oid: , value:
it seems all snmp query from cmd.php couldn't find oid.

I try to remove that data sources from my device, but it affected to all previously SNMP query.

Code: Select all

snmp: 127.0.0.1:161, dsname: proc, oid: , value:
snmp: 127.0.0.1:161, dsname: mem_free, oid: , value:
snmp: 127.0.0.1:161, dsname: mem_cache, oid: , value:
snmp: 127.0.0.1:161, dsname: mem_buffers, oid: , value:
snmp: 127.0.0.1:161, dsname: load_1min, oid: , value:
snmp: 127.0.0.1:161, dsname: load_5min, oid: , value:
snmp: 127.0.0.1:161, dsname: load_15min, oid: , value:
snmp: 127.0.0.1:161, dsname: cpu_user, oid: , value:
snmp: 127.0.0.1:161, dsname: cpu_system, oid: , value:
snmp: 127.0.0.1:161, dsname: cpu_nice, oid: , value:
snmp: 127.0.0.1:161, dsname: cpu_idle, oid: , value:
Right now, I can't get graphs all "Get SNMP Data" Input methods and the lasting I choose is remove all cacti and its database and reinstall it again.

Is this a bug or what?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests