Commit Graph

593 Commits (d098bf135ffefecb49f3a41d8919dd7185f317c1)
 

Author SHA1 Message Date
Robert Weber 6496b57b3d Need to promote this error 9 years ago
Robert Weber 21daedd6b4 There are two possible error scenarios for CallPgrep. One indicates a broken
system (no pgrep command) and one is a normal error state of pgrep
meaning no processes found for the criteria given (in this case the parent
pid does not exist or the process simply has no children).  The later case
is quite usefull to know about so I added a static error for this case.
9 years ago
shirou cc040ddf72 Merge pull request #139 from rburchell/master
host_linux: Skip everything that isn't a normal process.
9 years ago
Robin Burchell 55cacb4730 host_darwin: Use a named constant for USER_PROCESS.
Matches the host_linux change.
9 years ago
Robin Burchell 3fc7bc1ef7 host_linux: Skip everything that isn't a normal process.
host_darwin does the same filtering. Not doing this gives us some rather strange
entries that likely aren't what we want.

Before:
    {"user":"reboot","terminal":"~","host":"3.10.0-327.4.5.el7.x86_64","started":1454378260}
    {"user":"LOGIN","terminal":"ttyS0","host":"","started":1454378270}
    {"user":"LOGIN","terminal":"tty1","host":"","started":1454378270}
    {"user":"runlevel","terminal":"~","host":"3.10.0-327.4.5.el7.x86_64","started":1454378276}
    {"user":"root","terminal":"pts/0","host":"vpn","started":1454404513}

After:
    {"user":"root","terminal":"pts/0","host":"vpn","started":1454404513}
9 years ago
shirou 41f99949e3 Merge pull request #141 from ovear/master
fix callps command generate error
9 years ago
Heretic a0692cc17a 1)fix callps command generate error 9 years ago
shirou 9d8191d6a6 Merge pull request #137 from shirou/process/add_netiocounter_for_linux
[WIP] net,process[linux]: add process.NetIOCounter and net.NetIOCounterByFile.
9 years ago
shirou 61dd483154 Merge pull request #138 from sparrc/cs-ps-a
Add -a when calling ps on darwin
9 years ago
Cameron Sparr f251637a93 Add -a when calling ps on darwin 9 years ago
Shirou WAKAYAMA d680853370 net,process[linux]: add process.NetIOCounter and net.NetIOCounterByFile. 9 years ago
shirou 85bf0974ed Merge pull request #135 from influxdata/process-percent
Optimize per-process percentage calculation
9 years ago
Cameron Sparr 6688f35cd1 Optimize per-process stats calculation 9 years ago
shirou 8850f58d70 Merge pull request #134 from pquerna/pq/arch_add_release
Get Arch Linux Version from LSB
9 years ago
Paul Querna 008f2b4e18 Get Arch Linux Version from LSB 9 years ago
shirou b39e95359a Merge pull request #133 from sekimura/gofmt
format go program with go 1.5.2 "go fmt"
9 years ago
Masayoshi Sekimura 3a1fa5dc80 format go program with go 1.5.2 "go fmt" 9 years ago
shirou ef151b7ff7 Merge pull request #132 from shawnps/patch-1
fix typos
9 years ago
Shawn Smith 9cc9e82920 fix typos 9 years ago
shirou f58654fa1c Merge pull request #122 from jimmystewpot/add_netfilter
Add nf_conntrack counter support
9 years ago
shirou 134e15be26 Merge pull request #130 from sparrc/ibdnW
Add -W flag to netstat on BSD systems
9 years ago
shirou ff98b44420 Merge pull request #131 from yhat/cpu-race-condition-fix
CPU race condition fix
9 years ago
Ryan J. O'Neil 4d7275adf7 Rebrandoning back. 9 years ago
Ryan J. O'Neil 2434a327b9 Removing race condition in CPUPercent calculation. 9 years ago
Ryan J. O'Neil 1b9883dc76 Rebrandoning so we can patch this library and have it work in our Godeps. 9 years ago
Cameron Sparr 432bcbd056 Add -W flag to netstat on BSD systems
This prevents netstat from truncating the interface name to 5
characters. See https://github.com/influxdb/telegraf/issues/438
9 years ago
shirou de9cd47bb0 Merge pull request #127 from DataDog/fix-process-mem-unit-osx
process[darwin] Fix unit of RSS and VMS
9 years ago
shirou dc452207f2 Merge pull request #128 from ontsysmattholcomb/use-env-proto-counters
using HostProc for protocounters in linux
9 years ago
Olivier Vielpeau ec627e67ac process[darwin] Fix unit of RSS and VMS
Should be bytes, `ps` returns Kbytes.
9 years ago
shirou 76c6e2ccc8 Merge pull request #125 from okmeter/fix_net_io_counters_freebsd
[net] fix panic on freebsd (netstat error with exit code 0)
9 years ago
shirou 123e227491 Merge pull request #126 from sparrc/godoc-badge
Add a godoc badge
9 years ago
Cameron Sparr ec692ecfcf Add a godoc badge 9 years ago
Nikolay Sivko 906df3ed85 [net] fix panic on freebsd (netstat error with exit code 0) 9 years ago
Matt Holcomb 21ccfe6b60 using HostProc for protocounters in linux 9 years ago
James Lamb a9e946c7dd change the snakecase to reflect the files being read 9 years ago
James Lamb 5700150054 Updated README.rst and included updated syntax to be more uniform with the other code 9 years ago
James Lamb 001ff20588 Merge branch 'master' into add_netfilter 9 years ago
James Lamb 22f35fd518 add netfilter counter support 9 years ago
shirou fc932d9090 Merge pull request #121 from jimmidyson/stat-brackets-process-name
Handle process filenames with spaces in the name
9 years ago
Jimmi Dyson 7e4cef7a30 Handle process filenames with spaces in the name
Fixes #120
9 years ago
James Lamb dfff8af4df add nf_conntrack statistics to net_linux to query iptables/netfilter conntrack limits 9 years ago
Shirou WAKAYAMA 759e96ebaf Merge branch 'master' of github.com:shirou/gopsutil 9 years ago
Shirou WAKAYAMA 223c809234 disk[unix]: revert 61cb121. psutil uses Available as Free. 9 years ago
shirou 59c2eff5e8 Merge pull request #118 from okmeter/fix_disk_freebsd386
[disk] fix build for freebsd 386
9 years ago
Nikolay Sivko 46c34a9d1e [disk] fix build for freebsd 386 9 years ago
shirou 91e273aef0 Merge pull request #115 from okmeter/fix_swap_freebsd
[freebsd] fix SwapMemory for hosts without swap
9 years ago
Nikolay Sivko 075839d9f1 fix imports 9 years ago
shirou 3c39329606 Merge pull request #116 from okmeter/freebsd_proc_info
process[freebsd]: Cmdline, IOCounters, CPUTimes implemented
9 years ago
Nikolay Sivko 45dcaa3b91 process[freebsd]: Cmdline, IOCounters, CPUTimes implemented 9 years ago
Nikolay Sivko d4e648e253 [freebsd] fix SwapMemory for hosts without swap 9 years ago