Ad Widget

Collapse

FS discovery and monitor specific FSTYPE only

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vigneshn
    Junior Member
    • Jan 2018
    • 17

    #1

    FS discovery and monitor specific FSTYPE only

    Zabbix 3.4 on RHEL 7.

    1. I have created a new fs discovery rule "vfs.fs.discovery" with regex inclusive list of FSTYPE and exclusion of certain FS
    2. created 2 item prototypes "Free disk space on {#FSNAME} (percentage)" and "Free inodes on {#FSNAME} (percentage)"
    3. created trigger prototypes for FS utilisation
    4. works fine until here

    My requirement is to monitor inode utilisation for certain FSTYPE (ext and xfs) only. Please let me know how to achieve this?

    I have to monitor all the FSTYPE from discovery for FS utilisation, however only certain FSTYPE (ext and xfs) for inode utilisation. I have explored the options available from zabbix documentation, but unable to figure out a way as "macro context" only enables custom thresholds based on fsname.

    Thanks.
    Last edited by vigneshn; 27-02-2018, 11:59.
  • vigneshn
    Junior Member
    • Jan 2018
    • 17

    #2
    I found a way to do it with macro-context.

    1. create FS low level discovery under the template
    2. create inode items
    2. create macros for each severity. The value of default severity macros is to be 0 (zero) - {$LOW_INODE_SPACEC}, {$LOW_INODE_SPACEW} and {$LOW_INODE_SPACEI}
    3. The corresponding FSTYPE macros to have some value, like "{$LOW_INODE_SPACEC:vxfs}=2", "{$LOW_INODE_SPACEI:xfs}=20"
    4. create trigger for each severity with condition with respect to the macro-context: "{Template_LINUX:vfs.fs.inode[{#FSNAME},pfree].avg(15m)}<{$LOW_INODE_SPACEC:"{#FSTYPE}"}"

    Thank you.
    Last edited by vigneshn; 26-02-2018, 05:32.

    Comment

    Working...