Re: can I get the uptime per server in csv stats
Thank you. I was seeking the document for string `uptime` and `time`, but nothing related found. how silly :) > On Jul 17, 2015, at 2:35 PM, Pavlos Parissis > wrote: > > > On 17/07/2015 06:02 πμ, Ruoshan Huang wrote: >> hi, >>I found that the html stats page has a column of status which comes with >> the uptime of a server or backend, >> but in the csv stats I couldn’t find the uptime accordingly. >>Can I get the uptime of servers without parsing the html? Thanks. >> >> -- >> Good day! >> ruoshan >> >> > > I believe it is the lastchg field name, > 23. lastchg [..BS]: number of seconds since the last UP<->DOWN transition > > sudo haproxytool server -m lastchg node1 --backend=b1 > # backendname servername > b1 node1 53856 > > Cheers, > Pavlos > -- Good day! ruoshan
Re: can I get the uptime per server in csv stats
On 17/07/2015 06:02 πμ, Ruoshan Huang wrote: > hi, > I found that the html stats page has a column of status which comes with > the uptime of a server or backend, > but in the csv stats I couldn’t find the uptime accordingly. > Can I get the uptime of servers without parsing the html? Thanks. > > -- > Good day! > ruoshan > > I believe it is the lastchg field name, 23. lastchg [..BS]: number of seconds since the last UP<->DOWN transition sudo haproxytool server -m lastchg node1 --backend=b1 # backendname servername b1 node1 53856 Cheers, Pavlos signature.asc Description: OpenPGP digital signature
can I get the uptime per server in csv stats
hi, I found that the html stats page has a column of status which comes with the uptime of a server or backend, but in the csv stats I couldn’t find the uptime accordingly. Can I get the uptime of servers without parsing the html? Thanks. -- Good day! ruoshan