Posts in category rc

Second RC for an updated version of 0.4.1

Some bugs sneaked in to the previous release candidate as well as another issue fixed.

The full change log for this update (since previous RC is):

2013-04-30 MickeM
 * Fixed issue with negative performance data
 * Added unit test for arguments and external script
 * Fixed truncation issue with performance data (#624)

2013-04-27 MickeM
 * Fixed bug added in build 95 regarding allowing nasty characters

2013-04-24 MickeM
 * Added auto-uc to get hostname as upper case

New RC for an updated version of 0.4.1

A new update for 0.4.1 is available as a release candidate now. If no one reports any major bug this build will be released as an update to 0.4.1 in a week or so.

So please everyone help out and make sure there are no major bugs and/or issues. This contains some bugfixes as well as a few enhancements some of the highlights are:

  • Encoding support (for External scripts as well as NSCA)
  • Eventlog reset issues for realtime monitoring
  • Readded the check_nt -v FILEAGE check
  • Qouting of command lines now works
  • No works with both an ipv6 and ipv4 interface

Michael Medin

The full changelog is here:

2013-04-23 MickeM
 * Added encoding option to external scripts
 * Added encoding option to NSCAClient
 * Added NSCPDOTNET.dll for making dot-net plugins

2013-04-22 MickeM
 * Fixed an issue with % in warn and crit thresholds for CheckCPU

2013-04-21 MickeM
 * Fixed issue with eventlog reset (will not rescan from the beginning if an error is encountered)

2013-04-16 MickeM
 * re-added check_nt FILEAGE option.

2013-04-13 MickeM
 * Fixed issue with binding to multiple interfaces (ie. machines with both ipv6 and ipv4 addresses).
 * Fixed some missing documentation from core settings keys such as /settings/log and /includes.
 * Added debug message warning about having $ARG??$ in external scripts wehn allowe arguments is false.
 * Removed need to escape and qoute commands for external scripts (command line will now be used as-is)
 * Fixed qouting issues with external scripts
 
2013-01-21 MickeM
 * Fixed two include files issues

2013-01-19 MickeM
 * Fixed Wix 3.7 and added wix to dependencies

New release candidate for 0.4.1

Hello, a few bug fixes and minor improvements to the 0.4.1 branch ready for testing. If nothing major is reported I will release this in a few days.

Highlights:

  • New option which can drastically improve CheckEventLog performance scan-range
  • Sample config with "all" options
  • Encoding support for NRPE
  • No more loading issue in PythonModule? if python is not installed.
  • Some additional bug fixes

Michael Medin

Full change log:

2013-01-17 MickeM
 * Added nsclient-full.ini with "all" (non advanced) avalible options.
 * Fix for reloading settings from file from script: core:reload('settings') will not work.
   Notice it still will onlya reload the settings not the modules so modules have to be reloaded manually.
 * Fixed return code issue in nsclient-ini full generator.

2013-01-13 MickeM
 * Fixed crash when collector thread is not started.

2013-01-02 MickeM
 * Fixed message dialog when loading PythonScript module without python installed.
 * (re)add check_fiulesize which was accidentally removed.
 * Fix for http settings
 * fix for --version command line option

2012-12-28 MickeM
 * Reverted default NRPE encoding to "system" (not UTF-8).
 * Added new option to configure NRPE encoding:
    [/settings/NRPE/server]
    encoding = utf8
   Valid values are currently system and utf8 (and strangely enough utf7). If you need something else let me know.

2012-12-25 MickeM
 * Added option scan-range to CheckEventLog.
   This new option reduces the entries scanned a *lot* and can help solve memory, time and CPU issues.
   The idea is that is negative we start scanning from the end and once we hit something outsiden the range we stop scanning.
   There is a chanse that entries reported are "outside" the range so set range bigger then generate/written date/times (to reduce this risk).
     CheckEventLog file=application file=system MaxWarn=1 MaxCrit=1 "filter=generated gt -1h AND level eq 'info'" truncate=800 unique descriptions "syntax=%severity%: %source%: %message% (%count%)"
   Executes in 7 seconds adding scan-range=-5h executes in 0 seconds (yields the same result).
 * Added error message when overriding a commad (ie. when alias check_cpu overrides the new command check_cpu).
   Wont work (for technical reasons) for duplicate aliases ie.- alias x=foo and x=bar

0.4.1 RC4 (Last change to report bugs)

Hello, release RC4 of 0.4.1 (build 72). It contains some fixes for major issues and hopefully the last batch. Since I have promised to release 0.4.1 this year I hope this will be the final RC so unless there are no important issues this will become golden (ie. release) in a week or so...

So please pleas please everyone try it out and let me know any issues you have!

Change log:

2012-12-02 MickeM
 * Added option to disable new alias check_cpu and only register old ones CheckCPU
   [/settings/default]
   modern commands=false

2012-11-29 MickeM
 * Improved exception handling in server threads

2012-11-28 MickeM
 * Fixed crash in NRPE server when payload was to large (#585 #582)
 * Fixed issue with lua unit test
 * Added payload length simulation in lua unit tests (so it returns various payload sizes)
 * Added nscp.sleep to Lua scripts (but dont use as I will implement coroutines in 0.4.2)
 * Fixed registry settings bug
 * Fixed issue with parsin performance data with leading spaces
 * Fixed issue with rendering filters

Also I have switched master to 0.4.2 so master is now development branch. 0.4.1 remains in 0.4.1 branch, and previous master is now 0.4.0 (which contains the 0.4.0 code).

Michael Medin

0.4.1 RC3

Yet another RC (0.4.1.66) which hopefully fixes the check_nt crash some people was experiencing. If not please urgently send crash dumps and let me know! Also introduces some new minor features as well as bug fixes:

Full change log:

2012-11-18 MickeM
 * Created nscpnobp.exe which is a version without break pad for older machines (windows 2000 and nt4).
   This can only be foundin the zip file (not the msi)
 * Added some missing file to zip
 * Removed counters.defs since it is not used anymore

2012-11-17 MickeM
 * CheckEventLog: Added debug message lisgin all loaded filters to make it simpler to detect missing once
 * SimpleCache: Added keywords not-found-msg and not-found-code option to configure the outcome of "item not found".
    check_cache index=foobar "not-found-code=Doch! item was not found" not-found-code=critical
 * CheckProcess is no longer case sensetive
 * CheckServiceState: added support for pending states

2012-11-16 MickeM
  * CheckDriveSize now supports regular expressiion filtering:
    CheckDriveSize ShowAll MaxWarn=1M MaxCrit=2M CheckAll=volumes matching=.*[CD].*

2012-11-15 MickeM
 * CheckFiles filter is now optional (not specifying a filter will find all files matching)
 * CheckFiles no longer matching . and ..

2012-11-14 MickeM
 * Added perf-unit to allow for stable performance data units (if not specified it will guess which is the current solution).
    checkmem type=paged MaxWarn=80% perf-unit=M
     => 'paged bytes %'=34%;80;0 'paged bytes'=8454.04M;19629.84;0;0;24537.3
    checkmem type=paged MaxWarn=80% perf-unit=K
     => 'paged bytes %'=34%;80;0 'paged bytes'=8655200K;20100963.19;0;0;25126204
    checkmem type=paged MaxWarn=80% perf-unit=B
     => 'paged bytes %'=34%;80;0 'paged bytes'=8872108032B;20583386316;0;0;25729232896
    checkmem type=paged MaxWarn=80%
     => 'paged bytes %'=34%;80;0 'paged bytes'=8.25G;19.1;0;0;23.96 
 * Fixed threadding issue related to servers (ie. check_nt causing a crash)
    Dont know what I was thinking when I designed that, pretty stupid bug :(

Michael Medin

  • Posted: 2012-11-18 22:29
  • Categories: rc
  • Comments (0)

0.4.1 RC2 out (and I am back now)

Hello,

Lets start off with the NSClient++ related stuff: Just posted a new RC (0.4.1.62) which fixes a number of issues. There is still the issue with check_nt sockets crashing if you encounter this issue please send me crash dumps and logs as well as the commands your using and I shall investigate it.

Changelog:

 * Fixed issue with loading performance counters (check_cpu)
 * Fixed default service name (nscp)
 * CheckWMI: Added support for lists of integers

Also the reason there have been no updates in a while is that I was getting some Oracle certifications (which are now complete (ish)). So now I am am a:

The certifications I now hold are:

  • 1Z0-451: Oracle Service Oriented Architecture Infrastructure Implementation Certified Expert
  • 1Z0-543: Oracle Application Integration Architecture 11g Certified Implementation Specialist

So if ever you need an Oracle SOA or AIA (not so) specialist feel free to call me :) With hindsight I have to say the certifications were pretty crappy some 60-70 questions multiple choice where the answer was rather obvious in addition to this the passing score was 60% so you could almost have guessed your way through it :) so cant really say it deserved the 3 weeks I spent studying... Could probably have passed with a lot less studying. But alas now it is done and I am certified so my boss is happy...

Michael Medin

0.4.1 RC1 out

Hello,

Just wanted to let you all know that build 61 is the first release candidate of NSClient++ 0.4.1 which will become the new stable version so time to get your bug hunting gloves on and start testing it!

Michael Medin

  • Posted: 2012-10-24 13:59
  • Categories: rc
  • Comments (0)

Last chance!

Well, if nothing popups this week 0.4.0 will be release this weekend! So now's the time to test or it will ship with bugs :)

Michael Medin

Another attempt at a "final 0.4.0 RC"

Build 153

Almost starting to feel a bit pathetic but hopefully this means it will be a smoother release. So again please, please, please test!

Anyways, The main fix is the does-not-start-on-boot which was due to a problem with the boost library I used to to thread/process communication (it apparently required DNS to load which caused timeouts as well as failing the service). Other fixes and enhancements include NSCA settings parsing/upgrading as well as reworked the generation command making it possible to generate a settings file with less "crap" and more things you actually need. I will BTW also in the next few days write a blog post about using the settings subsystem from a 0.3.x perspective...

UPDATE This means the FileLogging? module is no longer used/required so please remove that from your config file (log-to-file is now included in the main program).

Full changelog here:

2012-04-01 MickeM
 * Fixed issue with default port for NSCA/NRPE/* clients

2012-03-31 MickeM
 * Rewritten log implementation from ground up without using crappy boost library which requires DNS :(

2012-03-27 MickeM
 * Removed some annoying "error" messages
 * Tweaked FGileLogger a bit to be more "modern"
 * Changed so file-name expansion is more efficient
 * Changed so modules are defaulted to 0 in config.
 * Log levels are case sensetive
 * Fixed so log level is not read from ini file
 * improved plugin processing from ini files

2012-03-26 MickeM
 * Fixed perfoamcen data parsing issue
 * Fixed external scripts perfoamcen data issue
 * Fixed boolen flag handling in settings (default generated as false regardless of actual state)
 * Fixed so "advanced properties" are not generated with --update-defalts
 * Added some "advanced properties" here and there
 * Fixed path handling for object

2012-03-25 MickeM
 * Added last few features to the GraphitePlugin (which is now usable)
 * Tweaked nscp settings command line syntax a bit to be more flexible and usable...

Michael Medin

  • Posted: 2012-04-02 20:36 (Updated: 2012-04-03 07:45)
  • Categories: 0.4.0 rc
  • Comments (5)

0.4.0 Rc4 - build 148 (The last RC?)

Well, a few bugs got caught and fixed and I managed to add a bunch of test cases for event log checking as well. Nothing major but please please est and let me know. If no new bugs pop up this will become 0.4.0 in a bit...

Full change log

2012-03-20 MickeM
 * Fixed alias/service name for real-time event log filters
 * Added smtp/syslog and graphite clients to installer
 * Fixed so eventlog wont crahs on invalid messages

2012-03-19 MickeM
 * Fixed issue in installer and "Make file writable" by everyone now uses Users SID.
 * Fixed issue in installer and "Default plugins" now correctly sets them to 1.
 
2012-03-18 MickeM
 * Removed dependency on tcpip from the service and the installer
 * Added new command to EventLog CheckEventlogCached which checks result caught by the real-time process.
   CheckEventLogCACHE warn=gt:1 crit=gt:5
   Requires a configured real-time checker to work.
 * Added a series of keywords to EventLog check to facilitate better checking
 * Added a set of aliases to make EventLog behave more like Wdinwos Eventlog viewer.
 * Added a lot of unit test cases to the Eventlog checker.
 * Fixed issue with default schedule beeing added as an item and not a template

0.4.0 Rc3 (The last RC?)

Hello,

Another RC out now. Main focus for this one has been fixing bugs and making sure various things works. The good thing is I have now closed almost half the tickets (many of then was already fixed). And hence forth I plan to work more actively at closing defect which means defects will work better for bugs/feature requests then forum posts.

There are mainly minor tweaks and updates in this version so nothing really to write about. But hopefully most things will now work.

Please try it out and let me know if you have any issues as I hope to release 0.4.0 pretty soon! And if I have forgotten/missed an issue you have reported before please remind me I tend to miss some defects when time drags out and I get sidetracked!

Michael Medin

Full changelog:

2012-03-11 MickeM
 * Fixed a lot of issues with the installer
 * Added so the installer can generate a config file for you
 * Fixed so installer uses the correct path for password and allowed hosts

2012-03-08 MickeM
 * Major improvments to the WMI command line syntax.
   You can now: list namespaces, list classes, list instances as well as run queries.
   Means you can use NSCLient++ as a almost full featured WMI command line client.
   For details use: nscp wmi --help
 * Added sample python WMI script to list all classes in all namespaces
 * Fixed so if python scripts does not expose init and shutdown they will not be called
 * Added new option --simple to CheckWMI wmi commands to return a simple list without formatting.
	
2012-03-06 MickeM
 * Added "back" WMI Query command line exec like so:
    nscp wmi --exec wmi-query
	CheckWMI Command line syntax:
	Allowed options:
	  -h [ --help ]                        Show help screen
	  -w [ --wmi-query ] arg               Query to execute
	  -l [ --limit ] arg                   Limit number of rows
	  -n [ --namespace ] arg (=root\cimv2) Namespace
	nscp wmi --exec wmi-query --query="Select * from Win32_Process" --limit 2

2012-03-05 MickeM
 * Fixed so time/date comparissons are actually done in UTC (fixed for real this time!)
 * Added a series of testcases for CheckFiles (test_w32_file)

2012-03-04 MickeM
 * Added new dot-net API (Which does not require any strange wrappers)
 * Added brand new sample C# plugin
 * Fixed issue with python unit script loading usig the wrong default options

2012-02-21 MickeM
 * Added new module CauseCrash which has a single command CrashClient to allow the service to be crashed remotly
   *WARNING* Dont use this command, it is for debugging and testing purpouses only
 * Fixed issue with BreakPad which was disabled
 * Fixed some unix issues (sorry but hudson's stopped emailing me again:( )
 * Fixed service --install (now sets correct options)
 * Fixed service --install (now sets description correctly)
 * Fixed log level defined in protobuf (now same as rest of the system)
 * Fixed some issues with the check_nscp command

2012-02-20 MickeM
 * Fixed NRPE buffer issue
 * Added test case for 65K NRPE buffer length as well as 1Mb 
 * Added support for not regexp as operator to filters (Eventlog) (#463)
 * Added support for computer as filter keyword and format keyword in EventLog (#442)
   "filter=computer = 'foo'" syntax=%computer%
 * Improved messages rendering of eventlog messages a bit 

2012-02-19 MickeM
 * Added new unit context on command line for running simple unit test cases:
   nscp unit --language python --script test_nsca
 * Added dependency on Tcpip
 * Dropped OS bit-match requirement so now you can install any version on x64 plattform.
 * Added so you can specify multiple counters for CheckCounter and poll them all in one go (#387)
 * Added test cases (a bit flaky) for counters.
 * Added ${host} and ${domain} to hostname settings option which might be used to construct your own hostname. (#428)
   Not 100% sure about domain as on my box the "hostname" is only a name ie. has no domain...

2012-02-18 MickeM
 * Fixed so too long log messages are trunacated instead of discarded
 * Added option to truncate logfile if to large (#358)
   [/settings/file logger]
   max size = 1000
 * Added keyword to reload (settings) to reload settings store (ie. flushing the cache) (#249).
 * Added ability to load all files in a given directory (#366)

2012-02-17 MickeM
 * Tweaked a bit in regards to ExternalScripts so it works better and handles errors better (#367)
 * Fixed default report mode in 0.4.0 (#290)
 * Made NSCA Client handle timestamps like send_nsca (ie. ignoring local time)

2012-02-16 MickeM
 * Replaced command reader with object handler
 * Added support for running commands as other users (#131)
 * Improved pseed oflarge buffers for external commands (ie. when you return very large outputs) (#481)
 * Added limit to test interface message length (when messages are to long only first 4k are displayed)

2012-02-15 MickeM
 * Fixed missing icon on nscp.exe
 * Fixed missing version info on nscp.exe (#294)

Updated Roadmap!

Just a quick shout to let everyone know I have updated the road map and classified all tickets (ish) as well as assigned them to 0.4.0, 0.4.1 and future.

The idea with the next few versions are:

milestone:0.4.0
RC2 out now, release in the next month or so.
milestone:0.4.1
A month or so after 0.4.0 with fixes and updates
milestone:0.4.2
Next major release which improves scripting and simplifies monitoring as well as updates the Windows Subsystem making NSClient++ much better to monitor modern windows.
milestone:0.4.3
Maintenance release for 0.4.2 (again a month or so behind with fixes and updates).
milestone:future
Everything I haven't planned yet...

Michael Medin

Migration and concepts guide for 0.4.0

Hello google bot!

Just a quick heads up that the first draft of the migration guide as well as the concepts guide is now live!

Now I am off to make some last minute changes before releasing RC1!

Michael Medin

Documentation for 0.4.x

I have started to write documentation for the 0.4.x version. Currently we have the following documents:

Next up is a migration guide as well as a concept document. RC1 is still scheduled for this weekend so please help out next week to do some testing!

Note that all documents are "first draft" so it is a bit all over the place currently :P

Michael Medin

Status

Well, I sort of promised to release rc1 of 0.4.0 on which has now become last year. This was in fact almost about to happen but unfortunately I grew ill shortly after xmas (nothing serious really). But this has keep me away from the computer for about 2 weeks now meaning I am slightly behind. And what is worse I missed the golden "holiday opportunity" to do some serious documentation.

Now it is not too bad I finished the NRPE unit test last night and hopefully I will get some spare time during night this week to document the initial usage of 0.4.0 so with luck next week we will in fact see the first RC of 0.4.0!

Michael Medin

First RC of 0.3.9 out!

First RC of the up-coming 0.3.9 is out now!

Main highlights are:

  • Overhauls of all disk related checks.
  • Introduce a brand new (CheckEventLog inspired) CheckFiles (notice the plural s) commands (CheckFile2 is now deprecated and CheckFile has been removed)
  • Volume support (for real this time)
  • A lot of "out of the box" aliases to get people started
  • NSCA bug fixes
  • Brand new (CheckEventLog inspired and documented) Scheduled task checks wich includes "windows vista" support.
  • Crash Handling (same as Google and Mozilla has in their browsers)
  • Many bug fixes and other things

The details are found (as always) in the change log:


2011-04-01 MickeM
 * Fixed (finally!!) the NSCA issue with multiple commands and missing "data"

2011-03-24 MickeM
 * Added check_updates.vbs script
 * Added a lot of useful(?) aliases

2011-03-22 MickeM
 * Added magic modifier (shamelessly stolen from check_mk) to CheckDriveSize

2011-03-17 MickeM
 * Added proper volume support to CheckDriveSize

2011-03-15 MickeM
 * Added suport for delayed start to service check (default ignored)
 * Added new option to CheckDriveSize ignore-unreadable which will ignore checking any unreadable disk drive.

2011-02-16 MickeM
 * Added new module CheckTaskSched2 which is the same as CheckTaskSched but designed for Vista and beyond.
   So if you want to check "new tasks" on modern Windows use this module instead of the CheckTaskSched mosule.
   They are exactly the same excep using different APIs (and somewhat different options)
   The CheckTaskSched2 is somewhat limited as the only supported keys are: title, exit_code, status, most_recent_run_time

2011-02-10 MickeM
 * Fixed issue with where filters and & operator
 * Added exact bounds to CheckTaskSched
 * Added conversion of status from string
 * Fixed time handling in CheckTaskSched to be "UTC" (hence the %most_recent_run_time% syntax string is also UTC)
 
2011-02-01 MickeM
 ! BREAKING CHANGE!
 * Removed deprecated command CheckFile
 * Deprecated command CheckFile2
 * Added new command CheckFiles which replaces CheckFile2 and CheckFile
   Command has the new where filter syntax like so:
   CheckFiles path=D:\tmp pattern=*.exe "filter=version != 1.0" "syntax=%filename%: %version%" MaxWarn=1
 * Replaced undocumented CheckTaskSched with a new where filter based command.
   CheckTaskSched debug "filter=exit_code != 0" "syntax=%title%: %exit_code%"

2010-12-26 MickeM
 * Improved crash reporter to support BOTH archive and send.
 * Improved crash reporter to archive under APPDATA (Local Settings/NSClient++/crash dumps)
 * Started on the new CheckNSCP (internal health plugin)
 * Added a "text description" file to crash dump folder to see which version crashed and what not.
 * General improvments to the crash helper.
 * Added check_nscp which is a basic command to check the internal health of NSClient++
 * Added check_files (script) submitted by 

2010-12-25 MickeM
 * Fixed issue with performance coutners and erroneouse pointers in some rare cases.
   (Thank you google breakpad)
 * Added date to crash reports (to make it simpler to find correct symbols)
 
2010-12-14 MickeM
 * CheckEventLog: Fixed so type can be compared to various string keys: error, warning, info, auditSuccess, auditFailure
 * CheckEventLog: Fixed so invalid parses are reported better (check the "rest" buffer)
    CheckEventLog file=Application "filter=generated gt -600m AND message LIKE 'Click2Run'" ...
    WARNING:Parsing failed: AND message LIKE 'Click2Run'
 * CheckEventLog: Added support for "not like" operator.
    CheckEventLog file=Application "filter=generated gt -600m AND message not like 'Click2Run'" ...
 * CrashHandler: Added several options to the crash handler (so it can be configurable)
    Everything reside under the [crash] sectiuon and the avalible keys are:
     * restart=1 # if we shall restart the service when a crash is detected.
     * service_name=<name of service to restart>
     * submit=0 # if we shall submit crash reports to crash.nsclient.org
     * url=http://crash.nsclient.org/submit
     * archive=1 # Archive crashdumps
     * folder=<appfolder>/dumps
 
2010-12-13 MickeM
 + Added not responding detection to CheckProcState
   All "hung" processes will be considerd "hung" (and not started/stopped)
   When process is "not hung" (badapp.exe)
    CheckProcState quake.exe=stopped badapp.exe=started notepad++.exe=started
     OK:OK: All processes are running.
    CheckProcState quake.exe=stopped badapp.exe=hung notepad++.exe=started
     CRITICAL:CRITICAL: BadApp.exe: started (critical)
   Where as when it is hung:
    CheckProcState quake.exe=stopped badapp.exe=started notepad++.exe=started
     CRITICAL:CRITICAL: BadApp.exe: hung (critical)
    CheckProcState quake.exe=stopped badapp.exe=hung notepad++.exe=started
     OK:OK: All processes are running.
   
2010-12-12 MickeM
 + Added initial support for google breakpad
   This means if nsclient++ crash two things will happen now.
   1. Crash reports will be sent to crash.nsclient.org (this will be optionalin the near future)
   2. service will restart
   You can try this out in /test mode using the "assert" command.
   
2010-11-14 MickeM
 * Added the "extended NRPE payload packet patch"
   Should have done this years ago but alas I have not.
   This allows you to (with a patched NRPE) send and recieve more then 1024 chars (in a backwards compatible way)
   cf: https://dev.icinga.org/attachments/113/nrpe_multiline.patch
   To enable this you set the following. The value is the number of packets we allow.
   [NRPE]
   packet_count=10
   NOTICE for this to make sence you need to extend the "main payload buffer" which will most likely run out.
   [Settings]
   string_length=16000
   This value "should" be NRPE:packet_count*NRPE:string_length(1024)


2010-10-17 MickeM
 * Added new command timeout which runs a command in a thread and timeouts after a given time.
   *NOTICE* this is not a good command to use since it will leak memory/resources when it "kills threads"
 * Added new command: negate which can alter the result of other commands

2010-09-29 MickeM
 * Reverted a merge miss in CheckDisk
 * Added so IN (...) accepts strings without qoutes in the SQL Query syntax of CheckEventlog
 * Added new "parsing structure" str(...) to create strings in the SQL query without using ticks (') to allow "nasty meta char thingy")
 * Extended error parsing (eventlog messages) to allow up to 24 arguments (up from 11)

2010-08-04 MickeM
 * Added performance data display when missing bounds

2010-07-28 MickeM
 * Fixed issue with NSCA server and closing sockets (no flushes the datat before)
 * Fixed issue with performance data units beeing incorrect:
    before: B, K, M, G, ... noew: B, KB, MB, GB, ...
 * Fixed syntax errors in performance data extra ';' dropped and spaces added propperly
   Result now looks like so: ... |'C:\ %'=42%;10;5 'C:\'=229.66GB;39.06;19.53;0;390.62 'D:\ %'=99%;10;5 'D:\'=3.39GB;20.55;10.27;0;205.54
 * Fixed issues with caluclating netmask (also added support for spaces and tabs in the hostlist string.

2010-06-02 MickeM
 * Fixed a few issues with listCounterInstances

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

Release candidate for 0.3.7 out

A new version (release candidate) for the next minor release is out.

Nothing major in the application this version mainly installer work as well as some bugfixes. But and this is a big but it now features both an reference manual as well as a Nagios guide to get you started from Nagios. The material comes from the now up-dated wiki so it is nothing new but a nice touch I hope.

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

Michael Medin

  • Posted: 2009-09-20 22:20 (Updated: 2009-09-20 22:22)
  • Categories: 0.3.7 rc
  • Comments (0)

Last minute pre-flight check for the up-coming 0.3.6 version

Not much news in this build which contains a bunch of bug-fixes as well as a compleate version of the new installer.

  • CheckFileAge? (was broken)
  • NSCA config option time_delay was off by 1000.
  • Eventlog monitoring with descriptions flag was crashing on x64.
  • CheckProc? works better on x64
  • New installer is "finalized"

The RC is called X this time as I did not want to rename all the others. If no one reports in bugs this will become 0.3.6 release in 24 hours or so.

Full change log:

2009-06-07 MickeM 
 * Fixed issue with CheckFileAge incorrectly working in recursive mode.
 * Finalized the installer

2009-05-22 MickeM 
 * Fixed time_delay option in NSCA config (now uses the correct base was 1000 times to large before)

2009-05-21 MickeM 
 * Fixed issue with eventlog parsing and 64 bit machines (descriptions option)
 * Fixed issue with "modern windows" and installing the service (should not have the correct privlaiges)

2009-05-17 MickeM 
 * Changed default buffer size for process enumeration (64K now instead of 1K should I hope work better on 64bit OS:es)

2009-05-10 MickeM 
 + Added write support for modules to installer

Michael Medin