Hi Martin,
Thanks for that. I do not have the "any" option in mmonit 3.1.2, however i found out using groups
how to not get alerted by existence "errors".
Its still not optimal. The issue is that on the mmonit dashboard it looks like services failed -
host status is organge - although all services are ok, just some that monitor error log files have
status "Does not exist" - which is fine...
Any ideas?
Thanks Ben
On 05.01.2015 19:35, Martin Pala wrote:
Hi Ben,
you can filter out the "existence" event in M/Monit (all other events will be
delivered):
Regards,
Martin
On 24 Dec 2014, at 15:29, Ben Soot <[email protected]
<mailto:[email protected]>> wrote:
Hi
I am using monit 5.4 - cannot upgrade b/c shared c compiler lib of debian
wheezy (would have to
upgrade c compiler which i rather would not do b/c of side effects)
My issue:
I am checking several error log files and alert if certain patterns occur
within (that indicate
serious errors i need to take action on).
I however do not want to be alerted when the file does not exist (i.e. there
are no errors at all)
How do i do that?
I tried:
check file foo-err.log with path /foo-err.log
if match
"^.*ACTION_REQUIRED.*$" then alert
if does not exist for 64 cycles then exec "/bin/true"
(the last clause is to override the default action which is restart and also
alerts me.)
I am customer of mmonit, so i configure alert settings there.
So i configured to be alerted by all events except execution. However I still
get alerted when the
file does not exist.
Note also: I do not want to create an alert rule in mmonit for every service as
i am monitoring a
lot of such error log files.
Any ideas?
Many thxs and merry x-mas!
Ben
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general