Re: monit alert -- Status failed network_resolv

SZÉPE Viktor <[email protected]>
Newsgroups gmane.comp.monitoring.monit.general
Message-ID <[email protected]>
Idézem/Quoting Juergen Nickelsen <[email protected]>:

> On 2017-10-17, at 23:13, SZÉPE Viktor <[email protected]> wrote:
>
>> I may seem a rookie but why am I getting an email on the execution  
>> of a Slack script?
>>
>> check program network_resolv
>>    with path "/usr/local/sbin/server-integrity.sh -c RES -r '3'"  
>> every 33 cycles
>>   group integrity
>>   if status != 0 then alert
>>   if status != 0 then exec "/usr/local/sbin/monit-slack.sh  
>> 'https://hooks.slack.com/services...'"
>
> Being relatively new to monit, too, I'd say because there are two  
> "if status != 0 then" clauses: (a) alert (meaning the email  
> message), and (b) exec the slack script.
>
> So, I'd remove the first one, "if status != 0 then alert", to try to  
> get rid of the email message, if that is what you want.

Thank you.
I receive 2 emails.


SZÉPE Viktor, honlap üzemeltetés
https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
-- 
+36-20-4242498  [email protected]  skype: szepe.viktor
Budapest, III. kerület





-- 
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.