1340237333 Q * clopez Ping timeout: 480 seconds 1340237798 Q * uNIXplumber Remote host closed the connection 1340237854 J * j0r-L ~uNIXplumb@ultimedia-linux.org 1340237868 N * j0r-L uNIXplumber 1340237916 N * uNIXplumber j0r-L 1340237982 N * j0r-L uNIXplumber 1340242892 Q * thierryp Remote host closed the connection 1340243716 Q * WMP Quit: ZNC - http://znc.in 1340243971 J * WMP ~oftc@auburn.sored.pl 1340252838 M * Bertl off to bed now ... have a good one everyone! 1340252842 N * Bertl Bertl_zZ 1340258184 J * ncopa ~ncopa@3.203.202.84.customer.cdi.no 1340259396 J * ghislain ~AQUEOS@adsl2.aqueos.com 1340263474 J * thierryp ~thierry@zankai.inria.fr 1340264631 Q * thierryp Remote host closed the connection 1340264679 J * kir ~kir@swsoft-msk-nat.sw.ru 1340265100 J * thierryp ~thierry@zankai.inria.fr 1340265933 Q * Romster Ping timeout: 480 seconds 1340266913 J * Romster ~romster@202.168.100.149.dynamic.rev.eftel.com 1340267828 J * ariabbas ~ari@41.67.236.5 1340268594 M * ariabbas . 1340269561 Q * jeroen__ Quit: Ex-Chat 1340271872 J * clopez ~clopez@131.29.165.83.dynamic.mundo-r.com 1340273089 J * arekm ~arekm@ixion.pld-linux.org 1340273509 Q * guerby Ping timeout: 480 seconds 1340274373 J * guerby ~guerby@nc10d-ipv6.tetaneutral.net 1340274862 Q * arekm Quit: leaving 1340275470 Q * guerby Ping timeout: 480 seconds 1340275509 J * guerby ~guerby@nc10d-ipv6.tetaneutral.net 1340275963 Q * clopez Ping timeout: 480 seconds 1340276841 Q * hparker Quit: I've fallen off the 'net and can't get up 1340277935 Q * ariabbas Remote host closed the connection 1340277954 Q * Romster Quit: Geeks shall inherit properties and methods of object earth. 1340278194 J * hparker ~hparker@2001:470:1f0f:32c:beae:c5ff:fe01:b647 1340278296 J * petzsch ~markus@dslb-188-103-061-012.pools.arcor-ip.net 1340278372 J * BenG ~bengreen@cpc10-aztw24-2-0-cust114.aztw.cable.virginmedia.com 1340278584 J * clopez ~clopez@fanzine.igalia.com 1340279051 P * kir PING 1340279051 1340279540 J * fisted_ ~fisted@xdsl-78-35-91-36.netcologne.de 1340279749 Q * fisted Ping timeout: 480 seconds 1340280620 Q * BenG Quit: I Leave 1340281797 Q * Aiken Remote host closed the connection 1340282179 N * Bertl_zZ Bertl 1340282184 M * Bertl morning folks! 1340284258 Q * petzsch Quit: Leaving. 1340284360 M * ghislain hello there 1340286411 J * BenG ~bengreen@cpc10-aztw24-2-0-cust114.aztw.cable.virginmedia.com 1340288518 J * ariabbas ~ari@41.67.236.5 1340288538 M * ghislain if i am a python newby and want to use the python bindings to make simple query tools to make vserver works with zabbix auto discovery 1340288560 M * ghislain where can i find docs about the python bindings of util-versers ? 1340288621 M * daniel_hozac http://nongnu.org/util-vserver/doc/apidoc/html/group__syscalls.html and the source. 1340288666 M * ghislain i am looking at the libvserver.py but kind of hard for me eheh 1340288759 M * ghislain your url give some information thx 1340289715 M * ghislain (root)> vserver-stat 1340289715 M * ghislain vc_virt_stat(): No such process 1340289781 M * ghislain strange error, never noticed it before, basicaly i try to do a script that will just give me the running guests on a system 1340289791 M * ghislain so it is a limited vserver-stat :) 1340290452 M * Bertl ESRCH means that the (context) id was not found 1340290482 Q * ariabbas Ping timeout: 480 seconds 1340290576 N * ensc Guest722 1340290587 J * ensc ~irc-ensc@p54ADE141.dip.t-dialin.net 1340290650 J * ariabbas ~ari@41.67.236.5 1340290681 Q * BenG Quit: I Leave 1340290979 Q * Guest722 Ping timeout: 480 seconds 1340291610 M * ghislain ok 1340291642 Q * ncopa Quit: Leaving 1340291856 Q * thierryp Remote host closed the connection 1340292054 Q * ariabbas Ping timeout: 480 seconds 1340292206 J * ariabbas ~ari@41.67.236.5 1340292519 J * goddamnSteveJobs ~goddamnSt@09GAAGFWQ.tor-irc.dnsbl.oftc.net 1340294756 Q * disposable Ping timeout: 480 seconds 1340294844 J * bonbons ~bonbons@2001:960:7ab:0:f97f:e63b:8124:e278 1340294877 Q * ariabbas Remote host closed the connection 1340295094 Q * goddamnSteveJobs Killed (tjfontaine (No reason)) 1340295535 J * ariabbas ~ari@41.67.236.5 1340295962 J * BenG ~bengreen@cpc10-aztw24-2-0-cust114.aztw.cable.virginmedia.com 1340296787 M * ghislain i really do not find the function that list the running vserver in the python thing :( 1340296824 Q * ariabbas Ping timeout: 480 seconds 1340296975 J * ariabbas ~ari@41.67.236.5 1340297705 Q * BenG Quit: I Leave 1340298052 Q * ariabbas Read error: No route to host 1340298053 Q * ensc|w Remote host closed the connection 1340298062 J * ensc|w ~ensc@www.sigma-chemnitz.de 1340298286 J * ariabbas ~ari@41.67.236.5 1340298463 M * ghislain will use vserver-stat and awk, lets forget the clean way ^^ 1340299509 Q * ariabbas Ping timeout: 480 seconds 1340299723 J * ariabbas ~ari@41.67.236.5 1340302544 J * ariabbas_ ~ari@41.67.236.5 1340302561 Q * ariabbas Read error: No route to host 1340302575 M * Bertl ghislain: you can simply get the ids from proc 1340302626 M * Bertl (two lines in python with readdir) 1340303194 M * Bertl off for a nap ... bbl 1340303198 N * Bertl Bertl_zZ 1340304211 J * ariabbas ~ari@41.67.236.5 1340304217 Q * ariabbas_ Read error: Connection reset by peer 1340304976 J * sannes ~ace@cm-84.211.87.28.getinternet.no 1340305566 J * ariabbas_ ~ari@41.67.236.5 1340305566 Q * ariabbas Read error: Connection reset by peer 1340307282 Q * clopez Ping timeout: 480 seconds 1340307588 Q * ariabbas_ Ping timeout: 480 seconds 1340307797 J * ariabbas ~ari@41.67.236.5 1340308830 J * hijacker_ ~hijacker@cable-84-43-134-121.mnet.bg 1340308966 N * Bertl_zZ Bertl 1340308971 M * Bertl back now ... 1340309469 J * ariabbas_ ~ari@41.67.236.5 1340309469 Q * ariabbas Read error: Connection reset by peer 1340310272 M * ghislain back also, yes i have searched a little the /proc/virtual system 1340310330 M * ghislain then i think the 10482/nsproxy give me the guest fqdn 1340310398 M * ghislain i mean id/nsproxy ^^ 1340310450 M * ghislain i still lack the guest name as then i need information from the cgroups 1340310619 M * daniel_hozac xids = os.listdir("/proc/virtual") 1340310631 M * daniel_hozac well, with a filter on that. 1340311244 Q * ariabbas_ Remote host closed the connection 1340311257 J * ariabbas ~ari@41.67.236.5 1340311421 M * ghislain ^^ 1340311648 M * daniel_hozac xids = filter(lambda x: x not in ("info", "status"), os.listdir("/proc/virtual")); guests = map(lambda x: libvserver.get_vhi_name(x, 'CONTEXT'), xids) 1340311663 M * daniel_hozac guests will then refer to the path to the configuration directory of the guest. 1340311674 M * ghislain for the guest name you need to go to /etc ou /usr/local/etc /vservers/name 1340311685 M * ghislain oh ok 1340311787 M * ghislain hum get_vhi_name i do not see it in the link you gived me, do i missed it ? 1340311889 M * daniel_hozac not all of them are documented yet... 1340311894 M * ghislain ^^ 1340311902 M * daniel_hozac (since nobody uses the API ;)) 1340311933 M * Bertl xids = [ x for x in os.listdir("/proc/virtual") if x.isdigit() ] 1340311937 M * ghislain i was trying to read vserver-stat source but i stopped when my urge to suicide myself raised too much :D 1340311947 M * Bertl IMHO easier on the eyes :) 1340312108 M * ghislain as an average sysadmin i am also a bad dev ^^ 1340312143 M * ghislain zabbix auto discover features could be quite cool, it can detect guest and create then monitoring metrics and graphs with them 1340312163 Q * hijacker_ Quit: Leaving 1340312169 M * ghislain i really like to get something running with this, i start to look what can be done 1340312220 M * ghislain if i got something i will try to show you if we can build something here if you are interested in changing my bad code for something more robust 1340312253 M * ghislain the base is to be able to generate a simple listing of vserver guest name and vid 1340312276 M * ghislain those data will then be used to feed metric scripts 1340312294 M * ghislain then it should be able to auto add guest 1340312306 M * ghislain sorry, i think out loud ! :) 1340312469 Q * sannes Remote host closed the connection 1340312641 J * clopez ~clopez@131.29.165.83.dynamic.mundo-r.com 1340312811 M * ghislain have a good night ! i must go ^^ 1340312812 M * ghislain >>> import os 1340312812 M * ghislain >>> xids = [ x for x in os.listdir("/proc/virtual") if x.isdigit() ] 1340312812 M * ghislain >>> print xids 1340312812 M * ghislain ['10481', '40200', '10482', '10483', '10174'] 1340312819 M * ghislain victory is ours ! lol 1340312992 M * ghislain this one guests = map(lambda x: libvserver.get_vhi_name(x, 'CONTEXT'), xids) give TypeError: an integer is required i guess xid are strings insttead 1340313037 M * daniel_hozac yeah, just do int(x) instead. 1340313052 M * ghislain yep just googled it ^^ 1340313121 M * ghislain so there is no function giving directly a list of vserver, sound strange but this code will do i thnik ^^ 1340313143 Q * ariabbas Read error: No route to host 1340313144 M * daniel_hozac no 1340313153 M * daniel_hozac the xids is the list. 1340313161 M * daniel_hozac names are unimportant. 1340313186 M * ghislain yes they are if you want to find the cgroup ^^ 1340313209 M * ghislain or you can have the cgroup name with the xid ? 1340313318 M * daniel_hozac the cgroup needs more code. 1340313359 J * Aiken ~Aiken@2001:44b8:2168:1000:21f:d0ff:fed6:d63f 1340313363 J * ariabbas ~ari@41.67.236.5 1340313366 M * daniel_hozac the name isn't necessarily relevant there either. 1340313396 M * ghislain oh ? 1340313413 M * ghislain you can change that i was pretty sure the cgroup was the guest name 1340313415 M * daniel_hozac /cgroup/name can make it something else. 1340313427 M * daniel_hozac shared among a few guests, for instance. 1340313436 M * ghislain oh i see ! 1340313449 M * ghislain this one will make thing harder 1340313483 M * ghislain but at least i know now 1340313567 M * ghislain ok that can be customized by guest, this is great but will add me some headache for the tool lol 1340313571 M * ghislain thanks for the info 1340313578 M * ghislain willg go to sleep now 1340313583 M * ghislain see ya tomorow ^^ 1340313609 M * Bertl cya 1340314052 Q * bonbons Quit: Leaving 1340314064 Q * ghislain Ping timeout: 480 seconds 1340314954 Q * ariabbas Ping timeout: 480 seconds 1340315165 J * ariabbas ~ari@41.67.236.5 1340316430 Q * hparker Quit: I've fallen off the 'net and can't get up 1340316723 J * hparker ~hparker@2001:470:1f0f:32c:beae:c5ff:fe01:b647 1340317242 Q * ariabbas Remote host closed the connection 1340317255 J * ariabbas ~ari@41.67.236.5 1340317655 Q * brambles Quit: leaving 1340317674 J * brambles brambles@79.133.200.49 1340317679 J * brambles_ brambles@79.133.200.49 1340319694 Q * ariabbas Ping timeout: 480 seconds 1340319908 J * ariabbas ~ari@41.67.236.5 1340320012 Q * brambles Quit: leaving 1340320908 N * uNIXplumber j0r-L 1340320940 N * j0r-L uNIXplumber 1340321632 J * ariabbas_ ~ari@41.67.236.5 1340321632 Q * ariabbas Read error: Connection reset by peer 1340323122 Q * hparker Quit: I've fallen off the 'net and can't get up 1340323128 J * hparker ~hparker@2001:470:1f0f:32c:beae:c5ff:fe01:b647