Commit Graph

28 Commits

Author SHA1 Message Date
Marc G. Fournier cb2b9a562a Clean up the code a wee bit, since the non-FreeBSD case(s), where OSs don't
have pciconf, just keeps growing ...

Fix up code for use of /etc/rc.conf.local for those systems that don't use
periodic.conf

Submitted by:	Thorsten Glaser <tg@mirbsd.de>
2006-09-09 16:45:36 +00:00
Marc G. Fournier 0789871b38 Even better random number generator using jot ... 2006-09-07 04:50:21 +00:00
Marc G. Fournier 13dce54b33 Apparently Sparc doesn't like using openssl to generate a random value ... it
created a 41 year 'sleep' time for one ...

Fix it to use sum instead of openssl
2006-09-07 04:22:27 +00:00
Marc G. Fournier edfe9b3a00 OpenBSD uses the same method to submit as NetBSD 2006-09-06 00:36:03 +00:00
Marc G. Fournier 353ee209ab Add 'unset HTTP_USER_AGENT' ... the backend is setup to only accept specific
USER_AGENTs, so if someone has this set in their shell when running it manually,
it will break

Add random sleep 'breaks' before doing the fetchs, to help reduce impact on
the server when all reporting hosts submit their data ... get them someone
staggered ...

Submitted by:	Andre Albsmeier <Andre.Albsmeier@siemens.com>
2006-09-06 00:33:26 +00:00
Marc G. Fournier 32f0dc1610 temporarily broke get_id function
Submitted by:	David Brownlee <abs@absd.org>
2006-09-04 22:40:56 +00:00
Marc G. Fournier 6aa511e0f0 Several cleanups, and extensions to allow NetBSD to submit ...
- uri_escape IDTOKEN properly
 - use ftp vs fetch
 - use /etc/rc.conf instead of /etc/periodic.conf

Submitted by:	David Brownlee <abs@absd.org>
2006-09-04 20:36:44 +00:00
Marc G. Fournier 1f08de4978 forgot to 'cvs add' pkg-install
Submitted by: Paul Lipps <paul.lipps@gmail.com>
2006-09-04 06:57:49 +00:00
Marc G. Fournier 788f735b04 If installer enables the script, also prompt to run it the first
time
2006-09-04 02:51:03 +00:00
Marc G. Fournier 2d6b13e808 have it prompt, similar to postfix, whether or not you wish to activate
the script when you install it

Submitted by: Antony Mawer <antony@mawer.org>
2006-09-04 02:47:41 +00:00
Marc G. Fournier 97367f94b1 First, set PATH similar to /etc/rc.shutdown, so that we don't have to
hardcode openssl, to allow for those using ports for it to easily make
use of acript

Second, check timestamp of /var/db/bsdstats to make sure that the 15
minutes have passed before submitting, so that ppl don't get that 'false
success' when they ctl-C

Submitted by: Oliver Fromme <olli@lurza.secnetix.de>
2006-09-04 01:59:28 +00:00
Marc G. Fournier b44da07259 Fix " : not found" when first running script 2006-08-26 17:12:50 +00:00
Marc G. Fournier a3a3bf49af fix typo in PLIST_DIRS
Submitted by:	Giorgos Keramidas <keramida@ceid.upatras.gr>
2006-08-26 02:17:59 +00:00
Marc G. Fournier 0744dfbb6b Fix variable name used for token file
Submitted by:	Matthew Seaman <m.seaman@infracaninophile.co.uk>
2006-08-14 20:26:12 +00:00
Marc G. Fournier d60b7dd874 Ensure that data returned from server on initial challenge is, in
fact, only the data that we expect.

Submitted by:	Matthew Seaman <m.seaman@infracaninophile.co.uk>
2006-08-14 13:08:01 +00:00
Marc G. Fournier 6e536803d7 This is mostly a rewrite of the bsdstats script:
- eliminate use of ip/hostname as unique keys
    - reduce # of fetch's down to 4
    - move to using bsdstats.org
    - put in a time delay on initial challenge/response
      to make it a bit more difficult for fakers
2006-08-14 07:35:09 +00:00
Marc G. Fournier c4f8a1c342 somehow, defining $OS fell out in one of the commits ... 2006-08-09 18:36:15 +00:00
Marc G. Fournier c98f5c5f8f Include class information for devices, so that its easier to
categorize them in reports ...
2006-08-09 16:54:30 +00:00
Marc G. Fournier 45f855e33e Add some verbosity to the script, letting ppl know that a report has
been sent, and/or that it is disabled and how to enable it ...

Submitted by:	Paul Schmehl <pauls@utdallas.edu>
2006-08-09 16:21:30 +00:00
Marc G. Fournier 935f9e7043 Add CPUs to the devices report, and clean up the script a bit
Submitted by:	Matthew Seaman <m.seaman@infracaninophile.co.uk>
2006-08-09 02:37:09 +00:00
Marc G. Fournier a65f939beb remove the monthly_statistics_mailto variable from the script ... it
is not used, nor was it ever used ...
2006-08-08 04:32:21 +00:00
Marc G. Fournier c8aba8e713 Redirect fetch output to /dev/null ... 2006-08-08 04:30:38 +00:00
Marc G. Fournier be9d1f56a9 have getid report operating system, so that other *BSDs can participate
as well ...
2006-08-08 04:06:55 +00:00
Marc G. Fournier 31a52eb950 Makefile cleanup
Submitted by:	Boris Samorodov <bsam@ipt.ru>
2006-08-08 02:17:35 +00:00
Marc G. Fournier d9926abc03 Add a message pointing people to where the stats themselves can
be viewed
2006-08-08 02:12:13 +00:00
Marc G. Fournier 7d08ae66b0 bsdstats v2.0 ... device reporting 2006-08-07 03:35:39 +00:00
Marc G. Fournier 3a88560255 Record Operating System itself, in case someone in the NetBSD,
OpenBSD or DragonflyBSD decides they want to add to the stats, so
that we know where the numbers belong ...
2006-08-06 14:11:15 +00:00
Marc G. Fournier adf2bc88c1 Initial port for bsdstats script
Submitted by: John Nielsen <john@jnielsen.net>
2006-08-06 03:34:08 +00:00