]> granicus.if.org Git - icinga2/blobdiff - lib/icinga/compatutility.hpp
Correct current_concurrent_checks to actually running checks
[icinga2] / lib / icinga / compatutility.hpp
index 4f1c59c600b4791019a4f8e15703abf972e3f028..7b96fb308b96523ee0acbf4d13b180f84bc24165 100644 (file)
@@ -1,32 +1,11 @@
-/******************************************************************************
- * Icinga 2                                                                   *
- * Copyright (C) 2012-2018 Icinga Development Team (https://www.icinga.com/)  *
- *                                                                            *
- * This program is free software; you can redistribute it and/or              *
- * modify it under the terms of the GNU General Public License                *
- * as published by the Free Software Foundation; either version 2             *
- * of the License, or (at your option) any later version.                     *
- *                                                                            *
- * This program is distributed in the hope that it will be useful,            *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *
- * GNU General Public License for more details.                               *
- *                                                                            *
- * You should have received a copy of the GNU General Public License          *
- * along with this program; if not, write to the Free Software Foundation     *
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.             *
- ******************************************************************************/
+/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
 
 #ifndef COMPATUTILITY_H
 #define COMPATUTILITY_H
 
 #include "icinga/i2-icinga.hpp"
-#include "icinga/customvarobject.hpp"
 #include "icinga/host.hpp"
 #include "icinga/command.hpp"
-#include "base/dictionary.hpp"
-#include "base/array.hpp"
-#include <vector>
 
 namespace icinga
 {
@@ -43,21 +22,8 @@ public:
        static String GetCommandLine(const Command::Ptr& command);
        static String GetCommandName(const Command::Ptr& command);
 
-       /* host */
-       static int GetHostCurrentState(const Host::Ptr& host);
-       static String GetHostStateString(const Host::Ptr& host);
-       static int GetHostNotifyOnDown(const Host::Ptr& host);
-       static int GetHostNotifyOnUnreachable(const Host::Ptr& host);
-
        /* service */
        static String GetCheckableCommandArgs(const Checkable::Ptr& checkable);
-       static double GetCheckableCheckInterval(const Checkable::Ptr& checkable);
-       static double GetCheckableRetryInterval(const Checkable::Ptr& checkable);
-       static String GetCheckableCheckPeriod(const Checkable::Ptr& checkable);
-
-       static int GetCheckableNoMoreNotifications(const Checkable::Ptr& checkable);
-       static int GetCheckableInCheckPeriod(const Checkable::Ptr& checkable);
-       static int GetCheckableInNotificationPeriod(const Checkable::Ptr& checkable);
 
        /* notification */
        static int GetCheckableNotificationsEnabled(const Checkable::Ptr& checkable);
@@ -67,12 +33,6 @@ public:
        static double GetCheckableNotificationNotificationInterval(const Checkable::Ptr& checkable);
        static int GetCheckableNotificationTypeFilter(const Checkable::Ptr& checkable);
        static int GetCheckableNotificationStateFilter(const Checkable::Ptr& checkable);
-       static int GetCheckableNotifyOnWarning(const Checkable::Ptr& checkable);
-       static int GetCheckableNotifyOnCritical(const Checkable::Ptr& checkable);
-       static int GetCheckableNotifyOnUnknown(const Checkable::Ptr& checkable);
-       static int GetCheckableNotifyOnRecovery(const Checkable::Ptr& checkable);
-       static int GetCheckableNotifyOnFlapping(const Checkable::Ptr& checkable);
-       static int GetCheckableNotifyOnDowntime(const Checkable::Ptr& checkable);
 
        static std::set<User::Ptr> GetCheckableNotificationUsers(const Checkable::Ptr& checkable);
        static std::set<UserGroup::Ptr> GetCheckableNotificationUserGroups(const Checkable::Ptr& checkable);