1544144059 Q * CcxWrk Ping timeout: 480 seconds 1544144703 Q * any0n Ping timeout: 480 seconds 1544145697 J * CcxWrk ~ccx@asterix.te2000.cz 1544146968 Q * sannes1 Ping timeout: 480 seconds 1544147519 J * sannes ~ace@2a02:fe0:c130:3190::e91 1544150000 Q * erratic 1544151658 J * erratic erratic@shells.yourstruly.sx 1544157736 J * any0n ~k@7YZAABI7D.tor-irc.dnsbl.oftc.net 1544163473 M * Bertl_oO off to bed now ... have a good one everyone! 1544163474 N * Bertl_oO Bertl_zZ 1544170682 J * hijacker ~nikolay@149.235.255.3 1544171629 M * Ghislain oh seems there is an uptime leaks 1544171658 M * Ghislain monit see the host uptime this si strange :), now i got to see the monit code source dam it 1544176906 M * Ghislain well cannot figure it out. Seems getting it from proc but cannot find anything so it must be a weird artefact somewhere but the uptime reported by monit is really the host one 1544176921 M * Ghislain bash uptime is ok so... 1544177498 M * Guy- Ghislain: did you try strace? 1544177633 M * Ghislain it seems to read /proc/*/stat but i dont see any issue there 1544177662 M * Ghislain but here: sysinfo({uptime=21160007, loads=[0, 0, 0], totalram=12884901888, freeram=12023517184, sharedram=333287424, bufferram=0, totalswap=0, freeswap=0, procs=2130, totalhigh=0, freehigh=0, mem_unit=1}) = 0 1544177667 M * Ghislain the uptime is the host one 1544177740 M * Guy- it calls the sysinfo syscall 1544177750 M * Guy- uptime=21160007 is what it returns 1544177816 M * Guy- Bertl_zZ: apparently vserver doesn't virtualize sysinfo(), so that host statistics are exposed to guests; I don't think it's a big deal though 1544177842 M * Guy- Ghislain: I also assume 2130 is the count of processes on the host, including all guests, right? 1544177873 M * Ghislain ohhhh yes it is 1544177902 M * Ghislain the issue is that monit calculate the uptime from the host boot time and not the guest one 1544177920 M * Guy- it does it based on the value returned by sysinfo() 1544177927 M * Ghislain so its calculation of uptime is completly false 1544177933 M * Ghislain it seems 1544178151 M * Ghislain ok so i know why it works on one system and not the other 1544178165 M * Ghislain the host has been rebooted so uptime is similar for guest and host 1544179108 M * Ghislain monit is quite popular and this screw all 'uptime' test :( 1544179899 M * Ghislain so this is static int do_sysinfo(struct sysinfo *info) in kernel/sys.c that need to be changed it seems 1544185125 N * Bertl_zZ Bertl 1544185129 M * Bertl morning folks! 1544185166 M * Bertl Ghislain, Guy-: thanks for narrowing it down, will take a look shortly 1544185186 M * Ghislain hey bertl thanks ! :) 1544187599 Q * Aiken Remote host closed the connection 1544198788 Q * hijacker Remote host closed the connection 1544199909 M * Ghislain i confirm the sysinfo return the good ram amount but not the process and the uptime, those are from the host 1544199922 M * Ghislain https://stackoverflow.com/questions/4229415/c-sysinfo-returning-bad-values-i686 i used this code to test :) 1544200171 M * Ghislain yes i tested the load average and sysinfo return the guest one not the host one so this is just processes and uptime 1544203304 Q * any0n Ping timeout: 480 seconds 1544209205 J * any0n ~k@0BGAABTTN.tor-irc.dnsbl.oftc.net 1544212741 J * Aiken ~Aiken@b951.h.jbmb.net 1544213246 M * Bertl off for now ... bbl 1544213247 N * Bertl Bertl_oO