[prev in list] [next in list] [prev in thread] [next in thread] 

List:       uwsgi
Subject:    [uWSGI] example uwsgi protocol using netcat?
From:       lambdaq () gmail ! com (=?ISO-8859-7?B?63E=?=)
Date:       2012-10-10 2:51:05
Message-ID: CAP7uzh-EvwuWn_1iUr0FZfdf7kbAeC05_kfhwV+bvtWh3tbYCw () mail ! gmail ! com
[Download RAW message or body]

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 <roberto at unbit.it> 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
>> uWSGI at lists.unbit.it
>> 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
> uWSGI at lists.unbit.it
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic