Ad Widget

Collapse

Local checks with Windows Zabbix agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bytesize
    Member
    • Aug 2005
    • 71

    #1

    Local checks with Windows Zabbix agent

    Hi,

    I would like to test a webserver is running on the same machine which a Zabbix agent is running on. I cannot run a simple check from the Zabbix server because of firewalls.

    I need something like check_service[http] but everything I try comes up as "Not Supported". The Zabbix agent needs to connect to HTTP on localhost and then report the status back to the Zabbix server.

    How can I do this?

    Thanks!

    John
  • Nate Bell
    Senior Member
    • Feb 2005
    • 141

    #2
    You could create a UserParameter that uses wget to connect to the localhost, grab a page that will always contain a specific piece of text, grep for that string of text, and return a value depending on what you find, say 0 for text not found, and 1 if it is.

    To save you some time (since I just used wget in this way recently) here is a rough sketch of what your UserParameter could look like:

    Code:
    echo $(wget -q --bind-address=localhost [i]http://www.myzabbixserverpage.com[/i] | grep "[i]ameaningfulstring[/i]" | wc -l )
    Nate

    Comment

    • bytesize
      Member
      • Aug 2005
      • 71

      #3
      Hi,

      Thanks for the reply but I need to do this using a Windows Zabbix client.

      John

      Comment

      • elkor
        Senior Member
        • Jul 2005
        • 299

        #4
        My first response would have been identical to nate's.

        then you said windows

        I'm not the best windows guy, but I don't know of any command-line only http tool for windows. Even with windows services for unix installed you don't get wget, curl, or lynx. You do get a posix environment that you could probably compile those tools in.. but that may be more than you really want to do on a production box.

        my advice in your situation would be to set up a "sensor" box on your dmz or another network that CAN access the webservers, running unix/linux, and define your various website checks on that. then use zabbix to monitor that box and validate the HTML, as a bonus you could also calculate web response time and such.

        Comment

        • Wolfgang
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified Specialist
          • Apr 2005
          • 116

          #5
          Originally posted by bytesize
          Hi,

          Thanks for the reply but I need to do this using a Windows Zabbix client.

          John
          Maybe you want to try wget for windows:
          http://www.intellitrend.de
          Specialised in monitoring large environments and Zabbix API programming.

          Comment

          Working...