Ad Widget

Collapse

How to retreat a response from http:// site and create a trigger for the return value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • scuba
    Junior Member
    • Jun 2018
    • 16

    #1

    How to retreat a response from http:// site and create a trigger for the return value

    Hi,

    I need to retrieve the status code from a web site and make a trigger for the return value which is;

    http://192.168.10.25/xxx/public?cmd=status the value from the site is either 0 or 1 , so how can i make web scenario to read this code please ?

    Thx in advance.
  • Mike2K
    Member
    • Oct 2018
    • 62

    #2
    When creating the web scenario, you''ll get to the 'steps' part. There you can have it search for a "required string" which, in your case, would be the 0 or 1...

    Comment

    • 1berto
      Senior Member
      • Sep 2018
      • 182

      #3
      Do you need to check the response from a host monitored by zabbix? Or from the zabbix server itself? Mike's answer is correct and is the way to go. But if you can't use it you can create an external check with a command or script that get the status.

      Comment


      • scuba
        scuba commented
        Editing a comment
        No it's not monitored by zabbix , but it's reachable from a host monitored by zabbix.
    Working...