<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello Plugin Gurus,
<div><br class="webkit-block-placeholder"></div><div>OS version: OSX 10.4.11</div><div>plugin version: 1.4.11 and 3/28/08 trunk build</div><div><br class="webkit-block-placeholder"></div><div>I need to verify some java processes are running which have very long command and arguments. These processes do not show enough data to be uniquely identified unless you run "ps auxwww" (need 3 w's). Check_procs doesn't seem to notice procs like this but does catch a proc which has an -i flag so I think it's not running auxwww...</div><div><br class="webkit-block-placeholder"></div><div><div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 15px;">hosta:/usr/local/nagios/libexec root# ./check_procs -c 1:1 -a "-Dlog4j.configuration=file:../conf/teamcity-agent-log4j.xml"</span></font></font></div><div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 15px;">PROCS CRITICAL: 0 processes with args '-Dlog4j.configuration=file:../conf/teamcity-agent-log4j.xml'</span></font></font></div><div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 15px;">hosta:/usr/local/nagios/libexec root# ./check_procs -c 1:1 -a "-i"</span></font></font></div><div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 15px;">PROCS OK: 1 process with args '-i'</span></font></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 15px;"><br class="webkit-block-placeholder"></span></font></div><div>So I need to get check_procs to use ps auxwww - no problem I'll use the configure option "--with-ps-command=/bin/pswide" to tell it to use a custom ps command I'll write called /bin/pswide.</div><div><br class="webkit-block-placeholder"></div><div>So I run configure with the proper flag and catch the output in a log file...</div><div><br class="webkit-block-placeholder"></div><div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 15px;">hosta:~/downloads/nagios-plugins-trunk-200803281300 root# ./configure --with-ps-command=/bin/pswide > configure.log 2>&1</span></font></font></div><div><br class="webkit-block-placeholder"></div><div>But looking in the log file it seems configure still wants to use the same ps call as when running without the --with-ps-command flag...</div><div><br class="webkit-block-placeholder"></div><div><div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Courier" size="4"><font class="Apple-style-span" face="Helvetica" size="4"><span class="Apple-style-span" style="font-size: 14px;">hosta</span></font><span class="Apple-style-span" style="font-size: 15px;">:~/downloads/nagios-plugins-trunk-200803281300 root# grep ps configure.log</span></font></font></div><div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 15px;">checking for ps... /bin/ps</span></font></font></div><div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 15px;">checking for ps syntax... /bin/ps -axwo 'stat uid pid ppid vsz rss pcpu ucomm command'</span></font></font></div><div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 15px;">checking for lsps... no</span></font></font></div><div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 15px;">checking for pstat_getdynamic... no</span></font></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 15px;"><br class="webkit-block-placeholder"></span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 15px;"><span class="Apple-style-span" style="font-family: Helvetica; font-size: 14px; ">And indeed when I make and install the plugin still does not notice the java processes with the long command names and arguments.</span></span></font></div><div><br class="webkit-block-placeholder"></div><div>I see configure supports the --with-ps-command flag...</div><div><br class="webkit-block-placeholder"></div><div><div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 15px;">hosta:~/downloads/nagios-plugins-trunk-200803281300 root# ./configure -h | grep ps-command</span></font></font></div><div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 15px;"> --with-ps-command=PATH Verbatim command to execute for ps</span></font></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 15px;"><br class="webkit-block-placeholder"></span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 15px;"><span class="Apple-style-span" style="font-family: Helvetica; font-size: 14px; ">Any ideas?</span></span></font></div></div><div><br class="webkit-block-placeholder"></div><div>thanks </div><div><br class="webkit-block-placeholder"></div><div>kyle smith</div><div><br class="webkit-block-placeholder"></div></div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div></div></body></html>