[Nagiosplug-help] check_procs on solaris global zone with local zones

Michael Spindler michael.spindler at baaderbank.de
Tue Nov 24 10:34:19 CET 2009


Hi all,

we use solaris 10 zones on all our solaris hosts. In a local zone, I can use check_procs without any problems, but in a global zone, check_procs sees all rpocess from local zones also.

Example:
One local zone called gcczone on a solaris host:
  ID NAME             STATUS     PATH                           BRAND    IP
   0 global           running    /                              native   shared
  31 gcczone          running    /rpool/zones/gcczone           native   shared

The syslogd is running in the global and in the local zone (output of "ps -efZ" in global zone):
 gcczone    root 10787     1   0   Oct 20 ?           0:02 /usr/sbin/syslogd
  global    root  5724     1   0   Nov 20 ?           0:01 /usr/sbin/syslogd


If I check for the process with check_procs I get the following (output of "check_procs -C syslogd"):

local zone:
PROCS OK: 1 process with command name 'syslogd'

global zone:
PROCS OK: 2 processes with command name 'syslogd'

check_procs in the global zone counts the processes in all zones, but should only count the ones in the global zone.
Anyone faced this problem already? My quick solution is to write my own check_procs which is zone aware, but I would prefer a community driven version.


Best regards,
Michael Spindler





More information about the Help mailing list