mirror of https://github.com/Icinga/icinga2.git
Remove the uncheckable state.
This commit is contained in:
parent
5a6b7ffb78
commit
400fe5e13c
|
@ -21,7 +21,6 @@ set StateOK = (0)
|
|||
set StateWarning = (1)
|
||||
set StateCritical = (2)
|
||||
set StateUnknown = (3)
|
||||
set StateUncheckable = (4)
|
||||
|
||||
/*
|
||||
* Converting states to their filter values: 1<<state
|
||||
|
@ -30,7 +29,6 @@ set StateFilterOK = (1<<StateOK)
|
|||
set StateFilterWarning = (1<<StateWarning)
|
||||
set StateFilterCritical = (1<<StateCritical)
|
||||
set StateFilterUnknown = (1<<StateUnknown)
|
||||
set StateFilterUncheckable = (1<<StateUncheckable)
|
||||
|
||||
set NotificationDowntimeStart = (0)
|
||||
set NotificationDowntimeEnd = (1)
|
||||
|
|
|
@ -119,10 +119,6 @@ Dictionary::Ptr CompatUtility::GetHostConfigAttributes(const Host::Ptr& host)
|
|||
attr->Set("notify_on_down", 1);
|
||||
notification_options.push_back("d");
|
||||
}
|
||||
if (notification_state_filter & (1<<StateUncheckable)) {
|
||||
attr->Set("notify_on_unreachable", 1);
|
||||
notification_options.push_back("u");
|
||||
}
|
||||
|
||||
/* notification type filters */
|
||||
if (notification_type_filter & (1<<NotificationRecovery)) {
|
||||
|
|
|
@ -53,8 +53,7 @@ enum ServiceState
|
|||
StateOK = 0,
|
||||
StateWarning = 1,
|
||||
StateCritical = 2,
|
||||
StateUnknown = 3,
|
||||
StateUncheckable = 4,
|
||||
StateUnknown = 3
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -659,8 +659,6 @@ ServiceState Service::StateFromString(const String& state)
|
|||
return StateWarning;
|
||||
else if (state == "CRITICAL")
|
||||
return StateCritical;
|
||||
else if (state == "UNCHECKABLE")
|
||||
return StateUncheckable;
|
||||
else
|
||||
return StateUnknown;
|
||||
}
|
||||
|
@ -674,8 +672,6 @@ String Service::StateToString(ServiceState state)
|
|||
return "WARNING";
|
||||
case StateCritical:
|
||||
return "CRITICAL";
|
||||
case StateUncheckable:
|
||||
return "UNCHECKABLE";
|
||||
case StateUnknown:
|
||||
default:
|
||||
return "UNKNOWN";
|
||||
|
|
Loading…
Reference in New Issue