Hello, I am using nagios plugins 1.4.15 and I have a question about the check_procs plugin.<div><br></div><div>If I execute it as <b>root</b>:</div><div><div>root@localhost[/usr/local/nagios/libexec]# ./check_procs -w 50 -c 100</div>
<div>PROCS CRITICAL: 126 processes</div></div><div><br></div><div>Now if I do it as <b>nagios user</b>:</div><div><div>nagios@localhost[/usr/local/nagios/libexec]# ./check_procs -w 50 -c 100</div><div>PROCS OK: 2 processes</div>
</div><div><br></div><div>Obviously it gives me the result of doing <i>ps </i>as the selected user, and I don't want this to happen like this.</div><div>From the remote Nagios Server using NRPE, I also have the wrong result of 2 processes.</div>
<div>Is there a fix for this? May I have to write a script for myself?</div><div><br></div><div><br></div><div>Thanks</div>