Well that certainly solved my problem. Thanks!

It works both with IP address and unix domain socket.


On Tue, Oct 9, 2012 at 12:52 PM, Roberto De Ioris <[email protected]> wrote:
>
>> Hi list,
>>
>> I am making a website monitor & alert system, the idea is to parse
>> nginx, find each individual uwsgi upstream address, and using netcat
>> to check that address (either tcp or unix domain socket)
>>
>> I have difficulty understanding the uwsgi protocol, can anyone give a
>> simple example, using shellscript like echo+netcat to test if an uwsgi
>> server is up and running OK?
>>
>> Thanks in advance!
>>
>> λq
>> _______________________________________________
>> uWSGI mailing list
>> [email protected]
>> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>>
>
> uwsgi is a binary protocol, so using it with netcat will be pretty hard.
>
> You can use
>
> uwsgi --ping <address>
>
> it exit with 0 if all is ok, or with a non-zero on error.
>
> If you are using a modular build remember to install/load the ping plugin
>
> --
> Roberto De Ioris
> http://unbit.it
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to