Re-calculate a checksum for monit

Today I changed one init script that was being checked by monit by a simple rule:

check file tomcat_bin with path /usr/sbin/tomcat6
  if failed checksum then unmonitor

The documentation isn’t very clear about how to regenerate the checksums after a legit change. You must either reload monit conf (with recent versions of monit):

# monit reload

or restart monit:

# service monit restart

you may need to put the resource under monitor again:

# monit monitor tomcat_bin
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s