Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Uptime question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
jleveille
n00b
n00b


Joined: 13 Apr 2003
Posts: 10
Location: Greene, Maine USA

PostPosted: Fri Jun 06, 2003 8:42 pm    Post subject: Uptime question Reply with quote

Last week I moved my web site over to its new Gentoo home. My uptime displays properly using the command, but netcraft allways shows the uptime for the server as 0, Is this masked somehow, or has anyone seen this before? Just curious.
_________________
So much to learn, so little time...
Back to top
View user's profile Send private message
jimlynch11
Guru
Guru


Joined: 21 Feb 2003
Posts: 590
Location: massachusetts

PostPosted: Fri Jun 06, 2003 10:59 pm    Post subject: Reply with quote

first off, really like the site...

secondly, has the server been down at all? perhaps it only logs your uptime once there is a final number for it to post? im not sure though
Back to top
View user's profile Send private message
jleveille
n00b
n00b


Joined: 13 Apr 2003
Posts: 10
Location: Greene, Maine USA

PostPosted: Fri Jun 06, 2003 11:06 pm    Post subject: Reply with quote

Thanks

It has been up for a week since I brought it on line last Friday.

20:05:44 up 7 days, 6:45, 1 user, load average: 0.10, 0.05, 0.01
_________________
So much to learn, so little time...
Back to top
View user's profile Send private message
jimlynch11
Guru
Guru


Joined: 21 Feb 2003
Posts: 590
Location: massachusetts

PostPosted: Fri Jun 06, 2003 11:26 pm    Post subject: Reply with quote

hmm

have you experienced delays in netcraft's logging of your site before? i.e. perhaps they only update their statistics once a week or something
Back to top
View user's profile Send private message
jleveille
n00b
n00b


Joined: 13 Apr 2003
Posts: 10
Location: Greene, Maine USA

PostPosted: Fri Jun 06, 2003 11:34 pm    Post subject: Reply with quote

They have always been within 24 hours so I thought it was odd it stayed at zero.
_________________
So much to learn, so little time...
Back to top
View user's profile Send private message
Ellidi
Apprentice
Apprentice


Joined: 22 Oct 2002
Posts: 204
Location: iceland

PostPosted: Sat Jun 07, 2003 11:27 am    Post subject: Reply with quote

Nice site ;)
_________________
What if God smoked cannabis...
What do you mean with 'What if' ?
Back to top
View user's profile Send private message
zhenlin
Veteran
Veteran


Joined: 09 Nov 2002
Posts: 1361

PostPosted: Sat Jun 07, 2003 2:19 pm    Post subject: Reply with quote

I believe that the default configuration of Gentoo or Apache, can't be sure which, masks this info. I know I have not had any uptime data of my machine recorded by Netcraft, it always says that "No uptime data is available for this machine", or something to that effect.
Back to top
View user's profile Send private message
jleveille
n00b
n00b


Joined: 13 Apr 2003
Posts: 10
Location: Greene, Maine USA

PostPosted: Sun Jun 08, 2003 1:13 pm    Post subject: Reply with quote

I have been searching the net for days on this, nothing out there. I do see other Gentoo servers showing in netcrafts surveys. Ah well its not enough to worry about. Thank guys.
_________________
So much to learn, so little time...
Back to top
View user's profile Send private message
jimlynch11
Guru
Guru


Joined: 21 Feb 2003
Posts: 590
Location: massachusetts

PostPosted: Sun Jun 08, 2003 2:46 pm    Post subject: Reply with quote

you might want to PM some of the gentoo devs, or look for them on IRC...because the gentoo site (which is running gentoo obviously) is shown on netcraft...maybe they will have some insight
Back to top
View user's profile Send private message
jimlynch11
Guru
Guru


Joined: 21 Feb 2003
Posts: 590
Location: massachusetts

PostPosted: Tue Jun 10, 2003 9:55 pm    Post subject: Reply with quote

question: im trying to list my new site on netcraft...how do you submit your site? have a link for me?
Back to top
View user's profile Send private message
jleveille
n00b
n00b


Joined: 13 Apr 2003
Posts: 10
Location: Greene, Maine USA

PostPosted: Wed Jun 11, 2003 2:56 am    Post subject: Reply with quote

From the netcraft main page http://news.netcraft.com/ just enter the site in the "Whats that site running" form on the top left of the page and they will start tracking it.

Once they receive requests for a site they start tacking uptime.
_________________
So much to learn, so little time...
Back to top
View user's profile Send private message
jimlynch11
Guru
Guru


Joined: 21 Feb 2003
Posts: 590
Location: massachusetts

PostPosted: Wed Jun 11, 2003 12:10 pm    Post subject: Reply with quote

will this work for my site if i dont have a named domain, and just rely on the few visitors of the site typing in my IP address and/or being redirected from another remotely hosted page of mine?
Back to top
View user's profile Send private message
jleveille
n00b
n00b


Joined: 13 Apr 2003
Posts: 10
Location: Greene, Maine USA

PostPosted: Wed Jun 11, 2003 4:05 pm    Post subject: Reply with quote

I am not sure if it will work, reading the faq leads me to believe an ip or redirection is ignored. :(
_________________
So much to learn, so little time...
Back to top
View user's profile Send private message
arunkv
n00b
n00b


Joined: 02 Jun 2003
Posts: 3

PostPosted: Thu Jul 17, 2003 4:46 pm    Post subject: Reply with quote

jleveille wrote:
I have been searching the net for days on this, nothing out there. I do see other Gentoo servers showing in netcrafts surveys. Ah well its not enough to worry about. Thank guys.

I've also been looking for this info. I've noticed that if I use the gentoo-sources kernel, then Netcraft doesn't detect the OS correctly and records no uptime but when I switch to vanilla-sources, detection and uptimes work correctly. So I'm guessing it must be something patched into the vanilla kernel that's masking this information.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9538
Location: beyond the rim

PostPosted: Fri Jul 18, 2003 1:19 am    Post subject: Reply with quote

run
Code:
nmap -O <your-webserver>

(the letter O, not the number 0)

nmap uses a tcp packet analysis to get the uptime, maybe netcraft uses the same approach. As there are many options in the kernel to manipulate tcp (and other) packets you might check you kernel (or forget about it 8) ).
Back to top
View user's profile Send private message
jleveille
n00b
n00b


Joined: 13 Apr 2003
Posts: 10
Location: Greene, Maine USA

PostPosted: Fri Jul 18, 2003 11:22 am    Post subject: Reply with quote

Interesting, checked two machines, server runs vanilla-sources and the major differences between this and a workstation running gentoo-sources is as follows:

gentoo-sources Workstation:
PU(Resp=Y%DF=N%TOS=C0%IPLEN=164%RIPTL=148%RID=E%RIPCK=E%UCK=E%ULEN=134%DAT=E)

Displays uptime

Vanilla-sources Server:
PU(Resp=N)

No uptime reported.

Time to dig into the kernels.

Thanks
_________________
So much to learn, so little time...
Back to top
View user's profile Send private message
0problem.dk
n00b
n00b


Joined: 13 Jul 2003
Posts: 5
Location: Ikast, Denmark

PostPosted: Mon Jul 21, 2003 2:21 pm    Post subject: Reply with quote

I have the same problem on my server, 0problem.dk. A few weeks ago, it worked fine, but now netcraft does not record uptime from my server. I thought it was because of my upgrade to Apache 2, but it could also be the kernel, since I recently (just about the same time as my apache upgrade, I think) upgraded from 2.4.20-gentoo-r2 to 2.4.20-gentoo-r5.

It's not a huge problem, but I like to look at the statistics once in a while. So if any of you find a simple solution, it would be nice if you would post a little note in here... :-)
Back to top
View user's profile Send private message
someguy
Guru
Guru


Joined: 10 Jul 2003
Posts: 433
Location: (-_-) .::OH_WELL::. (-_-)

PostPosted: Tue Aug 12, 2003 7:08 am    Post subject: Reply with quote

nice site
_________________
print pack"C*",split/\D+/,`echo "16iII*o\U@{$/=$z;[(pop,pop,unpack"H*",<>
)]}\EsMsKsN0[lN*1lK[d2%Sa2/d0<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<J]dsJxp"|dc`
while [ 1 ] ; do echo "*" | telnet ip.of.print.er 9100 ; done
Back to top
View user's profile Send private message
jleveille
n00b
n00b


Joined: 13 Apr 2003
Posts: 10
Location: Greene, Maine USA

PostPosted: Fri Aug 15, 2003 1:15 pm    Post subject: Reply with quote

Monday I booted the system into a new vanilla-sources 2.4.21 kernel using the same .config as in the earlier kernel I was running. Netcraft is now detecting uptimes correctly.

It seems it is not a configuration issue in the kernel but the kernel thats being used itself. In a previous post I said I was using vanilla-sources on this machine and gentoo-sources on a machine that worked correctly. It was the reverse, vanilla-sources works.
_________________
So much to learn, so little time...
Back to top
View user's profile Send private message
MrPyro
Tux's lil' helper
Tux's lil' helper


Joined: 14 Aug 2003
Posts: 121
Location: Sheffield, England

PostPosted: Fri Aug 15, 2003 2:46 pm    Post subject: Reply with quote

My uptime isn't being reported: I'm using vanilla sources 2.4.20. Could it be a kernel configuration or firewall issue?
_________________
Back off man, I'm a computer scientist
Back to top
View user's profile Send private message
Mythos
l33t
l33t


Joined: 02 May 2004
Posts: 953
Location: Portugal

PostPosted: Tue May 31, 2005 1:23 am    Post subject: Reply with quote

same problem here:
Code:
Portage 2.0.51.22-r1 (selinux/2005.1/x86, gcc-3.3.5-20050130-hardened,
glibc-2.3.4.20041102-r1, 2.6.11-hardened-r13 i686)
=================================================================
System uname: 2.6.11-hardened-r13 i686 Pentium II (Klamath)
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks loadpolicy sandbox selinux sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apache2 berkdb crypt curl gd gdbm gif gpm hardened imap ldap libwww maildir
mysql ncurses nls pam pam-mysql pdflib perl png pop postgres python readline
samba sasl selinux snmp ssl tcpd tiff use vhosts x86 xml2 ysql zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY




Code:
(The 1659 ports scanned but not shown below are in state: filtered)
PORT     STATE SERVICE
25/tcp   open  smtp
80/tcp   open  http
443/tcp  open  https
1022/tcp open  unknown
Device type: general purpose
Running: Linux 2.6.X
OS details: Linux 2.6.7 - 2.6.8
Uptime 0.444 days (since Mon May 30 14:44:39 2005)


I think that some kernel's are not supported:
Code:

Operating systems that do not provide uptime information include;

    * AIX
    * AS/400
    * Compaq Tru64
    * DG/UX
    * Linux before kernel version 2.1
    * Linux on Alpha and IA64 processors
    * Linux on Intel x86 processor from kernel version 2.5.25 (see below)
    * MacOS
    * MacOSX
    * NT3/Windows 95
    * NT4/Windows 98
    * NetBSD/OpenBSD
    * NetWare
    * OS/2
    * OS/390
    * SCO UNIX
    * SunOS 4
    * VM

and why...
Code:

Why do you not report uptimes for Linux 2.6 or Linux alpha/ia64 ?

The Linux kernel switched to a higher internal timer rate at kernel version
2.5.26. Linux 2.4 used a rate of 100Hz. Linux 2.6 uses a timer at 1000Hz. (An
explanation of the HZ setting in Linux.)

The above applies to Linux on 32-bit Intel-compatible systems (which is the most
common case). Linux on other platforms uses different timer rates: the Alpha and
Intel ia-64 ports already used 1000Hz, while the ports for sparc, m68k and other
less common processors continue to use 100Hz.

The Linux TCP code only uses the low 32 bits of the timer. Due to the faster
rate of the timer, the value wraps around every 49.7 days (whereas it used to
wrap after 497 days). Because there are large numbers of Linux systems which
have a higher uptime than this, it is no longer possible to report accurate
uptimes for these systems.



If any one solved this issue will be great.
_________________
Best Regards,
Sérgio Henrique
Linux dune 3.0.6-gentoo #1 SMP Thu Oct 27 16:47:29 WEST 2011 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
Mythos
l33t
l33t


Joined: 02 May 2004
Posts: 953
Location: Portugal

PostPosted: Mon Oct 24, 2005 12:48 pm    Post subject: Solved! Reply with quote

With kernel >=2.6.13

Code:
CONFIG_HZ_100=y
# CONFIG_HZ_250 is not set
# CONFIG_HZ_1000 is not set
CONFIG_HZ=100


Then after 3 days netcraft will show your uptime!!!

I don't know if 250 hz work, but with freebsd 250 hz work's!
_________________
Best Regards,
Sérgio Henrique
Linux dune 3.0.6-gentoo #1 SMP Thu Oct 27 16:47:29 WEST 2011 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum