monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alerr for non-existing directory not working


From: Thorsten Kampe
Subject: Re: Alerr for non-existing directory not working
Date: Wed, 19 Jan 2011 18:32:07 +0100
User-agent: MicroPlanet-Gravity/3.0.4

* Thorsten Kampe (Wed, 19 Jan 2011 13:02:38 +0100)
> I want to be alerted when a directory (which is mounted via autofs and 
> smb/mount.cifs) does not exist anymore (meaning the smb mount is not 
> accessible for whatever reason).
> 
> The line in monitrc is
> 
> check directory remote-tkampe
>       path /mnt/smb/tkampe/data
> [...]
> I stopped the server service on the remote host (stopping autofs
> daemon would be the same) and get...
> 
> # file /mnt/smb/tkampe/data
> /mnt/smb/tkampe/data: ERROR: cannot open `/mnt/smb/tkampe/data' (No such 
> file or directory)
> 
> ...but no email is sent...!

Okay, it was my mistake: I'm letting M/Monit send the emails for the 
checks defined in monitrc. I forgot that I had to create an extra alert 
through the M/Monit web interface to associate an action with the alert.

By the way: the M/Monit dashboard ("hosts with all services online") and 
Status/Overview ("all services available") page show incorrectly the 
host as green - even when the directory is "Status: Does not exist" and 
the service itself is marked red. This is only for service type 
directory and status "does not exist"; an equivalent service type 
"host" with status "connection failed" changes host status from green to 
orange.

Thorsten




reply via email to

[Prev in Thread] Current Thread [Next in Thread]