View previous topic :: View next topic |
Author |
Message |
jleveille n00b
Joined: 13 Apr 2003 Posts: 10 Location: Greene, Maine USA
|
Posted: Fri Jun 06, 2003 8:42 pm Post subject: Uptime question |
|
|
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 |
|
|
jimlynch11 Guru
Joined: 21 Feb 2003 Posts: 590 Location: massachusetts
|
Posted: Fri Jun 06, 2003 10:59 pm Post subject: |
|
|
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 |
|
|
jleveille n00b
Joined: 13 Apr 2003 Posts: 10 Location: Greene, Maine USA
|
Posted: Fri Jun 06, 2003 11:06 pm Post subject: |
|
|
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 |
|
|
jimlynch11 Guru
Joined: 21 Feb 2003 Posts: 590 Location: massachusetts
|
Posted: Fri Jun 06, 2003 11:26 pm Post subject: |
|
|
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 |
|
|
jleveille n00b
Joined: 13 Apr 2003 Posts: 10 Location: Greene, Maine USA
|
Posted: Fri Jun 06, 2003 11:34 pm Post subject: |
|
|
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 |
|
|
Ellidi Apprentice
Joined: 22 Oct 2002 Posts: 204 Location: iceland
|
Posted: Sat Jun 07, 2003 11:27 am Post subject: |
|
|
Nice site ;) _________________ What if God smoked cannabis...
What do you mean with 'What if' ? |
|
Back to top |
|
|
zhenlin Veteran
Joined: 09 Nov 2002 Posts: 1361
|
Posted: Sat Jun 07, 2003 2:19 pm Post subject: |
|
|
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 |
|
|
jleveille n00b
Joined: 13 Apr 2003 Posts: 10 Location: Greene, Maine USA
|
Posted: Sun Jun 08, 2003 1:13 pm Post subject: |
|
|
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 |
|
|
jimlynch11 Guru
Joined: 21 Feb 2003 Posts: 590 Location: massachusetts
|
Posted: Sun Jun 08, 2003 2:46 pm Post subject: |
|
|
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 |
|
|
jimlynch11 Guru
Joined: 21 Feb 2003 Posts: 590 Location: massachusetts
|
Posted: Tue Jun 10, 2003 9:55 pm Post subject: |
|
|
question: im trying to list my new site on netcraft...how do you submit your site? have a link for me? |
|
Back to top |
|
|
jleveille n00b
Joined: 13 Apr 2003 Posts: 10 Location: Greene, Maine USA
|
Posted: Wed Jun 11, 2003 2:56 am Post subject: |
|
|
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 |
|
|
jimlynch11 Guru
Joined: 21 Feb 2003 Posts: 590 Location: massachusetts
|
Posted: Wed Jun 11, 2003 12:10 pm Post subject: |
|
|
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 |
|
|
jleveille n00b
Joined: 13 Apr 2003 Posts: 10 Location: Greene, Maine USA
|
Posted: Wed Jun 11, 2003 4:05 pm Post subject: |
|
|
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 |
|
|
arunkv n00b
Joined: 02 Jun 2003 Posts: 3
|
Posted: Thu Jul 17, 2003 4:46 pm Post subject: |
|
|
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 |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9538 Location: beyond the rim
|
Posted: Fri Jul 18, 2003 1:19 am Post subject: |
|
|
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 ). |
|
Back to top |
|
|
jleveille n00b
Joined: 13 Apr 2003 Posts: 10 Location: Greene, Maine USA
|
Posted: Fri Jul 18, 2003 11:22 am Post subject: |
|
|
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 |
|
|
0problem.dk n00b
Joined: 13 Jul 2003 Posts: 5 Location: Ikast, Denmark
|
Posted: Mon Jul 21, 2003 2:21 pm Post subject: |
|
|
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 |
|
|
someguy Guru
Joined: 10 Jul 2003 Posts: 433 Location: (-_-) .::OH_WELL::. (-_-)
|
Posted: Tue Aug 12, 2003 7:08 am Post subject: |
|
|
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 |
|
|
jleveille n00b
Joined: 13 Apr 2003 Posts: 10 Location: Greene, Maine USA
|
Posted: Fri Aug 15, 2003 1:15 pm Post subject: |
|
|
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 |
|
|
MrPyro Tux's lil' helper
Joined: 14 Aug 2003 Posts: 121 Location: Sheffield, England
|
Posted: Fri Aug 15, 2003 2:46 pm Post subject: |
|
|
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 |
|
|
Mythos l33t
Joined: 02 May 2004 Posts: 953 Location: Portugal
|
Posted: Tue May 31, 2005 1:23 am Post subject: |
|
|
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 |
|
|
Mythos l33t
Joined: 02 May 2004 Posts: 953 Location: Portugal
|
Posted: Mon Oct 24, 2005 12:48 pm Post subject: Solved! |
|
|
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 |
|
|
|