check_procs solaris 10

Hi.

I’m attempting to check_procs on a solaris 10 system. My linux systems are find and are returnign the correct data but when attempting this on my solaris system i have the following. Any ideas out there?

bash-3.00# /usr/local/nagios/libexec/check_procs -w 1: -c 1:20 -C squid
System call sent warnings to stderr: pst3: This program can only be run by the root user!

I’ve changed the ownership to root to no avail. All other plugins work ok.

Doing a little reading and it looks that i may need to compile my plugins for 64bit solaris. Does anyone have any information on this and the flags i need to have to compile?