nice to see monit support a name or pattern for the service name,
unfortunately the name is case sensitive, now.
# monit -B summary postgres Service 'postgres' not found # monit -B summary Postgres Monit 5.28.0 uptime: 36m Service Name Status Type Postgres Not monitored Process # monit -B summary postgres Monit 5.27.2 uptime: 2d 12h 39m Service Name Status Type Postgres Not monitored Process #
Sorry, some people like pattern but case insensitivity was nice too.
To the comment (see src/http/cervlet.c)
// 2) backard compatibility: before monit 5.28.0 there was no support for
regular expresion => check verbatim match before trying regex (the service
may contain special characters)
the behavior is unfortunately not backward compatible.
A pattern is not very useful sometimes, but seems to work, I like it.
# monit -B summary '[Pp]ostgres' Monit 5.28.0 uptime: 2h 33m Service Name Status Type Postgres OK Process #