[Nagiosplug-devel] oddity about check_procs plugin and solaris

Duncan Ferguson Duncan.Ferguson at opsera.com
Thu Mar 26 11:46:55 CET 2009


On 25 Mar 2009, at 22:05, Philip Brown wrote:

> I've been compiling nagios-plugins version 1.4.13 on solaris.
>
> I noticed with distaste the "pst3" hack. which requires being  
> installed as
> ROOT??
>
> I find this nasty, since /bin/ps itself does not require root.
> So I've been attempting to get the pluging to work "the old  
> fashioned way",
> calling ps.
>

/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..

/usr/ucb/ps does provide the full argument string BUT merges some of  
the numerical columns together when the values are too high - i.e. you  
cannot tell where SZ finished and RSS starts.  There are no options to  
allow for amending the column separators.

pst3 was written to get around both of these problems.

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.

  Duncs

-- 
Duncan Ferguson
Senior Developer

-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 749 bytes
Desc: not available
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20090326/b75d4b6b/attachment.gif>
-------------- next part --------------


Opsera Limited | Unit 69 Suttons Business Park
Reading | Berkshire | RG6 1AZ | UK

Phone:   +44 (0) 845 057 7887
Mobile:   +44 (0) 7968 148 748
Skype:   duncan_j_ferguson     Email:   duncan.ferguson at opsera.com
www.opsera.com

Opsera Limited is registered in the UK under Company Number 5396532.  
Our registered office is Gorse View, Horsell Rise, Woking, Surrey,  
GU21 4RB.



More information about the Devel mailing list