Can XYMON having feature to check "User Experience".
Hi All,
Can XYMON having feature to check "User Experience". We are having different web based application, running in LINUX/Solaris server. Some time We observed all applications are showing running state but if we click any icon(inside our own application) the response time is too long/some-time not get the result also. Kindly let me know any feature is available in XYMON to track it out.
With Thanks & Regards, Jayanta.
I wrote a script which uses the text based Lynx web browser and the Linux time command to check how on it takes a web app to respond to downloading the initial page. I set up a custom graph to graph the results and we can now trend when web response is slower on our network. Below is the script. I had to add a space between h and ttp in the lynx command line so my mail client wouldn't try to make it a link.
......Bruce
#!/bin/ksh
###################################################################
webchk.sh
Xymon add on script to test access to a web site via the fellowes
proxy server. This is done using the lynx text based web browser.
###################################################################
###################################################################
TEST="webchk"
set up parameters
LYNXCMD="/usr/bin/lynx"
OUTFILE="$BBTMP/web.out.$$"
TMPFILE="$BBTMP/chkweb.tmp.$$"
LOGFILE="/xymon/log/webchk.log"
http_proxy="http://proxy01";export http_proxy typeset -i HSECS=0 # # do the tests #
WEBSITE=$1
COLOR="green"
LINE=""
if [ "$#" = "1" ];then
WEBSITE=$1
else
echo "You must pass a website to be checked."
echo "usage web.sh <website>"
exit 1
fi
/usr/bin/time -p -o ${TMPFILE} ${LYNXCMD} -dump h ttp://${WEBSITE} > ${OUTFILE} 2>>${LOGFILE} if [ "$?" = "0" ];then
if [ -s "${OUTFILE}" ];then
LINE="
&green $WEBSITE - Connection OK"
else
COLOR="red"
LINE="
&red $WEBSITE - Connection Failed"
fi
else
COLOR="red"
LINE="
&red $WEBSITE - Connection Failed"
fi
if [ -s "${TMPFILE}" ];then
SECS=grep "real" ${TMPFILE}|awk '{print $2}' -
let HSECS=$SECS*100
else
SECS="unknown"
fi
STATUS="
Time to get page: $SECS"
$BB $BBDISP "status ${WEBSITE}.${TEST} $COLOR date $LINE $STATUS"
if [ -f "$OUTFILE" ];then
$RM $OUTFILE
fi
exit 0
Bruce White Senior Enterprise Systems Engineer | Phone: 630-671-5169 | Fax: 630-893-1648 | bewhite at fellowes.com | http://www.fellowes.com/ Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Fellowes, Inc.
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Jayanta Kundu Sent: Tuesday, May 03, 2011 9:27 AM To: xymon at xymon.com Subject: [Xymon] Can XYMON having feature to check "User Experience".
Hi All,
Can XYMON having feature to check "User Experience".
We are having different web based application, running in LINUX/Solaris server.
Some time We observed all applications are showing running state but if we click any icon(inside our own application) the response time is too long/some-time not get the result also.
Kindly let me know any feature is available in XYMON to track it out.
With Thanks & Regards,
Jayanta.
You can get similar results using curl:
X=`curl -s -S -L -w '%{time_total}' -o /dev/null http://www.yahoo.com`
$X will be set to the total time taken to download the webpage. Obviously the output can be directed to an actual file instead of /dev/null. Curl can also handle cookies and form posts, as well as simple page fetches. I've used it very effectively to login to a variety of sites and navigate to a certain point to check availability of pages.
Note that neither Lynx nor curl will be downloading images, javascript, java apps, etc, which will tend to skew your graphs somewhat.
Ralph Mitchell
On Tue, May 3, 2011 at 11:39 AM, White, Bruce <bewhite at fellowes.com> wrote:
I wrote a script which uses the text based Lynx web browser and the Linux time command to check how on it takes a web app to respond to downloading the initial page. I set up a custom graph to graph the results and we can now trend when web response is slower on our network. Below is the script. I had to add a space between h and ttp in the lynx command line so my mail client wouldn’t try to make it a link.
……Bruce#!/bin/ksh
###################################################################
webchk.sh
Xymon add on script to test access to a web site via the fellowes
proxy server. This is done using the lynx text based web browser.
###################################################################
###################################################################
TEST="webchk"
set up parameters
LYNXCMD="/usr/bin/lynx"
OUTFILE="$BBTMP/web.out.$$"
TMPFILE="$BBTMP/chkweb.tmp.$$"
LOGFILE="/xymon/log/webchk.log"
http_proxy="http://proxy01";export http_proxy typeset -i HSECS=0 # # do the tests #
WEBSITE=$1
COLOR="green"
LINE=""
if [ "$#" = "1" ];then
WEBSITE=$1
else
echo "You must pass a website to be checked."
echo "usage web.sh <website>"
exit 1
fi
/usr/bin/time -p -o ${TMPFILE} ${LYNXCMD} -dump h ttp://${WEBSITE} > ${OUTFILE} 2>>${LOGFILE} if [ "$?" = "0" ];then
if [ -s "${OUTFILE}" ];then
LINE="&green $WEBSITE - Connection OK"
else
COLOR="red" LINE="&red $WEBSITE - Connection Failed"
fi
else
COLOR="red"
LINE="
&red $WEBSITE - Connection Failed"
fi
if [ -s "${TMPFILE}" ];then
SECS=
grep "real" ${TMPFILE}|awk '{print $2}' -let HSECS=$SECS*100
else
SECS="unknown"
fi
STATUS="
Time to get page: $SECS"$BB $BBDISP "status ${WEBSITE}.${TEST} $COLOR
date$LINE $STATUS"if [ -f "$OUTFILE" ];then
$RM $OUTFILE
fi
exit 0
*Bruce White*
Senior Enterprise Systems Engineer | Phone: 630-671-5169 | Fax: 630-893-1648 | bewhite at fellowes.com | www.fellowes.com
**Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Fellowes, Inc.
*From:* xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] *On Behalf Of *Jayanta Kundu *Sent:* Tuesday, May 03, 2011 9:27 AM *To:* xymon at xymon.com *Subject:* [Xymon] Can XYMON having feature to check "User Experience".
Hi All,
Can XYMON having feature to check "User Experience".
We are having different web based application, running in LINUX/Solaris server.
Some time We observed all applications are showing running state but if we click any icon(inside our own application) the response time is too long/some-time not get the result also.
Kindly let me know any feature is available in XYMON to track it out.
With Thanks & Regards,
Jayanta.
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
participants (3)
-
bewhite@fellowes.com
-
jayantak007@gmail.com
-
ralphmitchell@gmail.com