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

check-procs: check PPID #64

Merged
merged 2 commits into from
Feb 3, 2016
Merged

check-procs: check PPID #64

merged 2 commits into from
Feb 3, 2016

Conversation

hfm
Copy link
Contributor

@hfm hfm commented Jan 28, 2016

I add new option for checking PPID.
It checks PPID of target processes like the following:

$ ./check-procs --ppid 1 -p bash -W 0 -C 0
Procs OK: Found 0 matching processes; cmd /bash/; ppid 1

I add new option for checking PPID.
It checks PPID of target processes like the following:

```
$ ./check-procs --ppid 1 -p bash -W 0 -C 0
Procs OK: Found 0 matching processes; cmd /bash/; ppid 1
```
@hfm
Copy link
Contributor Author

hfm commented Jan 28, 2016

check_procs_unix.go is not using func parsePerfProc() ?

https://travis-ci.org/mackerelio/go-check-plugins/builds/105369944#L331-L338

# github.com/mackerelio/go-check-plugins/check-procs
check-procs/check_procs_unix.go:67: cannot use vsz (type int64) as type string in field value
check-procs/check_procs_unix.go:67: cannot use pcpu (type float64) as type int64 in field value
check-procs/check_procs_unix.go:67: cannot use thcount (type int64) as type float64 in field value
check-procs/check_procs_unix.go:67: cannot use "" (type string) as type int64 in field value
check-procs/check_procs_unix.go:67: cannot use esec (type int64) as type string in field value
check-procs/check_procs_unix.go:67: too few values in struct initializer

@hfm
Copy link
Contributor Author

hfm commented Jan 28, 2016

Okay, Travis CI build passed 😌

Songmu added a commit that referenced this pull request Feb 3, 2016
@Songmu Songmu merged commit d2e6b12 into mackerelio:master Feb 3, 2016
@hfm hfm deleted the check-procs-ppid branch February 4, 2016 02:16
@Songmu Songmu mentioned this pull request Feb 4, 2016
@itchyny itchyny mentioned this pull request Nov 18, 2016
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.

None yet

2 participants