Ad Widget

Collapse

Collect data from a Webpage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bernard
    Member
    • Oct 2008
    • 54

    #1

    Collect data from a Webpage

    How can I collect data from a web page (with basic authentication) ?

    I have a web page with the temperature of my datacenter. I want to collect this data into Zabbix to have a history and to send alert.

    This device only have a web interface, no snmp or ipmi.

    I already had a web scenario to check if the page contains "No alarm", which work well. But it's not enough for me

    Many thanks for your suggestion.
  • Yello
    Senior Member
    • Apr 2011
    • 309

    #2
    Hi,
    When I need to do this I write a script which reads the page, parses it and then passes the required output to zabbix via zabbix_sender.

    Hope that helps.


    Regards,
    David

    Comment

    • bernard
      Member
      • Oct 2008
      • 54

      #3
      also works with user authentication

      Hi David,

      Thanks for your quick answer. Does your script work with a basic user authentication ?

      If so, could you provide me an example of your script please ?

      Kind regards,
      Bernard

      Comment

      • Yello
        Senior Member
        • Apr 2011
        • 309

        #4
        Hi,
        You can pass the authentication details as part of the url:

        http://user:_pass@host:_port/path

        Most programming languages also offer modules which support web authentication.


        Regards,
        David

        Comment

        Working...