monit-general
[Top][All Lists]
Advanced

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

Re: [monit] Using Monit with Lotus Domino


From: Eric Pailleau
Subject: Re: [monit] Using Monit with Lotus Domino
Date: Mon, 27 Apr 2009 14:47:29 +0200
User-agent: Thunderbird 2.0.0.21 (X11/20090330)

Aleksander Kamenik a écrit :
John Doe wrote:
Any suggestions? BM

#!/bin/bleh
## backup script
monit unmonitor lotus;
doBackup;
monit monitor lotus;

That is, don't monitor during the backup.

Regards,


It would better to do so :
#!/bin/bleh
## backup script
monit unmonitor lotus && (doBackup && monit monitor lotus || (echo "something wrong ..."| mail 
-s "alerte 2" address@hidden) ) || (echo "something wrong
..."| mail -s "alerte 1" address@hidden)


BUT I DISCOVERED THAT MONIT ALWAYS EXIT WITH 0 (OK) on shell commands !

For instance, monit exit with 0 when trying to do command on a service that 
does not exist !

Can this be changed for better integration in scripts ?

Regards





reply via email to

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