Hello,
I would like my Nginx server to run every 30 seconds a service job. This
job will just send a message to another server that the nginx is running
and OK. Does anybody know how to do it?
I have just one idea - to write a module that will send the OK message
to another server. Then cron will run each 1 minute (unfortunately 30
seconds is not possible) a script that will send a request to the
module.
I have API between the Nginx and the second (control) server. I use RPC
interface. I need just send a RPC request (with status infrmation) to
the control server. I think that heartbeat is too robust.
Use cron to start a script which does the test, sleeps for 30s,
then does
the test again, then dies (to be restarted by cron
at the next minute)
This option seems to be the best but is any possibility the nginx to do
it in its own?
Hello, I would like my Nginx server to run every 30 seconds a
service job. This job will just send a message to another server
that the nginx is running and OK. Does anybody know how to do it? I
have just one idea - to write a module that will send the OK message
to another server. Then cron will run each 1 minute (unfortunately
30 seconds is not possible) a script that will send a request to the
module.
Use the HTTP Echo Module | NGINX and a cron job that
checks a certain location and posts the message you wnat using curl to
the other server.