I think "PROC" only matches on the "CMD" column, which would be why you can't add in the username.<div><br></div><div>Recently I needed to check that a given process was only running on *one* out of a set systems.  I wrote that up as an external script on the Xymon server itself.  As the xymon user, try this:</div>
<div><br></div><div>     xymon localhost "xymondlog server.domain.com.procs"</div><div><br></div><div>to get the process list reported by that server.  You could then do whatever pattern match you require and send a status message based on that.  </div>
<div><br></div><div>Ralph Mitchell</div><div><br></div><div><br><div class="gmail_quote">On Mon, Jun 25, 2012 at 10:25 AM, Ward, Martin <span dir="ltr"><<a href="mailto:Martin.Ward@colt.net" target="_blank">Martin.Ward@colt.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Hi all,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I have been trying to persuade Xymon to search for a process and alert on its non-existence, a simple task using the analysis.cfg file like so:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">HOST=host1<u></u><u></u></p>
<p class="MsoNormal">PROC “amd64/java” 1 1 red<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Whilst this has worked previously the developers have now introduced a dependency that the process should only be run by a specific user (i.e. not root). I thought I could get away with:<u></u><u></u></p>

<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">PROC “%javauser.*amd64/java” 1 1 red<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">in the expectation that Xymon is testing against the whole of the output from ps(1) and in this case would only match  Java processes run by the javauser user, but sadly this is not the case, I cannot persuade Xymon to match against the
 process name AND the user who is running it.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Am I missing something/doing something wrong or is this the way Xymon works?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">|\/|<u></u><u></u></p>
<p class="MsoNormal">--<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><a href="http://youtu.be/jmmcILTf88I" target="_blank"><span style="color:blue;text-decoration:none"><img border="0" width="624" height="114" alt="Description: Colt @ 20 email sig"></span></a><span><u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Arial","sans-serif"">Martin Ward<u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:12.0pt;font-family:"Arial Bold"">Manager, Technical Services<u></u><u></u></span></b></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Arial","sans-serif"">Service Operations
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="IT" style="font-size:10.0pt;font-family:"Arial","sans-serif"">DDI:<a href="tel:%2B44%20%280%29%2020%207863%205218" value="+442078635218" target="_blank">+44 (0) 20 7863 5218</a> / Fax: <a href="tel:%2B44%20%280%2920%207863%209999" value="+442078639999" target="_blank">+44 (0)20 7863 9999</a> / 
<a href="http://www.colt.net/" target="_blank"><span style>www.colt.net</span></a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Colt Technology Services,
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Unit 12, Powergate Business Park, Volt Avenue, Park Royal, London, NW10 6PW,</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">
 UK.<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:7.0pt">Help reduce your carbon footprint | Think before you print. Registered in England and Wales, registered number 02452736, VAT number GB 645 4205 50<u></u><u></u></span></p>

<p class="MsoNormal"><u></u> <u></u></p>
</div>
[Colt Disclaimer] 
This email is from an entity of the Colt group of companies. 
Colt Group S.A., K2 Building, Forte 1, 2a rue Albert Borschette, L-1246 Luxembourg, R.C.S. B115679.  
Corporate and contact information for our entities can be found at 
<a href="http://colt.net/uk/en/Colt-Group-of-Companies/index.htm" target="_blank">http://colt.net/uk/en/Colt-Group-of-Companies/index.htm</a>. 
Internet communications are not secure and Colt does not accept 
responsibility for the accurate transmission of this message. Content 
of this email or its attachments is not legally or contractually binding 
unless expressly previously agreed in writing by Colt
</div>

<br>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div>