Paul Dott
2018-11-28 19:03:46 UTC
FYI Seeing some conflicting information on this check.
Man Page shows;
State: Only table spaces in state ONLINE and READONLY will be found by
inventory and monitored. If the state changes later, the check will not get
critical. The state will just be displayed. We assume that state changes
are due to normal operations.
# Check free space, but only if status is not READONLY
# and Tablespace-Type must be PERMANENT
if ts_status != "READONLY" and ts_type == 'PERMANENT':
status = 0
if crit is not None and free_space <= crit:
status = 2
elif warn is not None and free_space <= warn:
status = 1
if status:
yield status, "only %s left%s" %
(get_bytes_human_readable(free_space), levels_text)
Found this because had a couple tablespaces (TEMPORARY) fill and no alerts
were generated. The services remained in an OK state..
Thanks,
Paul
Man Page shows;
State: Only table spaces in state ONLINE and READONLY will be found by
inventory and monitored. If the state changes later, the check will not get
critical. The state will just be displayed. We assume that state changes
are due to normal operations.
# Check free space, but only if status is not READONLY
# and Tablespace-Type must be PERMANENT
if ts_status != "READONLY" and ts_type == 'PERMANENT':
status = 0
if crit is not None and free_space <= crit:
status = 2
elif warn is not None and free_space <= warn:
status = 1
if status:
yield status, "only %s left%s" %
(get_bytes_human_readable(free_space), levels_text)
Found this because had a couple tablespaces (TEMPORARY) fill and no alerts
were generated. The services remained in an OK state..
Thanks,
Paul