params:
    server_name: string
    partition_name: string
    total_space: integer
    free_space: integer
    use_space: integer
    use_percet_space: integer
    free_percent_space: integer

critical:
    when: (server_name == "my_server1" and free_space < 2) or (server_name == "my_server2" and free_space <= 7)
    repeat: 20
    email:
        tpl: You have the partition ${name} with ${free_percent_space} percent free
params:
    os: string                  # operative system
    server_name: string         # hostname + '-' + ip
    partition: string           # partition name '/dev/sda1' or 'label'
    mount_point: string         # partition mount point '/' or 'C:'
    type: string                # partition type 'ext4', 'ntfs'
    total_space: integer        # partition total space in unit 'TB', 'GB', 'MB', KB, 'B'
    free_space: integer         # partition free space in unit 'TB', 'GB', 'MB', KB, 'B'
    unit: string                # unit 'TB', 'GB', 'MB', KB, 'B'
    use_percet_space: numeric   # partition use in percent '%34,67'

critical:
    when: (server_name == "my_server1" and free_space < 2) or (server_name == "my_server2" and free_space <= 7) # add your condition here
    repeat: 20 # the time in minute wait for send again the notification if the critical condition persist
    email:
        tpl: You have the partition ${name} with ${free_percent_space} percent free # the template email send
Add comment into the yaml
Add comment into the yaml
