[Nagiosplug-devel] [ nagiosplug-Feature Requests-2998166 ] check_procs and Solaris Zones
SourceForge.net
noreply at sourceforge.net
Fri May 7 15:31:58 CEST 2010
Feature Requests item #2998166, was opened at 2010-05-07 15:31
Message generated for change (Tracker Item Submitted) made by semaphoric
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397600&aid=2998166&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: None
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: Volker Hein (semaphoric)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_procs and Solaris Zones
Initial Comment:
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 ;)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397600&aid=2998166&group_id=29880
More information about the Devel
mailing list