Skip to content

kfeina/CygMonit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CygMonit - Monit for Windows

** CygMonit is a port of monit for Windows.**

Find the latest release here:

Latest Version - CygMonit 5.34 (x64)

Installation instructions:

Download and install

license
folder
menu
shortcut
install
finish

Acces monit through the broswer.

https//localhost:2812 user: admin password: CygMonit

For versions older than 5.25.1 type: http//localhost:2812 user: admin password: CygMonit

localhost

Check Monit is installed and that a new service CygMonitSvc is created

service

Configuration

The fastest way to configure CygMonit is to start CygMonit bash and use vim. Edit any monit file you need, as no problem permissions arise. Then restart the service:

/bin/cygrunsrv --stop CygMonitSvc
/bin/cygrunsrv --start CygMonitSvc

Ohterwise use a unix compatible editor like Notepad++ (or the included VIM).

As Cygmonit is executed as LocalSystem, you won't have permissions to modify the main /etc/monitrc file.

First you will have to execute the following:

Start the CygMonit bash application.

start\

Stop the service manually with:

/bin/cygrunsrv --stop CygMonitSvc

Execute:

chown Administrator /usr/local/bin/monit.exe
chown Administrator /etc/monitrc
chown Administrator /usr/ssl/certs/monit.pem

Now you can edit /etc/monitrc with Notepad++ and configure it as you need.

For example add your M/Monit instance (set mmonit https://monit:[email protected]:8443/collector)

Once finished, before starting CygMonitSvc remember to undo your changes:

chown SYSTEM /usr/local/bin/monit.exe
chown SYSTEM /etc/monitrc
chown SYSTEM /usr/ssl/certs/monit.pem

Start the service manually with:

/bin/cygrunsrv --start CygMonitSvc

Find log information of the service at: /var/log/CygMonitSvc.log

Unattended deployment / silent setup

Create a bat file with a content similar to:

For silent install:

C:\CygMonit_Dev\InnoSetups\\CygMonit_5.33_Setup-x64.exe" /verysilent /norestart /suppressmsgboxes /log=C:\Windows\Temp\Setup_Install_CygMonit_5.33.log

For silent uninstall:

C:\Program Files\CygMonit\x64-5.33.0\unins000.exe /verysilent /norestart /suppressmsgboxes /log=C:\Windows\Temp\Setup_UnInstall_CygMonit_5.33.log

Adapt these bat files to your requirements.

Antivirus Exclusions

Exclude the following folders: "C:\Program Files\CygMonit" or "C:\Program Files (x86)\CygMonit".

If you have exploit protection exclude the processes from having DEP, ASLR and alike.

For example in windows defender:

<AppConfig Executable="monit.exe"> <DEP Enable="false" EmulateAtlThunks="false" /> <ASLR ForceRelocateImages="false" RequireInfo="false" BottomUp="false" HighEntropy="false" /> </AppConfig>

Note: This will prevent cygwin fork() issues.

Older releases

CygMonit 5.33 (x64)
CygMonit 5.25.1 (x64)
CygMonit 5.25.1 (x86)
CygMonit 5.14 (x86)
CygMonit 5.10 (x86)

Developer info

CygMonit 5.34 (x64): runs on x64 Windows 8.1 / 10 / 11 - Windows Server 2012 R2 / 2016 / 2019 / 2022 - and (hopefully) all upcoming releases of Windows. Compiled with Cygwin 3.5.4.1

CygMonit 5.33 (x64): runs on x64 Windows 7, Windows 8, Windows Server 2008 R2 and Windows Server 2012. Compiled with Cygwin 3.4.10.1

CygMonit 5.25.1 (x64)/(x86): runs on Windows Vista, Windows Server 2008. Compiled with Cygwin 3.3.6.1

CygMonit 5.14 (x86): runs on Windows XP and Windows Server 2003/2003 R2. Compiled with Cygwin 2.6.0.1

CygMonit 5.10 (x86): runs on Windows 2000 and Windows XP pre-SP3. Compiled with Cygwin 1.7.35.1

To create de development environments, I followed the latest cygwin.dll branch version by the latest setup version, which criteria is found in: http://ctm.crouchingtigerhiddenfruitbat.org/pub/cygwin/circa/