Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#64 check_procs and Solaris Zones

open
nobody
None
5
2010-05-07
2010-05-07
Volker Hein
No

Hello there,

check_procs should ( optionally ) ignore processes which are not running on the same zone as the one check_procs was executed on.

As you already use "pst3" custom ps for Solaris, you could add the following lines to the code:

( SOLARIS_10 has to be defined via configure... )

#include "config.h"

#ifdef SOLARIS_10
#include <zone.h>
#endif

...
... and right after skip of system processes:

#ifdef SOLARIS_10
/* processes from a different zone should be ignored */
if ( getzoneid() != psinfo.pr_zoneid ) {
continue;
}
#endif

Thanks in advance ;)

Discussion