]> granicus.if.org Git - icinga2/commitdiff
Ignore service reachability for status.dat output.
authorGunnar Beutner <gunnar.beutner@netways.de>
Mon, 6 Aug 2012 12:14:28 +0000 (14:14 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Mon, 6 Aug 2012 12:14:28 +0000 (14:14 +0200)
components/compat/compatcomponent.cpp

index c1c51e87157a190036267700eb57ea8361393d80..70d5c0fc6ef4a81e223b2267f6efd8f979d87d00 100644 (file)
@@ -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;