[icinga-checkins] icinga.org: icinga2/master: Start working on check_nscp

git at icinga.org git at icinga.org
Wed Oct 5 15:05:54 CEST 2016


Module: icinga2
Branch: master
Commit: 37c97c75733826fc1a33f4dd848b072dee79097a
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=37c97c75733826fc1a33f4dd848b072dee79097a

Author: Jean Flach <jean-marcel.flach at netways.de>
Date:   Tue Oct  4 17:48:13 2016 +0200

Start working on check_nscp

---

 plugins/CMakeLists.txt |    9 +++++----
 plugins/check_nscp.cpp |   24 ++++++++++++++++++++++++
 plugins/check_nscp.h   |   29 +++++++++++++++++++++++++++++
 3 files changed, 58 insertions(+), 4 deletions(-)

diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt
index e46053d..be2185f 100644
--- a/plugins/CMakeLists.txt
+++ b/plugins/CMakeLists.txt
@@ -27,8 +27,9 @@ if ( WIN32 )
   )
   
   list ( APPEND check_SOURCES 
-    check_disk.cpp check_load.cpp check_memory.cpp check_network.cpp check_perfmon.cpp check_ping.cpp
-    check_procs.cpp check_service.cpp check_swap.cpp check_update.cpp check_uptime.cpp check_users.cpp )
+    check_disk.cpp check_load.cpp check_memory.cpp check_network.cpp check_nscp.cpp check_perfmon.cpp
+    check_ping.cpp check_procs.cpp check_service.cpp check_swap.cpp check_update.cpp check_uptime.cpp
+    check_users.cpp )
   
   foreach ( source ${check_SOURCES} ) 
     string ( REGEX REPLACE ".cpp\$" "" check_OUT "${source}" )
@@ -53,8 +54,8 @@ if ( WIN32 )
   target_link_libraries ( check_users wtsapi32.lib )
 
   install (
-    TARGETS check_disk check_load  check_memory check_network check_perfmon check_procs
+    TARGETS check_disk check_load  check_memory check_network check_nscp check_perfmon check_procs
       check_ping check_service check_swap check_update check_uptime check_users
-      RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR} )
+    RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR} )
 
 endif ( )
diff --git a/plugins/check_nscp.cpp b/plugins/check_nscp.cpp
new file mode 100644
index 0000000..5279d79
--- /dev/null
+++ b/plugins/check_nscp.cpp
@@ -0,0 +1,24 @@
+/******************************************************************************
+* Icinga 2                                                                   *
+* Copyright (C) 2012-2016 Icinga Development Team (https://www.icinga.org/)  *
+*                                                                            *
+* 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.             *
+******************************************************************************/
+
+#include "check_nscp.h"
+
+int main() {
+	return 0;
+}
\ No newline at end of file
diff --git a/plugins/check_nscp.h b/plugins/check_nscp.h
new file mode 100644
index 0000000..caf22aa
--- /dev/null
+++ b/plugins/check_nscp.h
@@ -0,0 +1,29 @@
+/******************************************************************************
+ * Icinga 2                                                                   *
+ * Copyright (C) 2012-2016 Icinga Development Team (https://www.icinga.org/)  *
+ *                                                                            *
+ * 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.             *
+ ******************************************************************************/
+
+#ifndef CHECK_NSCP_H
+#define CHECK_NSCP_H
+
+#include <Windows.h>
+
+#include "thresholds.h"
+
+#include "boost/program_options.hpp"
+
+#endif // !CHECK_NSCP_H



More information about the icinga-checkins mailing list