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
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
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
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:
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:
Is this a bug or what?