Skip to content

Commit

Permalink
Merge pull request #29 from navidys/develop
Browse files Browse the repository at this point in the history
added /proc/<pid>/net/snmp6
  • Loading branch information
navidys authored Aug 25, 2024
2 parents 68c7bb0 + 30d667b commit d3fed9f
Show file tree
Hide file tree
Showing 4 changed files with 390 additions and 0 deletions.
1 change: 1 addition & 0 deletions FEATURES.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Supported Features
* net/
* netstat
* snmp
* snmp6

*`/proc/buddyinfo`

Expand Down
14 changes: 14 additions & 0 deletions examples/process_net_snmp6.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
use procsys::process;

fn main() {
let sys_proc = process::collect(2).expect("system proc 2");
let sys_proc_netsnmp6 = sys_proc.net_snmp6().expect("system proc 2 net snmp6");

match serde_json::to_string_pretty(&sys_proc_netsnmp6) {
Ok(output) => println!("{}", output),
Err(err) => {
log::error!("{}", err);
std::process::exit(1);
}
}
}
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub mod process_cgroup;
pub mod process_io;
pub mod process_limits;
pub mod process_net_snmp;
pub mod process_net_snmp6;
pub mod process_netstat;
pub mod process_ns;
pub mod swaps;
Expand Down
Loading

0 comments on commit d3fed9f

Please sign in to comment.