Ad Widget

Collapse

Monitoring (and graphing) value from web page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gessel
    Junior Member
    • Mar 2017
    • 24

    #1

    Monitoring (and graphing) value from web page

    I'm working on a template to monitor Mobotix cameras and I've managed to get enough values from ICMP templates and from SNMP to track uptime and port error rates and such, but I'd like to track temperature.

    It's not reported via SNMP by these cameras yet, but it is accessible in the web interface of the camera at IP/admin/temperatures.

    I started down the path of buillding a web scenario to collect that data via regexp and I suspect I have that working fine:

    {cameratemp}=regex[0-9]?[0-9]\.[0-9]) \&deg\;C

    No errors, 200 code, lovely. But the variable isn't stored. :/

    So I see also that there's a zabbix agent item that might look something like:

    web.page.regexp[{host.id},admin/temperatures,80,([0-9]?[0-9]\.[0-9]) \&deg\;C,4,\1]

    Except that barfs - I think the regexp isn't quite right, but the bigger problem is that I'm thinking this is expecting the zabbix agent on the target to do do the work and there isn't one.

    I was hoping to be able to retrieve and store (and track and trigger on) the temperature value that can be extracted from the camera's web interface via regular expression. Is that possible?
  • gessel
    Junior Member
    • Mar 2017
    • 24

    #2
    External checks are the key + curl

    put a little script into the script directory (appliance directory is /usr/lib/zabbix/externalscripts) like

    get_mobotix_temp.sh
    Code:
    #!/bin/bash
    ipaddr=$1
    curl -s -u admin:meinsm http://$ipaddr/control/rcontrol?action=gettemp
    Then set up an external check like:



    curl isn't installed on the appliance by default, so
    Code:
    sudo aptitude install curl
    Attached Files

    Comment

    • WAnda
      Junior Member
      • Nov 2019
      • 1

      #3
      Originally posted by gessel
      I'm working on a template to monitor Mobotix cameras and I've managed to get enough values from ICMP templates and from SNMP to track uptime and port error rates and such, but I'd like to track temperature.

      It's not reported via SNMP by these cameras yet, but it is accessible in the web interface of the camera at IP/admin/temperatures.

      I started down the path of buillding a web scenario to collect that data via regexp and I suspect I have that working fine:

      {cameratemp}=regex[0-9]?[0-9]\.[0-9]) \&deg\;C

      No errors, 200 code, lovely. But the variable isn't stored. :/

      So I see also that there's a zabbix agent item that might look something like:

      web.page.regexp[{host.id},admin/temperatures,80,([0-9]?[0-9]\.[0-9]) \&deg\;C,4,\1]

      Except that barfs - I think the regexp isn't quite right, but the bigger problem is that I'm thinking this is expecting the zabbix agent on the target to do do the work and there isn't one.

      I was hoping to be able to retrieve and store (and track and trigger on) the temperature value that can be extracted from the camera's web interface via regular expression. Is that possible?
      Hello, did the template / settings work?
      i'm looking for something simular to monitor 1100 mobotix camera's though Zabbix.

      Comment

      Working...