<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18783">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hi Steve</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I tried your script :</FONT></DIV>
<DIV> </DIV>
<DIV> STATUS=$(sudo asterisk -rnx "pri
show span
1"\<BR>
| awk '/Status/ {print
$3}'\<BR>
)<BR><BR>
if [ "Up," == "${STATUS}"
]<BR> then
echo "PRI
UP"<BR>
exit 0<BR>
else echo "PRI
DOWN"<BR>
exit 2<BR> fi<BR><BR><FONT
size=2 face=Arial>but still i get PRI down in the Nagios web interface while if
i execute this command from command line i get PRI UP...i m really going
mad..did a clean install again but still same problem.. Iv;e also given
permission of 777 to the script and saved it under /usr/local/nagios and given
the same path in commands.cfg under objects folder of /usr/local/nagios/etc ...
can anyone please help me out ?</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Thanks Sriram</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2> </DIV></FONT></BODY></HTML>