nsclient++

Linux love!

Posted by mickem at 2011-08-10

Yaaay...

 [email protected]:/mnt/nscp/build/linux$ ./nscp --test l /mnt/nscp/trunk/service/NSClient++.cpp:553 Attempting to start d ttings_manager/settings_manager_impl.cpp:156 No entries found looking in (adding default): /mnt/nscp/build/linux/boot.ini d ttings_manager/settings_manager_impl.cpp:165 Boot order: old://${exe-path}/nsc.ini, ini://${shared-path}/nsclient.ini d ttings_manager/settings_manager_impl.cpp:168 Activating: ini://${shared-path}/nsclient.ini d ttings_manager/settings_manager_impl.cpp:68 Creating instance for: ini://${shared-path}//nsclient.ini d /trunk/include/settings/settings_ini.hpp:254 Reading INI settings from: /mnt/nscp/build/linux/nsclient.ini d /trunk/include/settings/settings_ini.hpp:228 Loading: /mnt/nscp/build/linux/nsclient.ini from ini://${shared-path}/nsclient.ini l /mnt/nscp/trunk/service/NSClient++.cpp:558 Booted settings subsystem... e /mnt/nscp/trunk/service/NSClient++.cpp:641 Warning Not compiled with google breakpad support! d /mnt/nscp/trunk/service/NSClient++.cpp:410 Found: PythonScript as d /mnt/nscp/trunk/service/NSClient++.cpp:702 Processing plugin: libPythonScript.so as d /mnt/nscp/trunk/service/NSClient++.cpp:986 addPlugin(/mnt/nscp/build/linux/modules/libPythonScript.so as ) d /mnt/nscp/trunk/service/NSClient++.cpp:962 Loading plugin: PythonScript... d nk/modules/PythonScript/PythonScript.cpp:187 Looking for: q d nk/modules/PythonScript/PythonScript.cpp:187 Looking for: /mnt/nscp/build/linux/scripts/python/q d nk/modules/PythonScript/PythonScript.cpp:187 Looking for: /mnt/nscp/build/linux/scripts/q d nk/modules/PythonScript/PythonScript.cpp:187 Looking for: /mnt/nscp/build/linux/python/q d nk/modules/PythonScript/PythonScript.cpp:187 Looking for: /mnt/nscp/build/linux/q e nk/modules/PythonScript/PythonScript.cpp:191 Script not found: q d nk/modules/PythonScript/PythonScript.cpp:187 Looking for: test.py d nk/modules/PythonScript/PythonScript.cpp:187 Looking for: /mnt/nscp/build/linux/scripts/python/test.py d nk/modules/PythonScript/PythonScript.cpp:205 Adding script: py (/mnt/nscp/build/linux/scripts/python/test.py) e /modules/PythonScript/script_wrapper.cpp:12 Hello World e /modules/PythonScript/script_wrapper.cpp:12 Got it: e /modules/PythonScript/script_wrapper.cpp:12 Testing to register a function l /modules/PythonScript/script_wrapper.cpp:27 Added simple command: py_test to list of: py_test l /modules/PythonScript/script_wrapper.cpp:27 Added simple command: py_normal to list of: py_normal, py_test l /modules/PythonScript/script_wrapper.cpp:27 Added simple command: py_nop to list of: py_nop, py_normal, py_test l /modules/PythonScript/script_wrapper.cpp:27 Added simple command: py_nom to list of: py_nom, py_nop, py_normal, py_test l /modules/PythonScript/script_wrapper.cpp:27 Added simple command: py_nor to list of: py_nom, py_nop, py_nor, py_normal, py_test e /modules/PythonScript/script_wrapper.cpp:12 Testing to register settings keys e /modules/PythonScript/script_wrapper.cpp:12 Testing to get key (nonexistant): 4 e /modules/PythonScript/script_wrapper.cpp:12 Testing to get it (after setting it): 4 e /modules/PythonScript/script_wrapper.cpp:12 Saving configuration... d /mnt/nscp/trunk/service/NSClient++.cpp:727 NSClient++ - 0,4,0,83 2011-08-07 Started! l mnt/nscp/trunk/service/simple_client.hpp:26 Enter command to inject or exit to terminate... py_test d /mnt/nscp/trunk/service/NSClient++.cpp:1106 Injecting: py_test... e /modules/PythonScript/script_wrapper.cpp:12 inside test d /mnt/nscp/trunk/service/NSClient++.cpp:1106 Injecting: py_normal... e /modules/PythonScript/script_wrapper.cpp:12 inside normal d /mnt/nscp/trunk/service/NSClient++.cpp:1136 Result py_normal: OK d /mnt/nscp/trunk/service/NSClient++.cpp:1106 Injecting: py_normal... e /modules/PythonScript/script_wrapper.cpp:12 inside normal e /modules/PythonScript/script_wrapper.cpp:12 | Got argument: hello d /mnt/nscp/trunk/service/NSClient++.cpp:1136 Result py_normal: OK d /mnt/nscp/trunk/service/NSClient++.cpp:1106 Injecting: py_normal... e /modules/PythonScript/script_wrapper.cpp:12 inside normal e /modules/PythonScript/script_wrapper.cpp:12 | Got argument: hello e /modules/PythonScript/script_wrapper.cpp:12 | Got argument: world d /mnt/nscp/trunk/service/NSClient++.cpp:1136 Result py_normal: OK d /mnt/nscp/trunk/service/NSClient++.cpp:1136 Result py_test: OK l mnt/nscp/trunk/service/simple_client.hpp:12 OK:Tests ok exit l mnt/nscp/trunk/service/simple_client.hpp:12 Exiting... d /mnt/nscp/trunk/service/NSClient++.cpp:763 Attempting to stop d /mnt/nscp/trunk/service/NSClient++.cpp:766 Stopping: NON Message Handling Plugins d /mnt/nscp/trunk/service/NSClient++.cpp:916 Unloading plugin: PythonScript... e /modules/PythonScript/script_wrapper.cpp:12 Unloading script... d /mnt/nscp/trunk/service/NSClient++.cpp:794 Stopping: Settings instance d /mnt/nscp/trunk/service/NSClient++.cpp:818 Stopping: Message handling Plugins d /mnt/nscp/trunk/service/NSClient++.cpp:916 Unloading plugin: PythonScript... l /mnt/nscp/trunk/service/NSClient++.cpp:826 Stopped succcessfully [email protected]:/mnt/nscp/build/linux$ uname -a Linux kubuntu-VirtualBox 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux [email protected]:/mnt/nscp/build/linux$

A few issues here and there but at least the python script module is working on Linux :P \~\~Tomorrow I am gonna see if I can get NRPE and such up as well...\~\~ Then I guess it is time to get some third party feedback '''UPDATE:''' NRPE is also working actually:

 [email protected]:/mnt/nscp/build/linux$ /usr/lib/nagios/plugins/check_nrpe -H localhost -c py_test Tests ok

Soo... maybe I shall writeup a guide on how to build it? // Michael Medin

Comments