This is a rough process document which should help you to upgrade CYGWIN (that's the pseudo operating system that
runs under DBAmon on Windows). I have used this process 4-5 times, with good success. Enjoy. #:@)
Comment dbamon_checker cron entry. There are various ways of doing this, but do make sure that you save a copy
of your crontab. You can do this by running (in CYGWIN): crontab -l > my_cron_save_file.txt .
Run dbamon_drain and wait until the current iteration ends, at which time DBAmon will stop itself
Since you commented the cron entry for dbamon_checker, it will not start itself back up. Watch DBAmon end. You can do
this my "tailing" /opt/dbamon/log/dbamon.log.
Stop the Cygwin Windows Services:
Cygwin APACHE2
Cygwin cygserver
Cron daemon
OpenSSH SSHD
Exit out of ALL cygwin windows (ps -ef). We have to have all CYGWIN processes stopped to perform this upgrade.
Download new setup-x86.exe from CYGWIN and save in C:\Cygwin.
In C:\Cygwin run setup-x86.exe.
Next, Next ...
When it shows the list of packages, just hit NEXT. It will upgrade everything that you installation has. This will take anywhere from 30 minutes to an hour (?).
Open a BASH (Cygwin) shell as you normally would.
Perl add-ons must be reinstalled:
cd ~
cpan
yes (allow CPAN to do initial configuration)
install DBI (this will take about 20 minutes -- make sure there are no error messages and that the final tests are OK)
install DBD::ODBC (this will take about 15 minutes -- make sure there are no error messages and that the final tests are OK)
install Devel::Size
exit
Before running DBAmon in PROD mode, run 1 instance through dbamon test. Make sure that you don't get any errors.
Start the Cygwin Windows Services:
Cygwin APACHE2
Cygwin cygserver
Cron daemon
OpenSSH SSHD
Un-comment the DBAmon cron entries.
The next execution of cron entry dbamon_checker will start DBAmon PROD mode.
You're done. #:@)
DBAmon.com This Document:
http://dbamon.com/installation_cygwin/upgrade_cygwin.shtml