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

SNMP Collectd counters are not getting displayed on Graphite UI #84

Open
ArshiaSayed opened this issue May 23, 2017 · 0 comments
Open

Comments

@ArshiaSayed
Copy link

I am using collectd to collect my snmp counters and send it to graphite docker.
SNMP counters are coming but graphs are not coming
My snmpd.conf file is

sec.name source community

com2sec notConfigUser default public
com2sec MyRad 172.16.134.222 xxxx
com2sec MyRad 172.16.111.195 xxxx

Second, map the security name into a group name:

groupName securityModel securityName

#group localgroup v1 local
group notConfigGroup v1 notConfigUser

#group localGroup v2c local
group notConfigGroup v2c notConfigUser
group MyRadGroup v2c MyRad
group MyRadGroup v1 MyRad

Third, create a view for us to let the group have rights to:

Make at least snmpwalk -v 1 localhost -c public system fast again.

name incl/excl subtree mask(optional)

#view systemview included .1.3.6.1.2.1.25.1.1
view MyRadView included .1

Finally, grant the group read-only access to the systemview view.

group context sec.model sec.level prefix read write notif

access notConfigGroup "" any noauth exact systemview none none
access MyRadGroup "" any noauth exact MyRadView MyRadView none

###############################################################################

System contact information

It is also possible to set the sysContact and sysLocation system

variables through the snmpd.conf file:

syslocation Unknown (edit /usr/local/share/snmp/snmpd.conf)
syscontact Root root@localhost (configure /etc/snmp/snmp.local.conf)

Added for support of bcm5820 cards.

pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat

###############################################################################

Further Information

See the snmpd.conf manual page, and the output of "snmpd -H".

master agentx
agentXSocket tcp:172.16.134.222:1070

My write graphite plugin configuration in collectd.conf file is

Host "172.16.111.195" Port "2003" Protocol "tcp" LogSendErrors true Prefix "collectd" Postfix "collectd" StoreRates true AlwaysAppendDS false EscapeCharacter "_"

and snmp plugin is

<Data "total_auth_req_list">
Type "Total_Auth_Requests_List"
Table false
Instance ""
Values ".1.3.6.1.2.1.67.1.1.1.1.5.0"

<Host "localhost.localdomain">
Address "172.16.134.222"
Version 2
Community "xxxx"
Collect "total_auth_req_list"
Interval 300

IF I do snmpwalk inside docker container I am getting the counters
snmpwalk -v2c -c xxxx 172.16.134.222 .1.3.6.1.2.1.67.1.1.1.1.5.0

But graph is not getting plotted, I am getting a blank graph.
Thanks in advance

Cactusbone pushed a commit to F4-Group/docker-graphite-statsd that referenced this issue Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant