Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[leo_gateway][snmpa] Can not retrieve the object-cache statistics #463

Closed
yosukehara opened this issue Mar 9, 2016 · 5 comments
Closed

Comments

@yosukehara
Copy link
Member

We've found that LeoGateway's statistics feature could be not put object-cache statistics to SNMPA with the snmpwalk command and LeoFS' monitor, Grafana.

screen shot 2016-03-09 at 09 34 54

@yosukehara yosukehara self-assigned this Mar 9, 2016
@yosukehara yosukehara added this to the 1.2.20 milestone Mar 9, 2016
@yosukehara yosukehara changed the title [leo_gateway][snmpa] Not retrieve the object-cache statistics [leo_gateway][snmpa] Can not retrieve the object-cache statistics Mar 9, 2016
@windkit
Copy link
Contributor

windkit commented Mar 9, 2016

Result from snmpwalk

$ snmpwalk -v 2c -c public 127.0.0.1:4000 .1.3.6.1.4.1.35450
iso.3.6.1.4.1.35450.34.1.0 = STRING: "G0@192.168.100.35"
iso.3.6.1.4.1.35450.34.2.0 = Gauge32: 542
iso.3.6.1.4.1.35450.34.3.0 = Gauge32: 80508340
iso.3.6.1.4.1.35450.34.4.0 = Gauge32: 58260036
iso.3.6.1.4.1.35450.34.5.0 = Gauge32: 22493083
iso.3.6.1.4.1.35450.34.6.0 = Gauge32: 6442284
iso.3.6.1.4.1.35450.34.7.0 = Gauge32: 544
iso.3.6.1.4.1.35450.34.8.0 = Gauge32: 80178420
iso.3.6.1.4.1.35450.34.9.0 = Gauge32: 57641974
iso.3.6.1.4.1.35450.34.10.0 = Gauge32: 22564420
iso.3.6.1.4.1.35450.34.11.0 = Gauge32: 6437567
iso.3.6.1.4.1.35450.34.12.0 = Gauge32: 66011
iso.3.6.1.4.1.35450.34.13.0 = Gauge32: 1253211
iso.3.6.1.4.1.35450.34.14.0 = Gauge32: 0
iso.3.6.1.4.1.35450.34.15.0 = Gauge32: 314912
iso.3.6.1.4.1.35450.34.16.0 = Gauge32: 5984405
iso.3.6.1.4.1.35450.34.17.0 = Gauge32: 0
iso.3.6.1.4.1.35450.34.18.0 = Gauge32: 0
iso.3.6.1.4.1.35450.34.19.0 = Gauge32: 0
iso.3.6.1.4.1.35450.34.20.0 = Gauge32: 0
iso.3.6.1.4.1.35450.34.21.0 = Gauge32: 0
iso.3.6.1.4.1.35450.34.31.0 = Gauge32: 57
iso.3.6.1.4.1.35450.34.32.0 = Gauge32: 141537861
iso.3.6.1.4.1.35450.34.33.0 = Gauge32: 56
iso.3.6.1.4.1.35450.34.34.0 = Gauge32: 142804345

@yosukehara
Copy link
Member Author

I've fix this issue:

$ snmpwalk -v 2c -c public 127.0.0.1:4000 .1.3.6.1.4.1.35450
SNMPv2-SMI::enterprises.35450.34.1.0 = STRING: "gateway_0@127.0.0.1"
SNMPv2-SMI::enterprises.35450.34.2.0 = Gauge32: 466
SNMPv2-SMI::enterprises.35450.34.3.0 = Gauge32: 69778323
SNMPv2-SMI::enterprises.35450.34.4.0 = Gauge32: 52912265
SNMPv2-SMI::enterprises.35450.34.5.0 = Gauge32: 16893053
SNMPv2-SMI::enterprises.35450.34.6.0 = Gauge32: 6880533
SNMPv2-SMI::enterprises.35450.34.7.0 = Gauge32: 466
SNMPv2-SMI::enterprises.35450.34.8.0 = Gauge32: 69895370
SNMPv2-SMI::enterprises.35450.34.9.0 = Gauge32: 53002006
SNMPv2-SMI::enterprises.35450.34.10.0 = Gauge32: 16916444
SNMPv2-SMI::enterprises.35450.34.11.0 = Gauge32: 6866305
SNMPv2-SMI::enterprises.35450.34.12.0 = Gauge32: 0
SNMPv2-SMI::enterprises.35450.34.13.0 = Gauge32: 5
SNMPv2-SMI::enterprises.35450.34.14.0 = Gauge32: 0
SNMPv2-SMI::enterprises.35450.34.15.0 = Gauge32: 64
SNMPv2-SMI::enterprises.35450.34.16.0 = Gauge32: 10
SNMPv2-SMI::enterprises.35450.34.17.0 = Gauge32: 0
SNMPv2-SMI::enterprises.35450.34.18.0 = Gauge32: 7 ## Num of cache-hit
SNMPv2-SMI::enterprises.35450.34.19.0 = Gauge32: 1 ## Num of cache-miss
SNMPv2-SMI::enterprises.35450.34.20.0 = Gauge32: 25 ## Total num of cached objects
SNMPv2-SMI::enterprises.35450.34.21.0 = Gauge32: 0
SNMPv2-SMI::enterprises.35450.34.31.0 = Gauge32: 76
SNMPv2-SMI::enterprises.35450.34.32.0 = Gauge32: 91882864
SNMPv2-SMI::enterprises.35450.34.33.0 = Gauge32: 75
SNMPv2-SMI::enterprises.35450.34.34.0 = Gauge32: 92851921

@yosukehara yosukehara reopened this Mar 9, 2016
@yosukehara
Copy link
Member Author

There is a remain Issue which is total size of cached objects is zero in spite of existing cached objects into the inner-cache.

### Total size of cached objects
SNMPv2-SMI::enterprises.35450.34.21.0 = Gauge32: 0

yosukehara added a commit to leo-project/leo_gateway that referenced this issue Mar 9, 2016
@yosukehara
Copy link
Member Author

DONE:

$ snmpwalk -v 2c -c public 127.0.0.1:4000 .1.3.6.1.4.1.35450
SNMPv2-SMI::enterprises.35450.34.1.0 = STRING: "gateway_0@127.0.0.1"
SNMPv2-SMI::enterprises.35450.34.2.0 = Gauge32: 466
SNMPv2-SMI::enterprises.35450.34.3.0 = Gauge32: 83473665
SNMPv2-SMI::enterprises.35450.34.4.0 = Gauge32: 66572063
SNMPv2-SMI::enterprises.35450.34.5.0 = Gauge32: 16931667
SNMPv2-SMI::enterprises.35450.34.6.0 = Gauge32: 6880204
SNMPv2-SMI::enterprises.35450.34.7.0 = Gauge32: 466
SNMPv2-SMI::enterprises.35450.34.8.0 = Gauge32: 80879909
SNMPv2-SMI::enterprises.35450.34.9.0 = Gauge32: 63989941
SNMPv2-SMI::enterprises.35450.34.10.0 = Gauge32: 16909016
SNMPv2-SMI::enterprises.35450.34.11.0 = Gauge32: 6870034
SNMPv2-SMI::enterprises.35450.34.12.0 = Gauge32: 0
SNMPv2-SMI::enterprises.35450.34.13.0 = Gauge32: 8
SNMPv2-SMI::enterprises.35450.34.14.0 = Gauge32: 0
SNMPv2-SMI::enterprises.35450.34.15.0 = Gauge32: 1795
SNMPv2-SMI::enterprises.35450.34.16.0 = Gauge32: 288
SNMPv2-SMI::enterprises.35450.34.17.0 = Gauge32: 0
SNMPv2-SMI::enterprises.35450.34.18.0 = Gauge32: 8 ## Num of cache-hit
SNMPv2-SMI::enterprises.35450.34.19.0 = Gauge32: 1 ## Num of cache-miss
SNMPv2-SMI::enterprises.35450.34.20.0 = Gauge32: 1501 ## Total num of cached objects
SNMPv2-SMI::enterprises.35450.34.21.0 = Gauge32: 33 ## Total size of cached objects
SNMPv2-SMI::enterprises.35450.34.31.0 = Gauge32: 76
SNMPv2-SMI::enterprises.35450.34.32.0 = Gauge32: 110719003
SNMPv2-SMI::enterprises.35450.34.33.0 = Gauge32: 75
SNMPv2-SMI::enterprises.35450.34.34.0 = Gauge32: 108421665

@yosukehara
Copy link
Member Author

I've confirmed we fixed this issue with the snmpwalk command and LeoFS' monitor:

screen shot 2016-03-09 at 11 56 58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants