summaryrefslogtreecommitdiffstats
path: root/plugins/check_nagios.c
diff options
context:
space:
mode:
authorM. Sean Finney <seanius@users.sourceforge.net>2005-05-25 00:43:20 (GMT)
committerM. Sean Finney <seanius@users.sourceforge.net>2005-05-25 00:43:20 (GMT)
commit4e19425ce697ce17257b0db904a656e3c8557911 (patch)
tree493a0d1ee9441a1c57a46cde4dab504b295f20e4 /plugins/check_nagios.c
parent8134ec30d1fdf9b9921885154c900d2a88707676 (diff)
downloadmonitoring-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c
index 0176983..089ff66 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;