[Nagiosplug-devel] [ nagiosplug-Feature Requests-2998166 ] check_procs and Solaris Zones

SourceForge.net noreply at sourceforge.net
Tue May 11 14:36:41 CEST 2010


Feature Requests item #2998166, was opened at 2010-05-07 15:31
Message generated for change (Comment added) 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 ;)


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

>Comment By: Volker Hein (semaphoric)
Date: 2010-05-11 14:36

Message:
Also see this posting from devel-mailing-list:

https://sourceforge.net/mailarchive/forum.php?thread_name=60721B67EAF0994EAFFB561767B7001404817E9D%40nets13ha.ww300.siemens.net&forum_name=nagiosplug-devel

( note to self: first look, then request )



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

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