Ad Widget

Collapse

Zabbix HTTP Request - How can I do this.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Axilla
    Senior Member
    • Aug 2010
    • 130

    #1

    Zabbix HTTP Request - How can I do this.

    So, I have a url which outputs a random # based on the total number of calls our system is currently handeling.

    http://192.168.*.*/ServerSides.cfc?Method=CurrentCalls

    If I visit that page I see in the window for example 39

    how can I take that data and get it into zabbix?

    here is the source data for the output page

    <wddxPacket version='1.0'><header/><data><string>39</string></data></wddxPacket>
  • Axilla
    Senior Member
    • Aug 2010
    • 130

    #2
    ok, so I now have a cronjob which reads the data from the website and dumps it to a data file on the zabbix server.

    How can I use userparams to get that data into zabbix.

    Comment

    • Axilla
      Senior Member
      • Aug 2010
      • 130

      #3
      Alright so I got this working using UserParameters and curl thanks to help from the guys on IRC. Using Curl + sed gets rid of the need to dump the data to a file first... Much easier and more reliable.. Also doesn't need a cronjob then and can be graphed at a lower interval then 1 minute. Hopefully this helps someone in the future.

      UserParameter=Current.Calls,curl http://192.168.*.*/ServerSide/Server...d=CurrentCalls | sed -e 's/<[^>]*>//g'
      Last edited by Axilla; 08-09-2010, 00:17.

      Comment

      Working...