<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
I'm stumped. I have some Solaris 10 servers that I compiled and have
running. CPU, disk space and some other plugins are working, as long as
they don't rely on backticks in the script. If it does, I can't get any
output back to the nagios host.<br><br>I was troubleshooting the
check_oracle plugin and eventually tracked it down to being an issue
all scripts that contain backticks.<br><br>Even the most simple script
returns no output back to the nagios host(yet it will work of course if
run as user nagios from the ssh console on the Solaris server):<br>ie.<br><br>#! /bin/sh<br>test=`ps`<br>echo "$test"<br>exit<br><br>should return (and does while logged on as nagios on the Solaris 10 box):<br># ./check_test<br> PID TTY TIME CMD<br> 24186 pts/2 0:00 ps<br> 24184 pts/2 0:00 bash<br> 24183 pts/2 0:00 sh<br> 24185 pts/2 0:00 check_te<br><br>but this doesn't get back to the Nagios host because something between SMF and nrpe is preventing backticks results from being stored into variables. <br><br>I
have tried changing nrpe service so it doesn't inherit the env, and
have tried giving the nagios account extra permissions as a service
account. Still no luck. <br><br>Has anyone dealt with this issue before?? The Solaris security model is driving me bonkers. Any help would be much apprecated!<br><br>-J<br></body>
</html>