diff options
author | M. Sean Finney <seanius@users.sourceforge.net> | 2005-05-25 00:43:20 +0000 |
---|---|---|
committer | M. Sean Finney <seanius@users.sourceforge.net> | 2005-05-25 00:43:20 +0000 |
commit | 4e19425ce697ce17257b0db904a656e3c8557911 (patch) | |
tree | 493a0d1ee9441a1c57a46cde4dab504b295f20e4 /plugins/check_nagios.c | |
parent | 8134ec30d1fdf9b9921885154c900d2a88707676 (diff) | |
download | monitoring-plugins-4e19425ce697ce17257b0db904a656e3c8557911.tar.gz |
fixes for check_procs:
- added support for printing the pid in all the ps outputs
- don't use the proc name to ignore self, use the pid vs getpid().
- initialize procetime to null string otherwise -vvv can have funny results
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1177 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_nagios.c')
-rw-r--r-- | plugins/check_nagios.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c index 0176983c..089ff669 100644 --- a/plugins/check_nagios.c +++ b/plugins/check_nagios.c | |||
@@ -49,6 +49,7 @@ main (int argc, char **argv) | |||
49 | char *temp_ptr; | 49 | char *temp_ptr; |
50 | FILE *fp; | 50 | FILE *fp; |
51 | int procuid = 0; | 51 | int procuid = 0; |
52 | int procpid = 0; | ||
52 | int procppid = 0; | 53 | int procppid = 0; |
53 | int procvsz = 0; | 54 | int procvsz = 0; |
54 | int procrss = 0; | 55 | int procrss = 0; |