Remove the uncheckable state.

This commit is contained in:
Gunnar Beutner 2013-10-01 13:12:04 +02:00
parent 5a6b7ffb78
commit 400fe5e13c
4 changed files with 1 additions and 12 deletions

View File

@ -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)

View File

@ -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)) {

View File

@ -53,8 +53,7 @@ enum ServiceState
StateOK = 0,
StateWarning = 1,
StateCritical = 2,
StateUnknown = 3,
StateUncheckable = 4,
StateUnknown = 3
};
/**

View File

@ -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";