Why does Solaris use pst3 for check_procs?

Posted by tonvoon on 28 April 2009 - 4:01pm

Solaris systems restrict the information that is available when you run ps. On other Unix systems, running ps will list you the entire arguments, but Solaris restricts the arguments to the first 64 characters at the kernel.

This is a problem if you need to access the arguments to find out a specific process (common for listing java programs).

/usr/ucb/ps does list the full arguments, but only for your own processes. If you are root, then running /usr/ucb/ps can get the full arguments for all processes. However, the columns for RSS and VSZ merge together when the values are too large and check_procs cannot pull the value out correctly.

The chosen approach is to create our own ps-like command, pst3. This outputs the required information in a known format for check_procs to parse. This is the default if you run ./configure on a Solaris system.

Because pst3 needs access to some kernel structures, it needs to be compiled in 32 and 64 bit modes.

If you are comfortable with the limitations, it is possible to use a Solaris ps command by specifying these options to ./configure:

--with-ps-command="/usr/bin/ps -eo 's uid pid ppid vsz rss pcpu etime
comm args'" \
--with-ps-format="%s %d %d %d %d %d %f %s %s %n" \
--with-ps-cols=10 \
--with-ps-varlist="procstat,&procuid,&procpid,&procppid,\
&procvsz,&procrss,&procpcpu,procetime,procprog,&pos"

(The with-ps-varlist should be on one line - separated here for readability).

Comment viewing options
Select your preferred way to display the comments and click "Save settings" to activate your changes.
If decide to perform the

If decide to perform the essay writer paper, you would have to remember that it demands a lot of work! Some students fail their research paper, because they do not know how to write! It’s bitter, but the order essays service will help these people any time they want.

Posted by xMKristin on 2 January 2010 - 7:32pm
Very Thnks By Posted by sohbetsyntax on 8 January 2010 - 5:42pm
College assignment writing

College assignment writing help for all levels: term papers and research papers - Custom Essays

Posted by matthew.t on 30 January 2010 - 10:14am
This outputs the required

This outputs the required information in a known format for check_procs to parse. This is the default if you run
Pay As You Go Mobile Phone||Best Mobile Phone Deals

Posted by deff_lepp on 1 February 2010 - 7:25pm
Need to make reliable OS

Need to make reliable OS thats why solaris use it.
Regards,
online Game CD-Keys

Posted by hens on 3 February 2010 - 2:02pm
Thank you very much for that

Thank you very much for that article.its useful for sohpet and e okul veli Do you know that ? kadın its useful for

Posted by gurbet on 3 February 2010 - 8:59pm
What are you doing ? ucuz

What are you doing ? ucuz oteller come on ! sohbet okey !

Posted by gurbet on 7 February 2010 - 1:32am
Solaris- a UNIX-based

Solaris- a UNIX-based operating system introduced by Sun Microsystems in 1992 as the successor to SunOS.

Research Papers
Buy Term Papers

Posted by BrianMullins on 9 January 2010 - 7:35am
this post is really the best

this post is really the best article and I guess that one should buy custom essay papers or essay writing to know a little bit more close to that from the essay writing services.

Posted by mlElla on 13 January 2010 - 3:41pm
Do you know that you will to

Do you know that you will to find the interesting issue close to custom essay and even about this post in the professional essay writing service. Therefore, you a possibility to try that.

Posted by Kristinzk25 on 21 January 2010 - 4:27pm
We need great exportation.

We need great exportation. Now you can see centreon how use the nagios.
Regards,
Granite Worktops

Posted by ricy on 23 January 2010 - 10:29am
Go to the nagios official

Go to the nagios official for then you will get the anser.
regards,
London Ontario Real Estate

Posted by hana on 23 January 2010 - 4:40pm
"Solaris systems restrict

"Solaris systems restrict the information that is available when you run ps"yeah.i have heard about this before.and this is the first time that i have seen a related article.thanks for sharing this with us.really helpful.
live web cam girls

Posted by paul martin on 29 January 2010 - 12:39pm
Solaris improves the

Solaris improves the security in database related OS.
Runi from Office space nottingham

Posted by rowan.silva on 31 January 2010 - 4:20pm
When I try to compile pst3

When I try to compile pst3 with the 64 bit shared object using this command: ... how will this recognize spaces?
Bol.com kortingscodes

Posted by hansi222 on 2 February 2010 - 4:14pm
Your research referring to

Your research referring to this topic seems to be good and lots of scholars should use this for their dissertation form. But some people permanently utilize the support of the dissertation service.

Posted by GeenaNr31 on 2 February 2010 - 4:29pm
Professional thesis

Professional thesis sentences about this post finished by custom thesis service or dissertation service must be a really good move to the success.

Posted by GeenaNr31 on 2 February 2010 - 5:20pm
To be successful means to

To be successful means to reach the A+ level and for this, students have to show the great quality custom write. But is this available to write it not taking an assistance of the research paper writing service? Yes, that’s possible, but it can be more simple to buy term paper related to this good post online.

Posted by CHLOE20Xv on 5 February 2010 - 9:39pm
Thank you very much for that

Thank you very much for that article.its useful for sohpet and e okul veli Do you know that ? kadın its useful for скачать реферат туризм рефераты купити bluetooth bluetooth акумуляторні батареї мобільний телефон ykapral2

Posted by Ronald Drevich on 6 February 2010 - 5:45pm
I was able to get

I was able to get nagios-plugins compiled in Solaris 10 with GCC. The problem I now have has to do with the check_procs command. .... any ps arguments since we now use pst3 which is part of the package. ... Try running check_procs -vv This gives you the executable (pst3) including complete pathname.
Toronto escorts

Posted by billabong on 7 February 2010 - 1:03pm