*************************************************************************
*			      B4Failure 				*
*************************************************************************
*	Program Info:							*
*									*
*	Name:				B4Failure.			*
*	Version:			4.50				*
*	Release Date:			21. May 2007.			*
*	Copyright:			The Silents Denmark.		*
*	Website:			www.b4failure.com		*
*									*
*									*
*	Requirements for Service & GUI: 				*
*									*
*	Operating system:		Windows NT, XP, 2000, 2003 	*
*	Screen resolution min. 		800x600, >1024x768 recommended	*
*	Servicess 			Windows Messenger Service 	*
*					(Required for network messages) *
*					IIS for Webconsole		*
*	Memory 				40MB, >50MB recommended 	*
*	Hard disk 			40MB, >50MB recommended 	*
*									*
*************************************************************************
*		        www.b4failure.com				*
*************************************************************************

#########################################################################
#									#
#     IMPORTANT Notice to Serverwatch PRO users!			#
#									#
#########################################################################
#									#
# Do not update the Serverwatch PRO database if you do not intend to	#
# upgrade the product! The changes are inreverseable!!!			#
#									#
# Upgrade instructions:							#
# Uninstall the entire Serverwatch PRO package before you procees with  #
# with this installation! Create a backup of your database, as B4F 	#
# change the entire database structure.					#
# Install B4F and point to your own database (service is neccesary)...  #
#									#
# B4Failure will then migrate all your setting to match the new 	#
# database structure. Verify the changes and proceeed.			#
#									#
# Important for users before B4F 4.50. Setup all hosts before you 	#
# activate the statistic calculation from the settings dialog!!		#
#									#
# *PLEASE NOTE: You will need a new valid license key for this version* #
#									#
#########################################################################

-< v4.50 Changes >-------------------------------------------------------
#SERVICE#
	New powerfull Statistics view with standard 24x7 and operational
	hours.
	Changed ping monitor so it does not fail if it succeeds on a 
	traceroute.
	Fixed eventlog scanner issue when loading corrupt DLL files.
	Helper service now autostarts, instead of beeing launched from 
	main service.

#GUI#
	New powerful statistics details from the last 30 days. (monitors 
	only)
	Fixed eventlog scanner issue when loading corrupt DLL files.
	Changes to use and feel on various forms.

#FEATURES#
	New statistics and capacity data collecting.
	Now monitoring hours can be set on the host, overriding the below
	monitor settings, making it easier to set service windows.

#WEB#
	New powerfull Statistics view with standard 24x7 and operational
	hours.
	Fixed tree view problem, when having a site with no locations.


-< v4.01 Changes >-------------------------------------------------------
#SERVICE#
	Fixed US timezone issue.

#GUI#
	Fixed US timezone issue.
	Add DNS Cache log display.



-< v4.00 Changes >-------------------------------------------------------
#SERVICE#
	Added fast URL checker for Http and https sites. Checker supports 
	NTLM authentication for serviceusers in Serverwatch and custom
	port selection.
	Added helperservice to monitor Serverwatch Service failures! If 
	service hangs or stops, it will begin restart the service after
	approx 15 minutes. 
	Servers seperated from monitors.
	Service accounts seperated from monitors.
	Service can now use a useraccount. (Setup under services).
	Improved connection monitor with timeout setting.
	Improved service counter, now logging what services has been,
	started, removed or added to notification.
	Improved notification options, giving the ability to send emails
	to recipients with a variable delay. (Usefull for escalation)
	Improved Ping monitor, to control when receiving reply from 
	border routers and failsafe equipment etc.
	Improved Connection monitor. When the requested result is 
	recieved, the check returns immediately, instead of waiting for
	the connection timeout.
	New server variables available.
	New dependency system, so dependent monitors are checked if 
	needed, removing the need for cyclesettings on dependecies.

#GUI#
	Added fast URL checker for Http and https sites. Checker supports 
	NTLM authentication for serviceusers in Serverwatch and custom
	port selection.
	Servers seperated from monitors.
	Service accounts seperated from monitors.
	GUI redesigned to match new features, giving a much more complete
	overview.
	Improved eventlog viewer.
	Improved update speed on various lists/views.
	Improved connection monitor with timeout setting.
	Improved notification options, giving the ability to send emails
	to recipients with a variable delay. (Usefull for escalation)
	Fixed [insert variable] buttons on script page.
	Improved Ping monitor, to control when receiving reply from 
	border routers and failsafe equipment etc.
	Improved Connection monitor. When the requested result is 
	recieved, the check returns immediately, instead of waiting for
	the connection timeout.
	Fixed child form screen center issue.
	Fixed display issue when monitors is disabled.
	New dependency system, so dependent monitors are checked if 
	needed, removing the need for cyclesettings on dependecies.
	New server variables available.
	New and easier web security system based on location and monitors
	New main view, showing setting groups, hosts and monitors on
	on locations, giving a much better, and fast overview.


#WEB#
	Entirely new webconsole.

#DOCUMENTATION"

	Entirely new documentation


-< v3.00 Changes >-------------------------------------------------------
#SERVICE#
	Fixed bug when scanning for Audit failure Events
	Fixed bug when cleaning up mailque.
	Improved connection monitor type, for better speed and stability.
	Improved eventlog scanning speed.
	Improved category resolution on eventlogs.

#GUI#
	Fixed bug when scanning for Audit failure Events
	Fixed minor bug when testing mail settings using signatures
	Changed statistic calculation and eventlog view on monitor and
	groupview for faster viewing! Calculations and database lookups
	are now performed only when the tabs are activated.
	Improved connection monitor type, for better speed and stability.
	Improved eventlog scanning speed.
	Improved category resolution on eventlogs.

#WEB#
	Fixed display message on failed login.
	Fixed/changed lists display to match GUI.

#MONITOR#
	Minor changes and stability improvements.

#DOCUMENTATION#
	Minor Update


-< v2.99 Changes >-------------------------------------------------------
#SERVICE#
	Added series of variables to use in scripts and mailbody's.
	Added formatting and eventcategory name to eventlog items.
	(Administrator privilage is most likely to be used to be 
	successfull in this operation!).
	Added IP-resolving for monitors, incase of DNS problems, so when
	monitor is resolved, the IP number is saved in the database. In
	case of lookup failures the IP number will be used instead. 
	Added IP-resolving for mail servers, incase of DNS problems. 
	Added eventtype to event item scanner for better hit accuracy.
	Improved performance.
	Added entirely new messagesystem for handling message events.
	Added dependency state failures to "child" monitors.
	Child monitors are now set to pending after "parent" has failed.
	Fixed issue with mailque.
	Fixed all known stability and memory usage problems.
	RE-Fixed old FileCRC closefile issue.

#GUI#
	Added formatting and eventcategory name to eventlog items. 
	(Administrator privilage is most likely to be used to be 
	successfull in this operation!)
	Added a large series of variables to use in scripts and mailbody's.
	Added show all to monitor and group logs.
	Added cancel option to event test and scanner.
	Added checkbox to include/exclude monitor results in mail. 
	(works on event scanners and icmp-ping).
	Added option to allow/disallow event categories while scanning.
	Added option for including traceroute log on ping failures.
	Added option for including event item log on ping failures.
	Added current state key field to all monitors.
	Added multiselect options for main screen (group actions).
	Added show/hide options for different events in settings for the
	mainlog - can also be accessed with rightclick on the eventpanel.
	Improved performance.
	Form centering now works on dual displays!
	Updated table usage to support service pickup, this allow changes
	 to be made even if the monitor is running.
	Updated view on Group view, so it now displays monitors current state.
	Changed group view to include server name in list, so the 
	servername doesn't have to be included in the monitorname.
	Changed gui log views to display last 8 hours of messages, instead
	of the specified entry count.
	Fixed minor issue when sending test mails, where recipient was
	empty.
	Fixed issue, when starting a 2nd monitor on terminal server.
	RE-Fixed old FileCRC closefile issue.

#MONITOR#
	Added status hint to display monitors current state with basic 
	monitor information. (Requires the webfiles to be updated).
	Added icon status icon.
	Click on close now minimize the monitor!
	Form centering now works on dual displays!
	Removed old hintbar.

#WEBCONSOLE#
	Minor changes to match current release. (BUT MUST be upgraded).

#NOTIFICATION#
	Added formatting and eventcategory name to eventlog items. 
	(Administrator privilage is most likely to be used to be 
	successfull in this operation!)
	Added IP-resolving for mail servers, incase of DNS problems. 
	Added a large series of variables to use in scripts and mailbody's.
	Added log option for ICMP Ping.
	Added log option for event item.
	Added description to event item scanner.
	Added subject header replacement for auto subject notifications,
	to ensure that the correct subject is beeing used when sending out
	email notifications.
	Changed auto-subject headers.
	Fixed issue with mailque.
	Removed "default" notification text, so an email body should be
	used on any/all notifications. Otherwise the email body will be
	left blank!

#DOCUMENTATION#
	Updated to match current release!

-< v2.94 Changes >-------------------------------------------------------
#DOCUMENTATION/HELP#
	Updated.

#GUI#
	Fixed email body selection on groups.
	Fixed authentioncation test, when testing user authentication on
	smtp servers.
	Added variables for script execution.
	Added database-size log entry to show database size before and
	after compression.

#MONITOR#
	Fixed issue when testing popups, monitor dropped connection to
	Serverwatch webserver.
	Added hintbar for easy status of the monitors.

#SERVICE#
	Added variables for script execution.
	Added database-size log entry to show database size before and
	after compression.


-< v2.91 Changes >-------------------------------------------------------
#GUI#
	Fixed email body selection on groups.
	Fixed authentioncation test, when testing user authentication on
	smtp servers.

#MONITOR#
	Removed highlight function from links.

-< v2.90 Changes >-------------------------------------------------------
#DOCUMENTATION/HELP#
	Updated.

#NOTIFICATIONS#
	Added notification que system to avoid loss of email
	notifications. Serverwatch will pickup notifications on each run
	and try to deliver them.

#GUI#
	Added notification que option.
	Fixed bug when propogating notification settings to groups!

#MONITOR#
	Changed always on top to always pop-to-front, as the window
	could block the preference window. So when activated, the montor
	will be sent to be the front window at every cycle, instead of
	lying there permanent.

-------------------------------------------------------------------------



-< v2.87 Changes >-------------------------------------------------------
#WORKSTATION MONITOR#
	Fixed bug when trying to close monitor.
-------------------------------------------------------------------------



-< v2.86 Changes >-------------------------------------------------------
#DOCUMENTATION/HELP#
	Updated.

#WORKSTATION MONITOR#
	Entirely new layout.
	Groups and monitors can now be clicked to access the Serverwatch
	Web Console.

#WEB#
	Entirely new layout.

#GUI#
	Entirely new layout.
	Minor changes and improvement.
	Added abort function to scanning of eventlogs.
-------------------------------------------------------------------------



-< v2.70 Changes >-------------------------------------------------------
#DOCUMENTATION/HELP#
	Updated to match the latest release.

#WORKSTATION MONITOR#
	Minor fixes and changes in xml-connection and display.
	Monitors and groups on display now launch your browser to access
	the Serverwatch Webconsole, for easy and quick access.
	Now display when the last monitor check occured on main window.

#WEB#
	Updated to match new recipient function.
	Fixed issue when adding new monitor.

#NOTIFICATIONS#
	Fixed notification issue.
-------------------------------------------------------------------------



-< v2.69 Changes >-------------------------------------------------------
#GUI/SERVICE#
	Added custom body option for SMTP mails.
	Removed Carbon Copy mail and added Recipient group, so you can 
	make 2 emailing groups with different email body's. Usefull when
	sending status to mobile phones as similar.
	By request, all mail notifications can now be fully customized.
	Fixed Performance counter issue with large values.

#NOTIFICATIONS#
	All down/restart notifications email are now marked as urgent!
	Removed Carbon Copy mail and added Recipient group, so you can 
	make 2 emailing groups with different email body's. Usefull when
	sending status to mobile phones as similar.
	By request, all mail notifications can now be fully customized.

#WEB#
	Fixed issue when running on Windows2003 servers.
	Fixed minor issues when using direct group and/or monitor links.

#WORKSTATION MONITOR#
	Rewritten so connection is made through the webserver where 
	Serverwatch is running. This way you don't have to share the 
	database and the monitor can be run from ANY workstation inside
	or outside the organization.
	PopUp message links activated, directing you to the Webconsole
	to the affected monitor (login required here).
	User Authentication now required to access the monitor view.
	* Fixed authentication bug from v2.68

#INSTALLER#
	From version 2.53 and up, the installer is now able to remove old
	versions before installing.
-------------------------------------------------------------------------



-< v2.55 Changes >-------------------------------------------------------
#SW-TRAY#
	Re-launches when service is restarted from the GUI

#WEB#
	Interface now works in Virtuel directories.
	Stripped all HTTP direct links to support HTTPS.

#INSTALLER#
	From version 2.53 and up, the installer is now able to remove old
	versions before installing.
-------------------------------------------------------------------------



-< v2.54 Changes >-------------------------------------------------------
#SW-TRAY#
	Fixed dublicate tray.
	Automaticly closes if service is uninstalled or not found!

#SERVICE#
	Removed tray launch from service, as it was unstable on some
	Windows versions.

#INSTALLER#
	From version 2.53 and up, the installer is now able to remove old
	versions before installing.
-------------------------------------------------------------------------



-< v2.53 Changes >-------------------------------------------------------
#GUI#
	Now asks to start service if service is installed.
	Minor layout fixes.
	Greatly improved scripts system. Now support variable section for
	scripts, making them a lot more usable.
	Dependency function, now allow multiple dependency, so you can
	make a monitor dependent on a dependent monitor.

#SW-TRAY#
	Automaticly closes if service is uninstalled or not found!

#WEB#
	Added Group Properties (view only in this release)
	Logon redirection, to allow direct links to groups, monitors, 
	monitorview etc.
	Scripts are now shown as a dropdownlist for selection.
	Eventlog pages are now displayed as a dropdownlist, to handle
	greater eventlog displays
	Removed old webinterface from installation package.

#SERVICE#
	Fixed LSASS memory leak, when using impersonate user.
	Improved stability and errorhandling.
	Dependency function, now allow multiple dependency, so you can
	make a monitor dependent on a dependent monitor.
-------------------------------------------------------------------------



-< v2.48 Changes >-------------------------------------------------------
#GUI#
	Fixed bug with check for updates, so it should work again.
	Fixed bug in database cleanup.
	Fixed result display bug in script test
	Fixed 255 char limit in note fields
	Added restart service option to registration.
	Added GUI checkin to service, to reduce server load.
	Added user restrictions to the new webinterface.
	Added ability to delete monitors and groups when service cycle
	is running.

#SERVICE#
	Fixed scheduled DB compression bug on some systems.
	Fixed session bug on Filechecksum monitor
	Fixed bug with impersonate user when restarting service
	Fixed bug in database cleanup.
	Added GUI checkin to service, to reduce server load.

#WEB#
	Entirely new webinterface.
	Added user restrictions to the new webinterface.
-------------------------------------------------------------------------



-< v2.22 Changes >-------------------------------------------------------
#GUI#
	Minor visual fix!

#SERVICE#
	Error handle improvements!

#MONITOR#
	Reconnect improvements!

#SW-TRAY#
	Status improvements!
-------------------------------------------------------------------------



-< v2.21 Changes >-------------------------------------------------------
#GUI#
	Fixed issue when using Impersonate user!

#SERVICE#
	Fixed issue when using Impersonate user!
-------------------------------------------------------------------------



-< v2.19 Changes >-------------------------------------------------------
#DOCUMENTATION/HELP#
	Updated.

#MONITOR#
	Fixed service stability communication problem.
	Fixed minor first startup bug.

#GUI#
	Added hourscheme so monitor checks can be paused when server
	maintenance is performed.
	Added ability to monitor Windows performance counters, be sure
	to read the documentation before use!
	Added ability to create custom scripts for checking.
	Added view by server to group view for easy view on multiple
	monitors on the same server, in the same group.
	Added remember last view to display.
	Improved display refresh, does not reset view when message is
	recieved from the service.
	Improved group handling when creating monitors.
	Improved user connection. Now a domain user can be used, if the
	IPC$ is not available or insufficiant.
	New layout for group statistics.
	Layout and other small improvements.

#SERVICE#
	Added hourscheme so monitor checks can be paused when server
	maintenance is performed.
	Added ability to monitor performance counters.
	Added ability to use custom scripts.
	Fixed ICMP message issue.
	Improved user connection. Now a domain user can be used, if the
	IPC$ is not available or insufficiant.
-------------------------------------------------------------------------



-< v1.68 Changes >-------------------------------------------------------
#DOCUMENTATION/HELP#
	Added documentation for the Monitor.

#SERVICE#
	Fixed message issue on event and freespace monitors.
	Minor improvements for service stability.
-------------------------------------------------------------------------


 
-< v1.65 Changes >-------------------------------------------------------
#MONITOR#
	Improved layout in display monitor.
	Added popup message functions.
	Fixing beta bugs.
-------------------------------------------------------------------------



-< v1.62 Changes >-------------------------------------------------------
#MONITOR#
	Added display monitor for viewing monitors. This can be run on
	any computer, as long as you share your database.
	The monitor can be setup to alert with audio alerts aswell.

#GUI#
	Added Monitor copy function.
	Improved eventlog browser.
	Fixed small bug.
-------------------------------------------------------------------------



-< v1.49 Changes >-------------------------------------------------------
#GUI#
	Added statistics view in group view.
	Added default portlist to connection monitors
	Fixed day issue in backup
	Allowed settings to be saved, even when monitors are checked, as
	it seemed to give problems on some Windows 2003 servers.

#SERVICE#
	Fixed day issue in backup
-------------------------------------------------------------------------



-< v1.48#2 Changes >-----------------------------------------------------
#GUI#
	Added view option for Monitor and main view.
	Fixed scrollbar annoyance.
	Fixed Database bug.
	Fixed Group insert bug.
	Added service pickup function, so groups can be edited while
	the service is running.

#SERVICE#
	Added service pickup function, so groups can be edited while
	the service is running.
-------------------------------------------------------------------------



-< v1.45 Changes >-------------------------------------------------------
#GUI#
	Added Version check in the dropdown menu, for manuel checks.

#SERVICE#
	Optimized service to avoid CPU stress when idle.
-------------------------------------------------------------------------



-< v1.44 Changes >-------------------------------------------------------
#GUI#
	Fixed result in connection check as it didn't cleanup.
	Fixed maintenance month error.
	Fixed service checkers so the run under Windows 2003.
	Added service pickup function, so monitors can be edited while
	the service is running.

#SERVICE#
	Fixed service checkers so the run under Windows 2003.
	Added service pickup function, so monitors can be edited while
	the service is running.

#DOCUMENTATION/HELP#
	Updated documentation.
-------------------------------------------------------------------------



-< v1.42 Changes >-------------------------------------------------------
#GUI#
	Added Notes tabs for groups and monitors by request.
	Added "add log entry" to monitors sesction.
	Added version check on startup ( can be disabled ).
	Added maintenance section for backup, compression and cleanup.
	Added dependency option on group for child monitors to enherit.

#DOCUMENTATION/HELP#
	Updated documentation.
-------------------------------------------------------------------------



- v1.39 Changes >--------------------------------------------------------
#GUI#
	Added Audio and Net send group ability.
	Added Tray autostartup when GUI starts ( if not already started )
	Added extra functions to the systemlog interface.

#SW-TRAY#
	Added close action when service not found. 
	(Activated with rightclick)

#DOCUMENTATION/HELP#
	Updated/Added further documentation to the help file.
-------------------------------------------------------------------------



-< v1.37 Changes >-------------------------------------------------------
#GUI/SERVICE#
	Improved SMTP mailer, now supporting smtp-logon, and multiple
	recipients.
	Improved Network notifier, now supporting multiple recipients.

#GUI#
	Added shutdown ability of remote GUI instance.
	Added Serverwatch service start/stop function.
	Added database location handler.

#SERVICE#
	The service now loads the default settings every cycle.
	Added audio alerts.
	Fixed bug with launch program file from service.	

#INSTALLER#
	The installer doesn't overwrite the ini file anymore, as 
	Serverwatch automaticly generates it if needed.
-------------------------------------------------------------------------



-< V1.30 Changes >-------------------------------------------------------
#DOCUMENTATION/HELP#
	Added further documentation to the help file, including how to
	setup the webinterface.
-------------------------------------------------------------------------



-< v1.23 Changes >-------------------------------------------------------
#GUI#
	By request made visible in taskbar.

#INSTALLER#
	Added automatic service install/uninstall option, so the 
	installer now handle all entire process.
-------------------------------------------------------------------------



-< v1.20 Changes >-------------------------------------------------------
#SERVICE#
	The previous bug also affected the service. This error has also 
	been corrected, so it should run without further problems.
-------------------------------------------------------------------------



-< v1.11 Changes >-------------------------------------------------------
#GUI#
	The use of the INI file, seemed to confuse the program on some 
	systems. This bug has been, so when not giving a directory to the 
	mdb file, it assumes that the file should be located in the same 
	directory as the applications.
-------------------------------------------------------------------------



-< v1.1 Changes >--------------------------------------------------------

	This release is the first official release of Serverwatch. It has 
	been under serious testing af devellopment for the last year, and 
	the result is a powerfull servermonitoring tool.
#GUI#
	Help file added. All major functions explained.

#WEB#
	Web "Interface" released. Early version, but still quite usefull.
-------------------------------------------------------------------------



-< v0.8b Changes >-------------------------------------------------------
#GUI#
	Sepperated from the service.
	Now works in a terminal service session.
	Layout redesigned to give a better feel an usage.

#SW-TRAY#
	Sepperated from the service.
	Now works in a terminal service session.

#SERVICE#
	Removed all GUI functions.
	Now runs as a pure service.
-------------------------------------------------------------------------