I was doing something like this:
"localzone" string
=> execresult("/sbin/zonename","noshell");
"process_check[$(name)]" string
=> execresult("/usr/bin/pgrep -z$(checks.localzone) $(name)","noshell");
Although I have now switched to using Solaris SMF to manage services.
On Mar 29, 2010 9:54am, "Welborn, David" <[email protected]> wrote:
I recently solved a problem with process "miscounting" on Solaris 10 ...
in the Global Zone.
Running 'ps -ef' in the Global Zone on Solaris 10 will report all
processes running in *all* of the zones (global and non-global).
The solution is to use the 'cfrc' file ! ( .. and I bet you also thought
you would never see the day! ;-)
So, on my Solaris 10 servers !!! in the GLOBAL zone ONLY !!! I have
created the file /var/cfengine/inputs/cfrc with the following line:
solaris.psopts: -fz global
And that solves it: cfagent only sees processes running in the global
zone.
Regards,
David
******************************************************************************************
This message may contain confidential or proprietary information intended
only for the use of the
addressee(s) named above or may contain information that is legally
privileged. If you are
not the intended addressee, or the person responsible for delivering it
to the intended addressee,
you are hereby notified that reading, disseminating, distributing or
copying this message is strictly
prohibited. If you have received this message by mistake, please
immediately notify us by
replying to the message and delete the original message and any copies
immediately thereafter.
Thank you.
******************************************************************************************
FACLD
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine