From 9f3d864fd3e47d4e728b196b1b6948a8a5e47e4e Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Thu, 28 Feb 2008 16:21:59 +0000 Subject: Reverted check_procs for solaris back to using pst3 due to truncation for argument fields using other methods git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1937 f882894a-f735-0410-b71e-b25c423dba1c --- plugins-root/Makefile.am | 3 ++- plugins-root/pst3.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins-root') diff --git a/plugins-root/Makefile.am b/plugins-root/Makefile.am index e61ebc75..3e6ee43d 100644 --- a/plugins-root/Makefile.am +++ b/plugins-root/Makefile.am @@ -7,7 +7,7 @@ INCLUDES = -I.. -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$( datadir = @datadir@ localedir = $(datadir)/locale DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ -LIBS = @LIBINTL@ @LIBS@ @SSLLIBS@ +LIBS = @LIBINTL@ @LIBS@ noinst_PROGRAMS = check_dhcp check_icmp @EXTRAS_ROOT@ @@ -68,6 +68,7 @@ install-exec-local: $(noinst_PROGRAMS) # the actual targets check_dhcp_LDADD = $(NETLIBS) check_icmp_LDADD = $(NETLIBS) $(SOCKETLIBS) +pst3_CFLAGS = @PST3CFLAGS@ pst3_LDADD = -lkvm check_dhcp_DEPENDENCIES = check_dhcp.c $(NETOBJS) $(DEPLIBS) diff --git a/plugins-root/pst3.c b/plugins-root/pst3.c index bf4b40d3..87340062 100644 --- a/plugins-root/pst3.c +++ b/plugins-root/pst3.c @@ -187,9 +187,10 @@ static int HandlePsInfo (char *szPath, psinfo_t *pPsInfo) thisProg = myArgv[0]; /* Display the ps columns (except for argv) */ - printf("%c %5d %5d %6lu %6lu %4.1f %s ", + printf("%c %5d %5d %5d %6lu %6lu %4.1f %s ", pPsInfo->pr_lwp.pr_sname, (int)(pPsInfo->pr_euid), + (int)(pPsInfo->pr_pid), (int)(pPsInfo->pr_ppid), (unsigned long)(pPsInfo->pr_size), (unsigned long)(pPsInfo->pr_rssize), -- cgit v1.2.3