The "mailserver" is in conflict with reserved word ... you can use IP address instead of the hostname like this:
check host mailserver with address 1.2.3.4 if failed icmp type echo count 3 with timeout 3 seconds for 3 cycles then alert Regards, Martin On Mar 1, 2011, at 11:19 AM, Nick Upson wrote: > This doesn't work, I get "/etc/monit.d/mailserver:5: Error: syntax > error 'mailserver'" > the same syntax works fine for other machines so I assume the problem > is the machine name (? can someone confirm) > > is there a workaround? > > check host mailserver with address mailserver > if failed icmp type echo count 3 with timeout 3 seconds for 3 cycles > then alert > > -- > To unsubscribe: > http://lists.nongnu.org/mailman/listinfo/monit-general -- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general
