[Nagios-users] how to check for the process owner using check_procs2

2007-02-27 Thread Masoud Tabrizi
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.phpp=sourceforgeCID=DEVDEV___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] how to check for the process owner using check_procs2

2007-02-27 Thread Hari Sekhon
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.phpp=sourceforgeCID=DEVDEV


___
Nagios-users mailing list
Nagios-users@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
-
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.phpp=sourceforgeCID=DEVDEV___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] how to check for the process owner using check_procs2

2007-02-27 Thread Masoud Tabrizi
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

[EMAIL PROTECTED]

+++

  _  

From: Hari Sekhon [mailto:[EMAIL PROTECTED] 
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
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
p=sourceforgeCID=DEVDEV
 





  _  



 
___
Nagios-users mailing list
Nagios-users@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
-
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.phpp=sourceforgeCID=DEVDEV___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] how to check for the process owner using check_procs2

2007-02-27 Thread Hari Sekhon

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

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

+++



*From:* Hari Sekhon [mailto:[EMAIL PROTECTED]
*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.phpp=sourceforgeCID=DEVDEV 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 






 
___

Nagios-users mailing list
Nagios-users@lists.sourceforge.net mailto:Nagios-users@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
-
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.phpp=sourceforgeCID=DEVDEV___
Nagios-users mailing list
Nagios-users@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