Quantcast
Channel: How to redirect the output of an exec command to the monit log? - Server Fault
Browsing all 2 articles
Browse latest View live

Answer by user9517 for How to redirect the output of an exec command to the...

If monit uses standard syslog facilities then take a look at logger. You can pipe the output of your command through it and each line will appear as a new message in the relevant log file, for example...

View Article



How to redirect the output of an exec command to the monit log?

Is it possible to redirect the output of an exec command to the monit log?check host example.org with address example.org if failed port 80 protocol http for 2 cycles then exec "/root/cloudflare.py...

View Article
Browsing all 2 articles
Browse latest View live


Latest Images