Posts in category release

New (and final) Release Candidate for 0.3.8!

Hello google bot! (and some happy weeks even the yahoo bot).

I have just released the final (I hope) release candidate for the 0.3.8 version. It has a lot of new features and, I am especially, proud of the new event log filters.

For those who has not seen the eventlog filter I recommend reading up on the quick guide i wrote on the CheckEventLog/CheckEventLog page. It has a fairly good getting started guide I hope. But a quick note is that the new default filter is:

generated > -2d AND severity NOT IN ('success', 'informational')

Which I believe is a lot more readable the before.

Other news are many minor changes and fixes in the file7disk related checks as well as index in CheckCounter to allow handling multiple languages and locales.

The changelog grouped by module can be found here:

New commands 
 - CheckSingleFile - to check spects of a single file use like so:
	CheckSingleFile file=d:\nrpe_512.pem warn=>100 check=line-count warn=>100 crit=>170 check=size
 - CheckSingleRegEntry
	CheckSingleRegEntry path=HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventlog\Application\MaxSize "syntax=%path%: %int%"  warn==20971520 crit==20971520 check=int ShowAll=long

Scripts
 - Cleaned up scripts folder
 - Added new "NagiosPlugin library" from op5
 - Added check_no_rdp.vbs (Checks that no RDP connection is online)
 - Added check_battery.vbs which checks batterys via WMI
 - Added check_printer.vbs to check printers via WMI

CheckExternalScript
 - Added new "script templating" thing to simplify adding scripts:
	[Wrapped Scripts]
	test=check_test.ps1 ; (will use correct template for running ps1 commands)
 - Fixed erroneous error message "Failed to peek buffer"

NSCA
 - Added obfuscated_password to NSCA section
 - Added so "global" ([Settings] password=...) passwords are read from the NSCA module

CheckEventLog
 - Brand new filter syntax based on SQL where clauses
	Avalible operators are: =, !=, >, <, >=, <=, eq, ne, gt, lt, ge, le, OR, AND, like, IN, NOT IN
 
CheckCounter
 - Added new index option to CheckCounter to allow looking up index and thus you can use the same checks on multiple locales and also use characters not present in "NRPE charset)
	CheckCounter index "Counter=\1450(_Total)\1458" ShowAll MaxWarn=500 MaxCrit=1000
	nsclient++ -noboot CheckSystem pdhlookup Utskrifter
 - Optional new "safe" PDH subsystem (slower, but possibly safer)
	pdh_subsystem=thread-safe
 - Added checks for missing counters to CheckCounter
 
CheckDriveSize
 - Added volume support for CheckDriveSize (CHeckAll) like so:
	CheckDriveSize MinWarn=50% MinCrit=25% CheckAll=volumes FilterType=FIXED FilterType=REMOTE
 - Changed "missing" disks are now a critical error and not unknown
 - Improved CheckDriveSize bad FilterType error message
 - Added option to return error messages to the client [CheckDisk] show_errors=1 (defauilt is off 0)

CheckFile2
 - Dates are signed (means you can use neagitve dates to check the future)
	CheckFile2 debug path=D:\tmp\dates filter+creation=<-30m MaxWarn=1 MaxCrit=1 "syntax=%filename%: %creation%"
	CRITICAL:future.txt: C: Thursday, December 31, 2009 12:47:11, found files: 1 > critical|'found files'=1;1;1;
 - Added checks for missing path and missing filter on CheckFile2 thus
 - Fixed so files locked for reading can be checked (basic checks)
 - Improved speed of file chyecking (does not check file data twice)
 - Changed so missing files and such generate an error
 - Fixed major issue with date matching in CheckFile* which was not working at all.

- Exe file version checks: 
	CheckFile2 path=D:\tmp pattern=*.exe filter+version=!=6.0.2900.5512 "syntax=%filename%: %version%" MaxWarn=1
 - Line count check: 
	CheckFile2 path=D:\tmp pattern=*.txt filter+line-count=ne:3 "syntax=%filename%: %line-count%" MaxWarn=1
 - Added ignore-errors to "ignore" any filesystem related errors (NOTICE this is probably not what you want)
 - Added master-syntax to CheckFile2 to change the overall message like so: %list%, %files%, %matches%
	CheckFile2 MinWarn=10 MinCrit=10 path=D:\WINDOWS\system32 filter+size=gt:0 truncate=10 ignore-errors "master-syntax=%matches%/%files%"
 - Added %user% to syntax to print user who generated message
	CheckEventLog file=application file=system filter=new filter=out MaxWarn=1 MaxCrit=1 filter-generated=>2w filter-severity==success filter-severity==informational truncate=1023 unique descriptions "syntax=%user% (%count%)"
	CRITICAL: (1),  (2), NT INSTANS\SYSTEM (3), NT INSTANS\SYSTEM (3), NT INSTANS\SYSTEM (3), missing (3), missing (5),  (4), missing (2), missing (2), missing (2), missing (2),  (1), eventlog: 33 > critical|'eventlog'=33;1;1;

Generic:
 - Added != to all string comparisons
 - Changes syntax of performance counters: Alias is '<alias> %' and it also has the "full" non % data as '<alias>'
	CheckDriveSize CheckAll MaxWarnUsed=80% MaxCritUsed=90%
	CRITICAL:CRITICAL: C:\: Total: 146G - Used: 140G (95%) - Free: 6.31G (5%) > critical, D:\: Total: 152G - Used: 148G (97%) - Free: 3.59G (3%) > critical|'C:\ %'=95%;80;90; 'C:\'=140.17G;117.18;131.83;0;146.48; 'D:\ %'=97%;80;90; 'D:\'=147.93G;121.21;136.3;0;151.52;
 - Added warning message ewhen numerical filters evaluate to zero (and are not 0)
 -  added a new "option" in conjunction with -c you can now do -m to specify the module to load.
	nsclient++ -m CheckDisk.dll -c CheckDriveSize MaxWarn=100 CheckAll

Please try it and let me know, if nothing major pops up I will release 0.3.8 tomorrow.

// Michael Medin

0.3.7 Released

New version out mainly a fix for the problems of 0.3.6 version.

Major changes:

 * Added argument support to NRPE Client
 * Some additions and fixes CheckWMI
 * Improved installer (works on w2k8 etc)
 * NSCA feature and stability improvments
 * New command line switchs to easily use NSClient++ from external scripts
 * Added "firewall exception" to installer
 * Fixed an issue with the socket data buffer
 * Fixed issue with CheckExternalScripts and script_dir
 * Fixed issue with CheckDisk and paths
 * Documentation!

I think the major thing is the documentation apart from some bug fixes and installer improvements such. Regardless it is a recommended update.

NOTE It is late so I shall update sourceforge and what not tomorrow.

// Michael Medin

Full changelog:

2009-10-11 MickeM
 + Added argument support to NRPE Client
   This is temporarily enabled by the same options under the NRPE section. BUT this will change int he future so be ware when using them.

2009-09-20 MickeM
 * Fixed alias in CheckWMI (now works)
 + Added columnSyntax to CheckWMI to allow formating of returned data (default is %column%=%value%)
 + Added columnSeparator to CheckWMI to allow formating of returned data (default is ", ")

2009-09-13 MickeM
 * Fixed some more issues with the installer should not "work" on Windows 2008 as well as slightly simpler to configure.

2009-09-06 MickeM
 + Added new option to [NSCA Agent] string_length=<size> of the NSCA_MAX_PLUGINOUTPUT_LENGTH option on the NSCA server.
 * Readded all the "installer configuration" crap which I accidentaly removed when I fixed the installer... *sigh*

2009-08-30 MickeM
 + Added -c and -d command line options like so:
   NSClient++ -c CheckFile2 path=c:\test pattern=*.txt MaxCrit=1 filter+written=gt:2h
   NSClient++ -c <command> <argument 1> <argument 2> ...
   -d Is the same thing but with debug enabled.
 + Added uninstall of old client (sort of broken but works)

2009-08-29 MickeM
 * Fixed issue with CheckFile (directory)
 * Rewrote the CA:s in the installer to work "better" (hopefully) in general it should be have more like a propper installer.

2009-07-18 MickeM
 * Fixed issue with no loggers avalible and "memory leak"
 * Added "firewall exception" to installer
 * Fixed an issue with the socket data buffer
 * Added new option to NSC.ini [NSCA] socket_timeout=30 (timeout in seconds when reading from NSCA sockets)
 * Fixed issue with NSCA socket.

2009-07-05 MickeM
 * Fixed issue with CheckExternalScripts and script_dir: not adding the commands properly.
 * Fixed issue with CheckExternalScripts and script_dir: not using relative paths (#310).

2009-06-20 MickeM
 * Fixed issue with CheckDisk and paths not working out properly

New nightly: Improved installer

New nightly build out. Mainly this has a much improved installer so please let me know how it work out.

Also if you have an old version of NSCLient++ (which is not upgraded/uninstalled propperly) send mt the install log (msiexec /l* log.txt /i <MSI>) so I can add it to the "uniinstall thingy" I have added.

There is also some fixes in the CheckFile department which fixes a few issues here and there.

// Michael Medin

0.3.6 Release!

Finally after and long overdue is the new version here. This is a major update and a recommended one as there are memory leaks in the previous version.

The highlight in addition to all the fixes and minor things are the experimental new installer which allows you to configure some options while installing NSClient++. The installer should I hope work better and provide easier error handling and such. The only issue thus far are some reports on windows 2007 where it requires administrative privileges to install. I do not have windows 2007 so I cannot confirm this (if someone has windows a spare 2007 or want to sponsor this platform get in touch with me).

A few of the highlights:

 * Improved installer
 * A lot of bugfixes and improvements 
 * Serious memory leak fixed
 * Added a few new options to NSCA module
 * New service name and description
 * Improved CHeckFile2 (new option max-dir-depth, path, pattern)
 * Added support for changing name and description of service from the /install
   command line
 * Added more filter operators to all numeric filters so they accept 
   eq:, ne:, gt:, lt: in addition to =, >, <, <>, !, !=, in: (#269)
 * Added better support for numerical hit matching in the eventlog module. 
   You can now use exact and detailed matching.
 * Cleaned up the checkProcState code and it is not a lot better.
 * Added new option 16bit to checkProcState. 
   When set checkProcState will enumerate all 16 bit processes found running under NTVDM.
 * Added new command line options pdhlookup and pdhmatch (to CheckSystem) to 
   lookup index and names.
 * Added new module A_DebugLogMetrics.dll which can be used to generate debug info.
 * Brand new build environment based upon boost build!!!
 * Modified /about so it now shows a lot of useful(?) info.

For all changes refer to the changelog.

On a side not I will during the night switch over to a new host so hopefully the site will be more stable as well!

// Michael Medin