8000 Add a Count option to snmp plugin by efuss · Pull Request #3504 · collectd/collectd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add a Count option to snmp plugin #3504

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

Merged
merged 3 commits into from
Jul 30, 2020
Merged

Add a Count option to snmp plugin #3504

merged 3 commits into from
Jul 30, 2020

Conversation

efuss
Copy link
Contributor
@efuss efuss commented Jul 13, 2020

ChangeLog: A count option was added allowing to gather the number of table entries (matching given criteria) rather than their values.

Add a Count option to the snmp plugin allowing to gather the number of table entries (matching given criteria) rather than their values.
This is especially useful in combination with the recently introduced Filter options.

Example: Count number of total/connected stations on a (Lancom) Access Point.

efuss added 2 commits July 13, 2020 16:35
Add a Count option to the snmp plugin allowing to gather the number of table entries (matching given criteria) rather than their values.
This is especially useful in combination with the recently introduced Filter options.

Example: Count number of total/connected stations on a (Lancom) Access Point.

Indentation changes to existing code are deferred to the next commit in order ease review.
Mechanical indentation changes intentionally exempted from the last commit (to facilitate review).
@efuss efuss requested a review from a team as a code owner July 13, 2020 14:41
Allow the value to be of an type other than DS_COUNTER when using the Count option.
I'm sure this can be done more elgantly.
Copy link
Member
@mrunge mrunge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!

I have a small nit.

@efuss
Copy link
Contributor Author
efuss commented Jul 17, 2020 via email

@mrunge
Copy link
Member
mrunge commented Jul 23, 2020

I have a small nit.
Which is?

Oh, yes! Mentioning this helps. Sorry about that.

@octo dropped absolute counters in 97374e8 , it may be wise to just remove that from this patch as well.

@efuss
Copy link
Contributor Author
efuss commented Jul 23, 2020 via email

@mrunge
Copy link
Member
mrunge commented Jul 30, 2020

yes, that's correct, that's in 6.0. So, for 6.0 there is some change required.

@efuss
Copy link
Contributor Author
efuss commented Jul 30, 2020 via email

@mrunge
Copy link
Member
mrunge commented Jul 30, 2020

I'd update the PR and drop DS_TYPE_ABSOLUTE right now. We removed it, since it was not widely used, if it was used at all.

Anyways, that can be done in another PR, I'm good with mer 86D2 ging this here.

@mrunge mrunge merged commit 8ac5ecf into collectd:main Jul 30, 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

Successfully merging this pull request may close these issues.

2 participants
0