[Nagiosplug-devel] oddity about check_procs plugin and solaris

Philip Brown ppb at usc.edu
Thu Mar 26 18:51:19 CET 2009


Duncan Ferguson wrote:
> 
> 
> /usr/bin/ps truncates the argument field to (iirc) 64 character so you 
> cannot search on the whole argument string when matching some command 
> strings.  This is a compile time setting taken from the system include 
> files provided by Sun and hence is in the kernel..

i'm aware of that..... but 64 chars is long enough for our purposes here.



> The current version of pst3 attempts to run the same way as /usr/ucb/ps 
> and it can be run as non-root but then it only fetches details for the 
> current user rather than all users.  If you want pst3 to not require 
> root then this is the area you can work on.
> 
> If I can find some tuit's I may have a look sometime next week.
> 

Please note that, while solaris 8 /bin/ps eventually calls a setuid root 
binary, solaris 9 and later does not.


Ple also note that we dont like installing setuid binaries from 3rd parties, 
even if we compile it ourselves. So it would be nice to have a 
--without-pst3 option, for configure.
As mentioned, the 64chars is plenty long enough for our purposes.




More information about the Devel mailing list