From: Gunnar Beutner Date: Mon, 6 Aug 2012 12:14:28 +0000 (+0200) Subject: Ignore service reachability for status.dat output. X-Git-Tag: v0.0.1~158 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6982656f2d40ff0efc9fb8f96dae4ff12055f0e9;p=icinga2 Ignore service reachability for status.dat output. --- diff --git a/components/compat/compatcomponent.cpp b/components/compat/compatcomponent.cpp index c1c51e871..70d5c0fc6 100644 --- a/components/compat/compatcomponent.cpp +++ b/components/compat/compatcomponent.cpp @@ -120,17 +120,6 @@ void CompatComponent::DumpServiceStatus(ofstream& fp, const Service::Ptr& servic int state = service->GetState(); - if (!service->IsReachable()) { - state = StateCritical; - - String text = "One or more parent services are unavailable."; - - if (output.IsEmpty()) - output = text; - else - output = text + " (" + output + ")"; - } - if (state > StateUnknown) state = StateUnknown;