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

sysUpTime addition to snmptrap #1581

Merged
merged 1 commit into from
Oct 10, 2017

Conversation

nradonicich
Copy link
Contributor

@nradonicich nradonicich commented Sep 22, 2017

Updated snmptrap service to fix #1541

Required for all non-trivial PRs
  • Rebased/mergable
  • Tests pass
  • CHANGELOG.md updated
  • Sign CLA (if not already signed)

Copy link
Contributor

@nathanielc nathanielc left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, looks good. 👍

Just a small nit pick change requested below.

Once thats done can you add a CHANGELOG entry and rebase/squash your commits?

}
varBinds = append(varBinds, snmpgo.NewVarBind(snmpgo.OidSnmpTrap, oid))
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to append here, you can simply declare them both in the literal array above.

varBinds := snmpgo.VarBinds{
		snmpgo.NewVarBind(snmpgo.OidSnmpTrap, oid),
		snmpgo.NewVarBind(snmpgo.OidSysUpTime, snmpgo.NewTimeTicks(1000)),
 }

@nradonicich
Copy link
Contributor Author

I made the requested changes (CircleCI the passed the build) however CircleCI is now failing the build after I rebased/squash (and admittedly force updated to github) while it is completing properly on my localhost with the changes. Is there a way to retry the build in CircleCI?

@nathanielc nathanielc merged commit 0c2dd37 into influxdata:master Oct 10, 2017
nathanielc added a commit that referenced this pull request Oct 10, 2017
@nathanielc
Copy link
Contributor

@nradonicich Thanks!

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.

snmpTrap alert type does not send sysUpTime in trap PDU
2 participants