Ad Widget

Collapse

Zabbix Agent read a file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aderr
    Junior Member
    • Dec 2011
    • 14

    #1

    Zabbix Agent read a file?

    This may be a bit of a dumb question, but I have not been able to find a good way to accomplish this.

    I have a file on my server (Red Hat 6), that contains only a number and is updated by a cron entry every 30 mins.

    Is there a way to get zabbix to read (cat) that file in such a way that I can create a graph of that over time?

    Any suggestions would be greatly appreciated.

    Thank you!
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    Try vfs.file.contents[file,<encoding>], or vfs.file.regexp[file,regexp,<encoding>]-
    See: Zabbix agent

    Comment

    • aderr
      Junior Member
      • Dec 2011
      • 14

      #3
      Originally posted by BDiE8VNy
      Try vfs.file.contents[file,<encoding>], or vfs.file.regexp[file,regexp,<encoding>]-
      See: Zabbix agent
      Thank you, that is exactly what I was looking for!

      Comment

      • Rudlafik
        Senior Member
        • Nov 2018
        • 144

        #4
        Hi, how can solve other problem with file metadata. How get information obout version *.exe or *.dll file?

        Comment

        Working...