Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

Uptime question

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
22 posts • Page 1 of 1
Author
Message
jleveille
n00b
n00b
Posts: 10
Joined: Sun Apr 13, 2003 5:20 am
Location: Greene, Maine USA
Contact:
Contact jleveille
Website

Uptime question

  • Quote

Post by jleveille » Fri Jun 06, 2003 8:42 pm

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...
Top
jimlynch11
Guru
Guru
User avatar
Posts: 589
Joined: Fri Feb 21, 2003 1:40 am
Location: massachusetts

  • Quote

Post by jimlynch11 » Fri Jun 06, 2003 10:59 pm

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
Top
jleveille
n00b
n00b
Posts: 10
Joined: Sun Apr 13, 2003 5:20 am
Location: Greene, Maine USA
Contact:
Contact jleveille
Website

  • Quote

Post by jleveille » Fri Jun 06, 2003 11:06 pm

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...
Top
jimlynch11
Guru
Guru
User avatar
Posts: 589
Joined: Fri Feb 21, 2003 1:40 am
Location: massachusetts

  • Quote

Post by jimlynch11 » Fri Jun 06, 2003 11:26 pm

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
Top
jleveille
n00b
n00b
Posts: 10
Joined: Sun Apr 13, 2003 5:20 am
Location: Greene, Maine USA
Contact:
Contact jleveille
Website

  • Quote

Post by jleveille » Fri Jun 06, 2003 11:34 pm

They have always been within 24 hours so I thought it was odd it stayed at zero.
So much to learn, so little time...
Top
Ellidi
Apprentice
Apprentice
User avatar
Posts: 204
Joined: Tue Oct 22, 2002 6:24 pm
Location: iceland
Contact:
Contact Ellidi
Website

  • Quote

Post by Ellidi » Sat Jun 07, 2003 11:27 am

Nice site ;)
What if God smoked cannabis...
What do you mean with 'What if' ?
Top
zhenlin
Veteran
Veteran
Posts: 1361
Joined: Sat Nov 09, 2002 4:38 pm

  • Quote

Post by zhenlin » Sat Jun 07, 2003 2:19 pm

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.
Top
jleveille
n00b
n00b
Posts: 10
Joined: Sun Apr 13, 2003 5:20 am
Location: Greene, Maine USA
Contact:
Contact jleveille
Website

  • Quote

Post by jleveille » Sun Jun 08, 2003 1:13 pm

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...
Top
jimlynch11
Guru
Guru
User avatar
Posts: 589
Joined: Fri Feb 21, 2003 1:40 am
Location: massachusetts

  • Quote

Post by jimlynch11 » Sun Jun 08, 2003 2:46 pm

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
Top
jimlynch11
Guru
Guru
User avatar
Posts: 589
Joined: Fri Feb 21, 2003 1:40 am
Location: massachusetts

  • Quote

Post by jimlynch11 » Tue Jun 10, 2003 9:55 pm

question: im trying to list my new site on netcraft...how do you submit your site? have a link for me?
Top
jleveille
n00b
n00b
Posts: 10
Joined: Sun Apr 13, 2003 5:20 am
Location: Greene, Maine USA
Contact:
Contact jleveille
Website

  • Quote

Post by jleveille » Wed Jun 11, 2003 2:56 am

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...
Top
jimlynch11
Guru
Guru
User avatar
Posts: 589
Joined: Fri Feb 21, 2003 1:40 am
Location: massachusetts

  • Quote

Post by jimlynch11 » Wed Jun 11, 2003 12:10 pm

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?
Top
jleveille
n00b
n00b
Posts: 10
Joined: Sun Apr 13, 2003 5:20 am
Location: Greene, Maine USA
Contact:
Contact jleveille
Website

  • Quote

Post by jleveille » Wed Jun 11, 2003 4:05 pm

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...
Top
arunkv
n00b
n00b
User avatar
Posts: 3
Joined: Mon Jun 02, 2003 4:55 pm
Contact:
Contact arunkv
Website

  • Quote

Post by arunkv » Thu Jul 17, 2003 4:46 pm

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.
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Fri Jul 18, 2003 1:19 am

run

Code: Select all

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) ).
Top
jleveille
n00b
n00b
Posts: 10
Joined: Sun Apr 13, 2003 5:20 am
Location: Greene, Maine USA
Contact:
Contact jleveille
Website

  • Quote

Post by jleveille » Fri Jul 18, 2003 11:22 am

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...
Top
0problem.dk
n00b
n00b
Posts: 5
Joined: Sun Jul 13, 2003 9:06 am
Location: Ikast, Denmark
Contact:
Contact 0problem.dk
Website

  • Quote

Post by 0problem.dk » Mon Jul 21, 2003 2:21 pm

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... :-)
Top
someguy
Guru
Guru
Posts: 433
Joined: Thu Jul 10, 2003 2:13 am
Location: (-_-) .::OH_WELL::. (-_-)

  • Quote

Post by someguy » Tue Aug 12, 2003 7:08 am

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
Top
jleveille
n00b
n00b
Posts: 10
Joined: Sun Apr 13, 2003 5:20 am
Location: Greene, Maine USA
Contact:
Contact jleveille
Website

  • Quote

Post by jleveille » Fri Aug 15, 2003 1:15 pm

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...
Top
MrPyro
Tux's lil' helper
Tux's lil' helper
Posts: 121
Joined: Thu Aug 14, 2003 10:01 am
Location: Sheffield, England

  • Quote

Post by MrPyro » Fri Aug 15, 2003 2:46 pm

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
Top
Mythos
l33t
l33t
User avatar
Posts: 953
Joined: Sun May 02, 2004 11:54 pm
Location: Portugal
Contact:
Contact Mythos
Website

  • Quote

Post by Mythos » Tue May 31, 2005 1:23 am

same problem here:

Code: Select all

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: Select all

(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: Select all

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: Select all

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
Top
Mythos
l33t
l33t
User avatar
Posts: 953
Joined: Sun May 02, 2004 11:54 pm
Location: Portugal
Contact:
Contact Mythos
Website

Solved!

  • Quote

Post by Mythos » Mon Oct 24, 2005 12:48 pm

With kernel >=2.6.13

Code: Select all

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
Top
Post Reply

22 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic