Ad Widget

Collapse

Monitoring File Size & Date on multiple hosts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • garthb_pos
    Junior Member
    • Dec 2021
    • 2

    #1

    Monitoring File Size & Date on multiple hosts

    Hi all!
    I am new to Zabbix, so my apologies for what is probably a very simple question!

    I have the need to monitor a file size and a file's modified date on several Windows hosts. Due to reasons outside of my control, the location and filename can be different on each host. I can successfully use the following:
    vfs.file.size[file]
    vfs.file.time[file,modified]

    I want to setup a template with these items (and triggers to go with them). I have tried adding a Macro for the filename in a template and adding the template to a host, but I then can't change the Macro's value at the host level.
    I imagine when I create a new host, I could add the Macro then with the correct value, but I will probably end up needing multiple Macros per host, and it would be great if there was an easier way, which I'm sure there is.
    For example, is there a way to create a Host that has a pre-definded set of Macros?

    Any help would be greatly appreciated.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    You can redefine template macro on host level.. you need to click on "inherited macros" and then you should also see "change" button.
    You can always define those macros on host level.

    Comment

    • garthb_pos
      Junior Member
      • Dec 2021
      • 2

      #3
      Originally posted by cyber
      You can redefine template macro on host level.. you need to click on "inherited macros" and then you should also see "change" button.
      You can always define those macros on host level.
      Thanks a lot! I knew it would be simple, somehow I just missed the "change" button in my haste.

      Thanks again!

      Comment

      Working...