| Version 1 (modified by trac, 7 years ago) (diff) |
|---|
About NSClient++
NSClient++ (or nscp as I tend to call it nowadays) aims to be a simple yet powerful and secure monitoring daemon for windows operating systems. It is built for Nagios but nothing in the daemon is actually Nagios specific and could probably with little or no change be integrated in any monitoring software that supports running user tools for polling.
The structure of the daemon is a simple NT service that loads a plug-ins to an internal stack. The plug-ins can then request data (poll performance data) from the other plug-ins through the internal stack. As of now there are a few plug-ins for basic performance data collection.
NSClient++ can be extended in two ways you can either write your own plug-in to or you can execute an external script (as of now batch/exe/*). Writing your own plug-in is of course the most powerful way but requires knowledge of C++ or other language which can produce DLLs and interface with regular C programs.
As for checking with NSClient++ I would recommend NRPE as it is a lot more flexible then check_nt. But NSClient has full support for check_nt and if there is an interest I could probably add support for check_nt from nc_net.
---News 2006-01-21
===Added WMI Check module (early alpha) This is an extremely early alpha more to see if there is an interest and how to progress with it. To use the WMI module enable the WMICheck.dll (nsc.ini) and then run the following check: CheckWMI MaxWarn=10 MaxCrit=15 "Query:load=Select LoadPercentage? from win32_Processor" The Max* are as every other check and sets limits. The Query works similarly to other check commands ie. Query:<name>=<WMI query> So any other WMI query should work (notice this is experimental and not stable and has virtually no error handling so it is likely to crash nsclient if you ask anything "non working".) I would *really* *really* like to get feedback on how to expand this concept to work better so feel free to come with feedback.
Fixed NT4 /install (should work now!) 2006-01-02
Minor fixes (but Im starting to be a tad more active now, or so I hope :)
Changes in this version:
Fixed ChangeServiceConfig2 on NT4 Added support for more then 4GB memory (8GB?) Since I dont have this much memory this needs to be verified... Fixed syntax of performance data 2005-09-26
Minor additions and a bugfixrequests as well as updates to the documentation
Changes in this version:
Fixed memory size bug (free and used were swapped) Added option to debug all PDH counters /debugpdh Added support for checking service by display name Download
NSClient can be found at its source forge page http://nscplus.sf.net
Latest version is NSClient++ 0.2.5a.zip Modules
NSClient++ comes with a few modules out of the box that does various checks. A list of the modules and there potential use is listed below here click each plug-in to see detailed command descriptions and how the various modules can be used. -CheckDisk Module to do various disk related checks-
CheckFileSize Check the size of a file CheckDriveSize Check the size of a fixed drive or mounted volume
CheckEventLog Module to check event log
CheckEventLog Check event log for errors
CheckSystem Module to check system related things
CheckCPU Check CPU load averages CheckUpTime Check system uptime CheckServiceState Check State of a service CheckProcState Check state of a process (application) CheckMem Check state of memory (Page file) CheckCounter Check performance counters
CheckHelpers Various helper function, doesn't check anything in it self but can help make things simpler.
CheckAlwaysOK Runs another check and always returns OK regardless of result. CheckAlwaysCRITICAL Runs another check and always returns CRITICAL regardless of result. CheckAlwaysWARNING Runs another check and always returns WARNING regardless of result. CheckMultiple Runs multiple checks and returns them all in one go.
FileLogger Logs all messages (errors, warnings etc) to a file. NRPEListener Listens for incoming NRPE calls and handles them by injecting them into the core. It also listens for all NRPE definitions and executes them NSClientListener Listens for incoming NSClient calls and handles them accordingly. This only allows a limited subset of functionality and NRPE is recommended. SysTray
A simple module to show an icon in the tray when the service is running this module does not export any check commands. Installation
NSClient++ comes with simple command line option for registering (and deregistering) the service but it does not have a GUI installer.
Thus to install the Client you only need to copy the files to a directory of you choice and then run “NSClient /install”.
Before you start NSClient++ you need to configure the client this is done by editing the configuration file (NSC.ini). The configuration file is a simple text file and is explained in detail under Configuration. The files needed by NSClient++ varies but mainly the exe and DLL:s in the NSClient++ root are required as well as all the modules you plan to use from the modules subdirectory (/modules/*).
The configuration file (NSC.ini) *NEEDS* to be configured as for security reasons all plug-ins are disabled by default. The reason for this is so no one will accidentally install this and get potential security issues, I believe that things should be "off" by default. Also notice that by default allowed_hosts are 127.0.0.1 so you need to modify this as well.
To install NSClient++ execute the following command:
NSClient++ /install
To uninstall NSClient++ execute the following command:
NSClient++ /uninstall
To start NSClient++ execute the following command:
NSClient++ /start
To stop NSClient++ execute the following command:
NSClient++ /stop
If you only wish to test it or debug the client you can use the following without installing it first.
NSClient++ /test Configuration
Configuration is fairly simple and straight forward. Open the configuration file in notepad (or you favorite editor) “notepad <installation path>\NSC.ini” and edit it accordingly.
A longer description of the Configuration file is included in the following page.








