Ad Widget

Collapse

Web Site Monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rudolf
    Member
    • Dec 2004
    • 90

    #1

    Web Site Monitoring

    Hi list,

    How do you monitor web sites and store the response time? I have a script that gets 42 web sites on 4 web servers with curl. But because a script for UserParameter should run in 0.5 seconds maximum, the script fails often (Timeout while answering request). With the built-in items http, http_perf, check_service[http,ip,port], check_service_perf[http,ip,port] you can't specify a homepage name www...? I can't belive that web site monitoring isn't possible with zabbix.

    Here is the link to the thread with the script I tried: http://www.zabbix.com/forum/showthread.php?t=349
  • Nate Bell
    Senior Member
    • Feb 2005
    • 141

    #2
    Some thoughts:

    Could you split the script into several smaller scripts? Surely you don't have to check all 42 pages in one shot. How about you check the scripts on one server and return, then check the next one, and so on?

    You can increase the time a Zabbix server/agent is willing to wait for information. It's a setting in the .conf file. This might allow your script to return in time.

    If you want to find the response time for each website, you could make your script a dynamic item in Zabbix (itemname[*]). This way, you can set up each website to check as it's own item. The downside is this would be a pain to set up, and would put more load on the Zabbix server and agents.

    Nate

    Comment

    • Rudolf
      Member
      • Dec 2004
      • 90

      #3
      I let the script run for every homepage:
      UserParameter=checkurl[wwwhomepagecom],/usr/local/bin/checkurl 'www.homepage.com' 'texttocheck'
      I increased the timeout in agentd.conf to 25. It seems to be better now, but I get still some "holes" in the graphic. I think it will stop again soon, with all the curl and ps processes running... (and then I need to stop agentd, killall curl, start agentd).

      Thanks for your thoughts.

      Comment

      Working...