Thanks for the reply Loose. I'll post a more descriptive explanation, and if I have to I'll start posting on the Solaris forums too:
From Sun Server --- Works:
SunOS 5.10 Generic_127127-11 sun4v sparc SUNW,SPARC-Enterprise-T5220
PID TTY TIME CMD
21393 pts/1 0:00 ps
21364 pts/1 0:00 bash
21391 pts/1 0:00 check_te
just to verify the nrpe.cfg script:
From Nagios server --- No output from backtick script commands:
[nagmin@nagios01 libexec]$ ./check_nrpe -H ipaddr -c check_test
CHECK_NRPE: No output returned from daemon.
Of course if we change the name of the script to something invalid I get:
[nagmin@nagios01 libexec]$ ./check_nrpe -H ipaddr -c check_test1
NRPE: Command 'check_test1' not defined
So I know that nagios is properly connecting to nrpe.
At this point I gave the nagios service account on the Solaris 10 root powers for testing, and I told SMF not to inherit the env, so that it can be set by the script.
Any other suggestions are welcome. I'm off to the Sun forums : )