[Nagiosplug-help] check_procs on Solaris

Alex Moore asmoore at edge.net
Sun Oct 22 13:56:34 CEST 2006


On Solaris 8, both sparc and x86, I built 1.4.4 and check_procs runs
just fine. I tested most of the options and they all worked great.

In configure, I am using the following:
    --with-ps_command="/usr/bin/ps -eo 's uid pid ppid vsz rss pcpu
etime comm args' " \ --with-ps_format='%s %d %d %d %d %d %f %s %s %n' \
    --with-ps_cols=10 \
    --with-ps_varlist='procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos'
\
config.log has #defines HAVE_SNPRINTF 1 and #defines HAVE_VSNPRINTF 1.
no asprintf is defined.

However, on Solaris 9 and 10, I get a SEGV signal with the Solaris 8
binary.  I built nagios-plugins on Solaris 9 and the result is the same.
Here is some output from the test and gdb:
[amoore at mcsrv5
nagios-plugins-1.4.4]$ ./cswstage/opt/csw/libexec/nagios-plugins/check_procs
-w 20 -c 1024 -C sshd 
Bus Error
[amoore at mcsrv5 nagios-plugins-1.4.4]$ uname -a
SunOS mcsrv5 5.9 Generic_118558-17 sun4u sparc SUNW,Sun-Fire-V210

(gdb) run -w 1:2 -c 1:1024 -C sendmail
Starting
program: /export/nfs/csw/build/nagios-plugins-1.4.4/cswstage/opt/csw/libexec/nagios-plugins/check_procs
-w 1:2 -c 1:1024 -C sendmail

Program received signal SIGSEGV, Segmentation fault.
0xff146df8 in _smalloc () from /usr/lib/libc.so.1
(gdb) where
#0  0xff146df8 in _smalloc () from /usr/lib/libc.so.1
#1  0xff146e40 in malloc () from /usr/lib/libc.so.1
#2  0x00018f04 in vasprintf (ptr=0xffbff3c4, format=0x1bb80 "%s",
    ap=0xffbff354) at snprintf.c:860
#3  0x00018fb8 in asprintf (ptr=0xffbff3c4, format=0x1bb80 "%s")
    at snprintf.c:880
#4  0x0001242c in main (argc=7, argv=0xffbff874) at check_procs.c:192
(gdb)


How do I fix this?

I tried pst3, but got nothing out of that, except for a socket timeout.

Help please,

Alex Moore


-- 




More information about the Help mailing list