Ad Widget

Collapse

vfs.file.regexp with zabbix agent on windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dimka779
    Junior Member
    • Mar 2014
    • 22

    #1

    vfs.file.regexp with zabbix agent on windows

    Hello.
    I'm using zabbix agent in a Windows Server 2008r2. The zabbix agent
    works fine.
    I've got USB Temperature sensor and software called ThermoHID.
    I configured the software to create a log in the file C:\ThermoHIDRealTime.txt

    This file contains only one string:
    Code:
    28.12.2014 18:09:00 TEMPer2_M12_V1.3 NoDevice NoDevice 23,4375 999 999 999 999 999 -1 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0
    This string get update every 10 seconds.

    So I need somehow to get this 23,4375 (or just 23) value on my zabbix server.


    So I created an item in Zabbix Named "TempSensor", type "Zabbix Agent", key vfs.file.regexp["C:\ThermoHIDRealTime.txt",], text.

    Can you help me with regexp please?
    Thanks!
    Last edited by dimka779; 29-12-2014, 15:42.
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hello,

    Please try it with this key:

    Code:
    vfs.file.regexp[C:\ThermoHIDRealTime.txt,".*e ([0-9]+),.*",,,,\1]
    Best Regards,
    Ingus

    Comment

    • dimka779
      Junior Member
      • Mar 2014
      • 22

      #3
      Thanks! Works perfect!

      Comment

      Working...