2

One of our developers needs some sort of notification in order to know whether the application is running smoothly or not.And We already decided that we will implement monit in order to get this things done.

Unfortunately,here comes another challenge. What happens if the monit itself went down?Surely they will not know whether their application is running or not?

Did anyone have any idea to make sure that this things can be notified (whether the server is going up or down)?

Thanks.

ewwhite
  • 194,921
  • 91
  • 434
  • 799
user119720
  • 380
  • 3
  • 6
  • 19

1 Answers1

1

Monit typically does not die on its own. It's pretty stable/mature from that perspective.

If you use M/Monit, the relatively inexpensive central Monit console, you'll be able to poll the health of your individual Monit instances.

There is also the approach of running Monit from inittab/getty, respawning it automatically, but it's not necessary in my experience.

Edit:

Default Monit service messages:

Monit instance changed Service localhost

    Date:        Thu, 11 Oct 2012 05:17:13
    Action:      start
    Host:        OGC
    Description: Monit started

Your faithful employee,
Monit

And:

Monit instance changed Service localhost

    Date:        Thu, 11 Oct 2012 05:17:09
    Action:      stop
    Host:        OGC
    Description: Monit stopped

Your faithful employee,
Monit
ewwhite
  • 194,921
  • 91
  • 434
  • 799
  • In the monit itself can it give us the email notification when the server is getting down (ie reboot) ? or do we need to configure something else? – user119720 Oct 11 '12 at 09:21
  • By default, you will receive an email when Monit starts up and shuts down. See my update above. – ewwhite Oct 11 '12 at 12:17