<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hello,<BR>
 <BR>
Finally, resolved the mystery. I was running NRPE under root as nagios user and check_nrpe was returing exit value 0 in any case. <BR>
 <BR>bash-3.00#/usr/local/sys/nrpe/bin/nrpe -c /usr/local/sys/nrpe/etc/nrpe.cfg<BR>
 <BR>
bash-3.00#ps -ef|grep nrpe<BR> <BR>nagios 3184 677 0 23:30:39 ? 0:00 /usr/local/sys/nrpe/bin/nrpe -c /usr/local/sys/nrpe/etc/nrpe.cfg -d<BR>
<BR> <BR>
What i did , login as nagios and start the NRPE and it fixed all the issues. <BR>
 <BR>
bash-3.00# su - nagios<BR>
 <BR>
bash-3.00$/usr/local/sys/nrpe/bin/nrpe -c /usr/local/sys/nrpe/etc/nrpe.cfg<BR>
 <BR>
bash-3.00#ps -ef|grep nrpe<BR><BR>
 <BR>
 <BR>
I still can't understand why it doesnt work when I start NRPE under root as nagios user. Could any one explain please explain?<BR>
 <BR>
<STRONG>Note: </STRONG>On all other my environments, I am running NRPE under root as nagios user<BR>
 <BR>
Thanks,<BR>
 <BR>
Farhan<BR><BR><BR>
<DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> </P></DIV><br /><hr />Multiple prizes and the ultimate dream beach house! <a href='http://www.ninemsn.com.au/hotmailroadtrip' target='_new'>Take a summer road trip with Windows Live Hotmail.</a></body>
</html>