Hello!<div>I've found the clause in nagios-plugins-1.4.15/plugins/check_procs.c:</div><div><br></div><div>int pos; /* number of spaces before 'args' in `ps` output */</div><div>...</div><div>if ( cols >= expected_cols ) {</div>
<div>   resultsum = 0;</div><div>   asprintf (&procargs, "%s", input_line + pos);</div><div>   strip (procargs);<br><div>...</div><div><br></div><div>So I wonder how this variable (pos) is supposed to be initialized.</div>
<div>On my system (tinycore linux 3.0) it gives different huge numbers</div><div>like 166949407, 166949462, etc. and corresponding asprintf segfaults.</div><div>Should I explicitly initialize it with "int pos=0;" or something?<br clear="all">
<br>-- <br>Grigory Batalov
</div></div>