[Nagiosplug-devel] [ nagiosplug-Bugs-1666601 ] Solaris 8 check_procs plugin hangs until timeout

SourceForge.net noreply at sourceforge.net
Tue Mar 6 18:31:24 CET 2007


Bugs item #1666601, was opened at 2007-02-22 23:33
Message generated for change (Comment added) made by tonvoon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1666601&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General plugin execution
Group: None
>Status: Pending
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: John R. Taisto (jtaisto)
>Assigned to: Ton Voon (tonvoon)
Summary: Solaris 8 check_procs plugin hangs until timeout

Initial Comment:
check_procs (nagios-plugins 1.4.6) 1.57

Always exits with a timeout no matter how long it's given.  

Example 1:

$plugins/check_procs -w 10 -c 20 --metric=CPU -t 10
CRITICAL - Plugin timed out after 10 seconds

Example 2:

plugins/check_procs -w 10 -c 20 --metric=CPU -t 60
CRITICAL - Plugin timed out after 60 seconds

Solaris 8 (Generic kernel -44)
Compiled with gcc 3.4.6 (SPARC) (-O2 -m64)

No errors reported and binary gets created:
Other plugins seem to work fine:

No missing libraries:

$ ldd plugins/check_procs
        libnsl.so.1 =>   /usr/lib/64/libnsl.so.1
        libsocket.so.1 =>      /usr/lib/64/libsocket.so.1
        libc.so.1 =>     /usr/lib/64/libc.so.1
        libdl.so.1 =>    /usr/lib/64/libdl.so.1
        libmp.so.2 =>    /usr/lib/64/libmp.so.2
        /usr/platform/SUNW,Sun-Blade-100/lib/sparcv9/libc_psr.so.1

Truss output:

truss -c ./plugins/check_procs -w 10 -c 20 --metric=CPU -t 10
CRITICAL - Plugin timed out after 10 seconds
signals ------------
SIGALRM            1
total:             1

syscall              seconds   calls  errors
_exit                    .00       1
fork                     .00       1
read                    2.04  138822
write                    .00       1
open                     .00      12      1
close                    .00      13
brk                      .00       4
stat                     .00      40     29
lseek                    .00       3      2
getpid                   .00       1
alarm                    .00       1
fstat                    .00       1
kill                     .01       1
pipe                     .00       2
ioctl                    .00       2      1
execve                   .00       1
sigaction                .00       1
mmap                     .00      32
munmap                   .00       5
setrlimit                .00       1
getrlimit                .00       1
memcntl                  .00       4
resolvepath              .00      12
                     -------  ------   ----
sys totals:             2.05  138962     33
usr time:                .53
elapsed:               10.04


----------------------------------------------------------------------

>Comment By: Ton Voon (tonvoon)
Date: 2007-03-06 17:31

Message:
Logged In: YES 
user_id=664364
Originator: NO

John,

Can you please try the snapshot at http://nagiosplug.sf.net/snapshot. The
ps command has changed from pst3 to /usr/ucb/ps for Solaris.

I've marked this call in pending. Please update if there is still a
problem.

Ton

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1666601&group_id=29880




More information about the Devel mailing list