<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.5921" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=901562912-31032010><FONT face=Arial size=2>Hi
all,</FONT></SPAN></DIV>
<DIV><SPAN class=901562912-31032010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=901562912-31032010><FONT face=Arial size=2>as I had the problem
that my check_procs in my Solaris 10 global-zone always also</FONT></SPAN></DIV>
<DIV><SPAN class=901562912-31032010><FONT face=Arial size=2>counts all processes
from other zones, I modified pst3.c the following way</FONT></SPAN></DIV>
<DIV><SPAN class=901562912-31032010><FONT face=Arial size=2>(diff is against
pst3.c from nagios-plugins 1.4.14): </FONT></SPAN></DIV>
<DIV><SPAN class=901562912-31032010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=901562912-31032010><FONT face=Arial size=2>diff -w pst3.c-orig
pst3.c<BR>53a54,56<BR>> #ifdef SOLARIS10<BR>> #include
<zone.h><BR>> #endif<BR>81a85,87<BR>> #ifdef
SOLARIS10<BR>> zoneid_t my_zoneid;<BR>>
#endif<BR>101a108,115<BR>> #ifdef SOLARIS10<BR>> /* get my
zone-id */<BR>> if ((my_zoneid = getzoneid()) == -1)
{<BR>> fprintf(stderr, "%s: cannot read my
zone-id\n");<BR>> exit(1);<BR>>
}<BR>> #endif<BR>><BR>157a172,178<BR>> #ifdef
SOLARIS10<BR>> /* process not running in my zone?
*/<BR>> if (my_zoneid != psinfo.pr_zoneid)
{<BR>>
continue;<BR>> }<BR>>
#endif<BR>><BR></FONT></SPAN></DIV>
<DIV><SPAN class=901562912-31032010><FONT face=Arial size=2>this will cause pst3
to output only processes from the zone it is running.</FONT></SPAN></DIV>
<DIV><SPAN class=901562912-31032010><FONT face=Arial size=2>(Makefile has to be
modified too to define "SOLARIS10" in CFLAGS)</DIV></FONT></SPAN>
<DIV><SPAN class=901562912-31032010><FONT face=Arial
size=2> </DIV></FONT></SPAN>
<DIV><SPAN class=901562912-31032010><FONT face=Arial size=2>maybe that's useful
for some others too :-)))</FONT></SPAN></DIV>
<DIV><SPAN class=901562912-31032010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=901562912-31032010><FONT face=Arial
size=2>christian</FONT></SPAN></DIV>
<DIV><SPAN class=901562912-31032010><FONT face=Arial
size=2> </DIV></FONT></SPAN>
<DIV> </DIV><!-- Converted from text/plain format -->
<P align=left><FONT
size=2>___________________________________________________________<BR><BR>
Christian Masopust<BR><BR> SIEMENS
AG SIS <SPAN class=218114306-15042009>SDE SVI CON
IPB</SPAN><BR> Tel: +43
(0) 5 1707 26866<BR> E-mail: <A
href="mailto:christian.masopust@siemens.com">christian.masopust@siemens.com</A><BR>
Addr: Austria, 1210 Vienna, Siemensstraße 90-92, B. 33, Rm.
243<BR><BR> Leader of the <A
href="http://www.rational-ug.org/groups.php?groupid=119">RUGA</A></FONT></P>
<P align=left><FONT size=2>
</FONT><SPAN lang=de-at><FONT face=Arial size=1>Firma: Siemens
Aktiengesellschaft Österreich, Rechtsform: Aktiengesellschaft,</FONT></SPAN>
<BR><SPAN lang=de-at><FONT face=Arial
size=1> Sitz: Wien, Firmenbuchnummer:
FN 60562 m,</FONT></SPAN> <BR><SPAN lang=de-at><FONT face=Arial
size=1> Firmenbuchgericht:
Handelsgericht Wien, DVR 0001708</FONT></SPAN> <FONT
size=2><BR>
___________________________________________________________<BR><BR></P></FONT>
<DIV> </DIV></BODY></HTML>