Ad Widget

Collapse

Monitoring Web Site Response Time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Caleb14
    Junior Member
    • Feb 2009
    • 7

    #1

    Monitoring Web Site Response Time

    Created a simple shell script to monitor to response time for a website. Looks like this.

    httpref --hog --server $site > $file
    cat $file | grep $foo | cut -d " " -f9

    Created an item to run this script and had to change the type of information value from numeric to character in order to get the item to stay active. The only way I can get this information to display is in a plain text screen, and I would like to be able to graph it. Am I doing something wrong that would cause this not to be graph-able? The ultimate goal here is to create an alert that when response time gets above 5 seconds or so it sends an alert to a jabber client. Any suggestions on how to achieve this?
  • Calimero
    Senior Member
    • Nov 2006
    • 481

    #2
    By the way there's a built-in web monitoring feature (based on libcurl). You can set a timeout, and zabbix will record response times among other statistics.

    Regarding your script, can you show us the exact output ?

    Comment

    • Caleb14
      Junior Member
      • Feb 2009
      • 7

      #3
      Here is the plain text screen I get when I use the item in zabbix. Output from the script is the same as the number shown in the screen

      Screen shot got resized so its kind of small, anyway, nothing more then a string of numbers gets outputted by the script.

      Any kind of guide on how out there on how to set this up the built-in web monitoring feature? I will search around in the mean time. Thanks.
      Attached Files
      Last edited by Caleb14; 31-07-2009, 14:47.

      Comment

      • Calimero
        Senior Member
        • Nov 2006
        • 481

        #4
        And when you set data type to "Numeric (float)" item goes unsupported ?

        Comment

        • Caleb14
          Junior Member
          • Feb 2009
          • 7

          #5
          Yeah, anything other then character changes the item's status to unsupported.

          Looked through the Zabbix documentation and found exactly what you where talking about.This works perfectly. Thanks

          Comment

          Working...