Score:0

send a get request to url in monit (linux)

it flag

I'm trying to find out when a file size increase stops and then sends a GET request to some URL. already added this conf in

/etc/monit/monitrc

check file file.log with path /home/projects/my_project/file.log
    if timestamp > 15 minutes then alert

now I want to send a request to URL instead of alert.

something like this:

check file file.log with path /home/projects/my_project/file.log
    if timestamp > 15 minutes then request GET "http://my_url:8000"
Score:1
ug flag

Monit can execute a script or command, instead of sending an alert only.

Use something like

if timestamp > 15 minutes then exec /path/script.sh

See also https://mmonit.com/monit/documentation/monit.html

A suggestion only.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.