Ad Widget

Collapse

Question : How to get results of a php page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tomas213
    Junior Member
    • Oct 2006
    • 2

    #1

    Question : How to get results of a php page

    Hello.
    I have some php pages that exports some data.
    I need zabbix to query the page every 5 mins so as to have these results on graph.
    I searched the forum for something like that, but i didn't find anything like that.

    Any ideas?

    Thank you for your time.

    Thomas
  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #2
    you could probaby create an external command that runs lynx then processes the data with awk or cut. You may run into timeout problems however.
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

    Comment

    • tomas213
      Junior Member
      • Oct 2006
      • 2

      #3
      The php pages are on an apache server.
      Can't zabbix just query that page (e.x www.server.com/page1.php?ip=192.168.0.1) and get the results thats on the page?

      Comment

      Working...