Features I would like to see in Monit

  • Your suggestion here

When you say `monit start foo`, it should complain if there is no foo in the configuration.

I would have patched this in myself, but I see nowhere on your site where you accept patches from people.

Jonathan Steel 2010/02/18

This was fixed in Monit-5.1 which was released yesterday. MartinP

I'd like the mail format variables available throughout the config so that you can use them when calling external programs. This would provide an easy twitter method among other possibilities.

-- Ben 09/02/2010


Allow users to add certain custom functions to the http panel, I would love having a restart/shutdown button there as well (as in whole system shutdown, not a particular service)

-Ignacio Quintero 2010-01-05


The ability to incorporate custom status messages into the monit web interface. For example, if we could add lines that said "/dev/md0 - rebuilding: 22% complete" or "website traffic - 12 hits/sec", that page would become a much more general-purpose tool. I guess this could be part of the ability to run arbitrary programs that is mentioned below? -Paul 2009-11-25


Allow to test against date and time. My backup task take a lot of ressources between 6am and 7am and I don't want Monit to alert me in that timelaps. syntax could be:

  if cpu usage (wait) > 20% 
      and time < 05:00 GMT
      and time > 07:00 +0100
      then alert

or:

  if cpu usage (wait) > 20% 
      and before 05:00 GMT
      and after 07:00 +0100
      then alert

+1


Allow custom headers in mail-format block. Our particular use case would be to add Priority headers for special treatment in Outlook and on blackberries.


In M/Monit, add the ability to set up rules for host groups. Right now one can do it for either every single host, or for all hosts (any host). Email/User groups to be used within rules would also be gladly welcome.

Host groups will be added to rules in M/Monit version 2.1 to be released early September 09 - hauk

The ability to use Nagios plug-ins. This would cover a few of the suggestions below and since the plugins are merely shell-scripts/programs that return a return code and a single line of human-readable text they shouldn't be that hard to use.

The ability to check execution of a arbitrary program or script will soon be added and will make this possible. Join the Monit mailing list to learn when we will start work on this - hauk

Add the ability to set a default action other than sending e-mail for alerts. For instance, I'd love to be able to launch a script that sends a push notification to an iPhone through a service like Prowl. I know that instead of using then alert you can use then exec "scriptname", but typing just alert is tidier and you don't have to override the default alerts.

Actually, every action will also send an alert in addition to doing the action - hauk
What I would like to do is: whenever I type "alert", send an e-mail AND run a certain script. Is it possible with the current version of monit? From what I can understand from the documentation, it is not. And for instance, there are some "default" events that monit sets up automatically such as "If Pid changed 1 times within 1 cycle(s) then alert", which I should override in order for them to run the script. Overriding those default actions every single time I edit the config file in order to open a new service is a tedious job, they should work automagically!

Add STARTTLS

STARTTLS is already available for alerts. Did you mean at the protocol-level? - hauk

Change the configuration language to a subset of python. Advantages:

  • Makes if-else logic simple to write and read
  • Users who know python don't need to learn another language
  • Maybe easier to parse
  • You can abandon your old parser and start fresh, which is fun
The configuration language will be updated and you can see our planed changes here. To keep Monit small and the code simple, we'll write our own parser and will not embed a scripting language. A possible exception is Lua, but this is not yet decided. - hauk

Send an abbreviated alert via Twitter's web api (using curl?) to a special account that I am following so I get a SMS on my cell phone --Dave Brown (edit: thanks for the clue below)

This is a good idea. Though if added it will most likely be in M/Monit as we try to implement most other alert notification protocols there - hauk

Add the possibility to add the last n (say n=10) lines of a specific log-file (e.g. error.log of Apache) to the alert mail, when a specific program crashes (i.e. syslog when syslogd crashes, error.log when Apache crashes etc.).

If this is already possible, please give an Example in the Config. Examples

JK


Reporting - Is there the ability to report / graph the data that Monit is monitoring?

Ian

Not directly, but you can pull XML status data off Monit and use this data with a graphing tool such as RRDTool to create graphs. See for instance http://files.agoragames.com/jason/railsconf09/ for a nice usage of Monit in this way (unfortunately not open source yet). M/Monit will also be able to produce graphs, reports and statistics - hauk

Allow logging possibility. In some cases the log is not enough. It is impossible to tell for what reason the failure happened. I think there should be a possiblity to write log messages. Also it would be usefull to allow more then one operation upon failure. If it is necessary to restart the application and execute some script - this is not possible.

LO

Page last modified on February 18, 2010, at 09:46 PM CET

Copyright © 2010 Tildeslash Ltd. All Rights Reserved.