Comments (1)
Looking at network.go
, it appears that we skip the first two lines of /proc/net/route
, when we should just be skipping a single line. See below.
func parseToLinuxRouteStruct(output []byte) (routeStruct, error) {
const (
destinationField = 1 // field containing hex destination address
)
lineNumber := 0
scanner := bufio.NewScanner(bytes.NewReader(output))
// Skip header line
if !scanner.Scan() {
return routeStruct{}, errors.New("Invalid linux route file")
}
for scanner.Scan() {
lineNumber++
if lineNumber == 1 {
// Skip header line.
continue
}
row := scanner.Text()
...
from agent.
Related Issues (20)
- Update GetNetOverflow function to use nstat instead of netstat HOT 2
- Nginx agent returns invalid metrics after the first correct result. HOT 1
- Uninstalling agent duplicates messages HOT 1
- nginx-agent packages do not have logrotate configuration HOT 1
- Bypass Nginx Cache HOT 2
- "Failed to get disk metrics, permission denied" log message is unhelpful
- Agent segfaults intermittently when it receives a SIGTERM or SIGINT
- Agent uses "nms" as its environment prefix HOT 1
- path to agent-dynamic.conf should be configurable HOT 2
- Access log pattern is not being set if access_log directive is set before log_format HOT 1
- Log formats without names and access logs without names will have log tailing fail silently
- How are NGINX Agent monitoring reports presented through Prometheus HOT 9
- "include" directive is not allowed within an "if" block HOT 4
- gogo protobuf is deprecated HOT 1
- How to let the agent collect the information in access.log? HOT 3
- Securing access to the agent API HOT 6
- How to config multiple grpcs proxy in same location with different headers? HOT 2
- How do I retrieve the NGINX config? HOT 2
- grpc and http cannot successfully listen to port HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from agent.