Ad Widget

Collapse

Zabbix WEB monitoring mass add urls by script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • walterheck
    Senior Member
    • Jul 2009
    • 153

    #1

    Zabbix WEB monitoring mass add urls by script

    Hello,

    Unfortunately in zabbix 1.8.X, there are no templates for WEB monitoring of urls, and there is also no API for it (although that seems to be coming in 2.0).

    we had the need to start monitoring 350+ urls, so we decided to write a proper shell script for it. It adds the most basic of checks, but it works quite nicely. I posted the full bash script up on zabbix.org: https://zabbix.org/wiki/Docs/howto/script_web_checks

    Until we have templates for WEB monitoring, this might be of good use to people.

    Feel free to improve!

    Walter

    PS. DISCLAIMER: Use with care and on your own risk and responsibility!
    Free and Open Source Zabbix Templates Repository | Hosted Zabbix @ Tribily (http://tribily.com)
  • mushero
    Senior Member
    • May 2010
    • 101

    #2
    Thank YOU !

    We are looking at extending this to really split out web checks properly - as we really need to trigger separately on timeout, bad text match, bad return code - a little hard to do and takes a few triggers, per check. So without a template, this is absurdly painful.

    Your script is what we've been thinking about for some time.

    Comment

    • walterheck
      Senior Member
      • Jul 2009
      • 153

      #3
      mushero: feel free to extend this template and replace the one on the wiki if you have a better version
      Free and Open Source Zabbix Templates Repository | Hosted Zabbix @ Tribily (http://tribily.com)

      Comment

      • Yello
        Senior Member
        • Apr 2011
        • 309

        #4
        Originally posted by mushero
        Thank YOU !

        So without a template, this is absurdly painful.
        Your company can sponsor the effort to get this feature (templated web scenarios) implemented. It's not all that expensive and some have already contributed, so you wouldn't have to cover it all.

        It's my expectation that until the development costs are covered by sponsorship funding the feature won't get implemented. If your Management are wise they should be willing to dip their hand in their pocket on this one...


        Regards,
        David

        Comment

        • Yello
          Senior Member
          • Apr 2011
          • 309

          #5
          Hi,
          By the look of it this script can create duplicate scenarios per host. Perhaps you might want to consider adding a sanity check to prevent that?


          Regards,
          David

          Comment

          • walterheck
            Senior Member
            • Jul 2009
            • 153

            #6
            Do you mean if you feed it a list of urls that has duplicates? I guess that is possible, but i'd recommend not doing that in the first place
            Free and Open Source Zabbix Templates Repository | Hosted Zabbix @ Tribily (http://tribily.com)

            Comment

            Working...