I got it working. Thanks for the tip. <br><br>
<div><span class="gmail_quote">On 10/10/08, <b class="gmail_sendername">Aaron Segura</b> <<a href="mailto:Aaron.Segura@cabelas.com">Aaron.Segura@cabelas.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div lang="EN-US" vlink="purple" link="blue">
<div>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Yes. Note the '-u' option.</span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">$ ./check_procs -h</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">check_procs (nagios-plugins 1.4.2) 1.46</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">Copyright (c) 1999 Ethan Galstad <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:nagios@nagios.org" target="_blank">nagios@nagios.org</a>>Copyright (c) 2000-2004 Nagios Plugin Development Team</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:nagiosplug-devel@lists.sourceforge.net" target="_blank">nagiosplug-devel@lists.sourceforge.net</a>></span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> </span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">Checks all processes and generates WARNING or CRITICAL states if the specified</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">metric is outside the required threshold ranges. The metric defaults to number</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">of processes. Search filters can be applied to limit the processes to check.</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> </span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">Usage: check_procs -w <range> -c <range> [-m metric] [-s state] [-p ppid]</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> [-u user] [-r rss] [-z vsz] [-P %cpu] [-a argument-array]</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> [-C command] [-t timeout] [-v]</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> </span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">Required Arguments:</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> -w, --warning=RANGE</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> Generate warning state if metric is outside this range</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> -c, --critical=RANGE</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> Generate critical state if metric is outside this range</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> </span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">Optional Arguments:</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> -m, --metric=TYPE</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> Check thresholds against metric. Valid types:</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> PROCS - number of processes (default)</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> VSZ - virtual memory size</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> RSS - resident set memory size</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> CPU - percentage cpu</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> ELAPSED - time elapsed in seconds</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> -t, --timeout=INTEGER</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> Seconds before connection times out (default: 10)</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> -v, --verbose</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> Extra information. Up to 3 verbosity levels</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> </span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">Optional Filters:</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> -s, --state=STATUSFLAGS</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> Only scan for processes that have, in the output of `ps`, one or</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> more of the status flags you specify (for example R, Z, S, RS,</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> RSZDT, plus others based on the output of your 'ps' command).</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> -p, --ppid=PPID</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> Only scan for children of the parent process ID indicated.</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> -z, --vsz=VSZ</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> Only scan for processes with vsz higher than indicated.</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> -r, --rss=RSS</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> Only scan for processes with rss higher than indicated.</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> -P, --pcpu=PCPU</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> Only scan for processes with pcpu higher than indicated.</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> -u, --user=USER</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> Only scan for processes with user name or ID indicated.</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> -a, --argument-array=STRING</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> Only scan for processes with args that contain STRING.</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> -C, --command=COMMAND</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> Only scan for exact matches of COMMAND (without path).</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> </span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">RANGEs are specified 'min:max' or 'min:' or ':max' (or 'max'). If</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">specified 'max:min', a warning status will be generated if the</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">count is inside the specified range</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> </span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">This plugin checks the number of currently running processes and</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">generates WARNING or CRITICAL states if the process count is outside</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">the specified threshold ranges. The process count can be filtered by</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">process owner, parent process PID, current state (e.g., 'Z'), or may</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">be the total number of running processes</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> </span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">Examples:</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> check_procs -w 2:2 -c 2:1024 -C portsentry</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> Warning if not two processes with command name portsentry. Critical</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> if < 2 or > 1024 processes</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> </span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> check_procs -w 10 -a '/usr/local/bin/perl' -u root</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> Warning alert if > 10 processes with command arguments containing </span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> '/usr/local/bin/perl' and owned by root</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> </span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> check_procs -w 50000 -c 100000 --metric=VSZ</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> Alert if vsz of any processes over 50K or 100K</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> check_procs -w 10 -c 20 --metric=CPU</span></font></p>
<p><font face="Lucida Console" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> Alert if cpu of any processes over 10% or 20%</span></font></p>
<div>
<div style="TEXT-ALIGN: center" align="center"><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">
<hr align="center" width="100%" size="2">
</span></font></div>
<p><b><font face="Tahoma" size="2"><span style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</span></font></b><font face="Tahoma" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> Kenneth <span class="st" id="st" name="st">Holter</span> [mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:kenneho.ndu@gmail.com" target="_blank">kenneho.ndu@gmail.com</a>] <br>
<b><span style="FONT-WEIGHT: bold">Sent:</span></b> Friday, October 10, 2008 8:18 AM<br><b><span style="FONT-WEIGHT: bold">To:</span></b> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a><br>
<b><span style="FONT-WEIGHT: bold">Subject:</span></b> [Nagios-users] Monitoring which user is running a service/process</span></font></p></div>
<div><span class="e" id="q_11ce72766ffd81fc_1">
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Hello all.</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">I have some processes that are meant to be run by user A, but are often (for some human error reason) run by the root user. Is there a way to set up Nagios to alert me whenever this happens?</span></font></p>
</div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Regards,</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Kenneth Holter</span></font></p></div></span></div></div></div></blockquote></div><br>