<div>Hi all!!</div>
<div> </div>
<div>I have a strange issue here with my nagios. Let me try to explain...</div>
<div> </div>
<div>I have some web services to check and when I run the command from console to test two diferent status of these services (UP or DOWN) I receive the correct answer from remote application. Let me put the command here:
</div>
<div> </div>
<div>./usr/local/nagios/libexec/check_http -H <a href="http://www.somehost.com.br/">www.somehost.com.br</a> -u /heartbeat.asmx/Web -s '<boolean xmlns="<a href="http://www.somehost.com.br/%22%3Etrue%3C/boolean%3E'">
http://www.somehost.com.br/">true</boolean>'</a></div>
<div> </div>
<div>As the check_http says, I have to use check_http -H <vhost> -u URL path that I wan to check on specified host and -s <string> that I expect to be returned to me.</div>
<div> </div>
<div>Ok!</div>
<div> </div>
<div>I run this command from console and everything goes fine. To test, I've changed the expected string from true to false, and the answer received after running the command from console changes to "DOWN String not found".
</div>
<div> </div>
<div>The problem is, when I put it into service.cfg for nagios run the command, I've realized that nagios is not threating the return. If the service is down, nagios keeps showing me that the service is OK.</div>
<div> </div>
<div>In command.cfg file, I've changed the line check_http command to add one more argument that I need. </div>
<div> </div>
<div>The default is check_http -H $HOSTADDRESS$ $ARG1$.</div>
<div> </div>
<div>I've changed it to check_http -H $HOSTADDRESS$ $ARG1$ $ARG2$</div>
<div> </div>
<div>
<div>In services.cfg file I put check_http!www.somehost.com.br -u /heartbeat.asmx/Web!'<boolean xmlns="<a href="http://www.somehost.com.br/%22%3Etrue%3C/boolean%3E'">http://www.somehost.com.br/">true</boolean>'
</a></div>
<div> </div>
<div>I think that nagios is doesn't recognizing the sintax.</div>
<div> </div>
<div>My queustino is...</div>
<div> </div>
<div>In the lines that I put above, Is there anything I am missing?</div>
<div> </div>
<div>Regards,</div>
<div> </div>
<div>Fabiano Martins</div></div>
<div> </div>