ChimeraEntertainment / monit-windows-agent

LEGACY: monit agent for Windows
MIT License
50 stars 8 forks source link

LimitAbsolute ignored #11

Closed mvalletta closed 8 years ago

mvalletta commented 8 years ago

Hi

LimiteAbsolute attribute in Filesystem tag is ignored.

Line 1394 to 1398 in Event.cs if ((td.limit_percent < 0) && (td.limit_absolute < 0)) { Logger.Log.ErrorFormat("'{0}' error: filesystem limit not set", s.name); return; } force to insert both LimitPercent and LimitAbosolute so at line 1424 the condition if (td.limit_percent >= 0) { is always true and LimitAbsolute is ignored.

m4x1202 commented 8 years ago

Thank you for opening this issue. It has been fixed in the latest push.

mvalletta commented 8 years ago

Perfect! Thanks