how to check for the process owner using check_procs2

Hari Sekhon hpsekhon at googlemail.com
Tue Feb 27 16:53:58 CET 2007


Try this

check_procs --user=hari

-h

Hari Sekhon



Masoud Tabrizi wrote:
>
> To make sure I can capture processes for a specific user. I have 
> several users running the same kind of processes and need to be able 
> distinguish based on the user account.
>
>  
>
> M
>
>  
>
> +++++++++++++++++++++++++++
>
> Masoud Tabrizi
>
> masoud.tabrizi at gmail.com <mailto:masoud.tabrizi at gmail.com>
>
> +++++++++++++++++++++++++++
>
> ------------------------------------------------------------------------
>
> *From:* Hari Sekhon [mailto:hpsekhon at googlemail.com]
> *Sent:* Tuesday, February 27, 2007 10:33 AM
> *To:* Masoud Tabrizi
> *Cc:* Nagios Users mailinglist
> *Subject:* Re: [Nagios-users] how to check for the process owner using 
> check_procs2
>
>  
>
> what exactly do you want? To make sure there are only x number of 
> processes running under that user account, or for all user accounts or 
> what?
>
> more details needed.
>
> -h
>
> Hari Sekhon
>
>
>
> Masoud Tabrizi wrote:
>
> I am trying to check for processes that run under a specific user 
> account on the server; Does anyone know how to do this?
>
> What I want to do would be the equivalent of "ps --ef | grep username 
> | grep java | wc --l" in the UNIX world
>
> Here is what I am using right now, but it is not enough to identify 
> the user which owns the process.
>
>  
>
> command[check_procs_test]=/... /check_procs2 java ge 2
>
>  
>
> Any help is greatly appreciated;
>
> Masoud
>
>  
>
>  
>
>  
>
>
> ------------------------------------------------------------------------
>
>
>  
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>  
>
>
> ------------------------------------------------------------------------
>
>
>  
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net <mailto:Nagios-users at lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070227/0b6aa472/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list