LogoopenSUSE Build Service > Projects
Sign Up | Log In

cricket

From http://cricket.sourceforge.net/

About Cricket

Cricket is a high performance, extremely flexible system for monitoring trends in time-series data. Cricket was expressly developed to help network managers visualize and understand the traffic on their networks, but it can be used all kinds of other jobs, as well.

Cricket has two components, a collector and a grapher. The collector runs from cron every 5 minutes (or at a different rate, if you want), and stores data into a datastructure managed by RRD Tool. Later, when you want to check on the data you have collected, you can use a web-based interface to view graphs of the data.

Cricket reads a set of config files called a config tree. The config tree expresses everything Cricket needs to know about the types of data to be collected, how to get it, and from which targets it should collect data. The config tree is designed to minimize redundant information, making it compact and easy to manage, and preventing silly mistakes from occurring due to copy-and-paste errors.

Cricket is written entirely in Perl and is distributed under the GNU General Public License.

Using source from: From http://www.iruntheinter.net/files/cricket/SRPMS/
[info from site]

Source RPMs for Cricket and associated tools (built for Red Hat Enterprise Linux 3, but should work on other Red Hat and Fedora distributions easliy).

    * cricket-1.0.5-3.src.rpm - Cricket version 1.0.5. This requires rrdtool-perl, perl-SNMP_Session, and perl-TimeDate built from SRPMS below, plus httpd, perl, perl-CGI, perl-DB_File, perl-Time-HiRes, perl-libwww-perl, and shadow-utils from RHEL. (cricket.spec)
    * perl-SNMP_Session-1.03-1.src.rpm - SNMP_Session perl module. This just requires perl for building and running. (SNMP_Session.spec)
    * perl-TimeDate-1.16-1.src.rpm - TimeDate perl module. This just requires perl for building and running. (TimeDate.spec)
    * rrdtool-1.1.0-0.1.20040430.src.rpm - RRD Tool CVS snapshot as of 2004-04-30. This builds rrdtool, rrdtool-devel, and rrdtool-perl RPMS. It requires freetype, libart_lgpl, libpng, zlib, and perl. To built, it requires the corresponding -devel packages plus cgilib below. (rrdtool.spec)
    * cgilib-0.5-1.src.rpm - CGI library for C. This has no special build requirements. (cgilib.spec)

Source used
all cricket rpms http://rpm.pbone.net/index.php3?stat=3&search=cricket&srodzaj=3
# rpm -qlp cricket-1.0.5-3.src.rpm
cricket-1.0.5-livehead3-x86.patch
cricket-1.0.5.tar.gz
cricket.spec

# rpm2cpio  cricket-1.0.5-3.src.rpm | cpio -ivd cricket.spec
cricket.spec
818 blocks

# rpm2cpio  cricket-1.0.5-3.src.rpm | cpio -ivd cricket-1.0.5-livehead3-x86.patch
cricket-1.0.5-livehead3-x86.patch
818 blocks

# rpm2cpio  cricket-1.0.5-3.src.rpm | cpio -ivd cricket-1.0.5.tar.gz
cricket-1.0.5.tar.gz
818 blocks


may need to use this:
http://lists.opensuse.org/opensuse-buildservice/2009-08/msg00144.html

also
http://svn.rpmforge.net/svn/trunk/rpms/cricket/
  cricket-paths.patch
  cricket.apache
  cricket.cron
  cricket.spec

Other:
http://packages.ubuntu.com/karmic/cricket
http://dag.wieers.com/rpm/packages/cricket/
http://fr.rpmfind.net/linux/RPM/dag/redhat/el5/x86_64/cricket-1.0.5-6.0.el5.rf.x86_64.html

To try out next:
---------------
Last change
#added in  
mkdir -p %{buildroot}%{apache_sysconfdir}/conf.d
cat > %{buildroot}%{apache_sysconfdir}/conf.d/cricket <<EOF
  
#remarked out
# mkdir -p %{buildroot}/etc/cron.d  
# cat > %{buildroot}/etc/cron.d/cricket <<EOF 
---------------
#added in
%{buildroot}%{apache_sysconfdir}/conf.d/cricket.conf
# remarked out %config /etc/httpd/conf.d/cricket.conf

http://lists.opensuse.org/opensuse-packaging/2009-08/msg00164.html

change %install section.

you have now:
# Set up an Apache config  
mkdir -p %{buildroot}/etc/httpd/conf.d  
cat > %{buildroot}/etc/httpd/conf.d/cricket.conf <<EOF  

Change it to 
# Set up an Apache config  
mkdir -p %{buildroot}%{apache_sysconfdir}/conf.d  
cat > %{buildroot}%{apache_sysconfdir}/conf.d/cricket.conf <<EOF  


latest compilation result:
--------------------------
build26 started "build cricket.spec" at Thu Aug 20 13:19:13 UTC 2009.
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd cricket-1.0.5
+ rm -rf /var/tmp/cricket-root
+ exit 0
... checking for files with abuild user/group
... running 00-check-install-rpms
... installing all built rpms
Preparing packages for installation...
cricket-1.0.5-37.1
... running 01-check-debuginfo
... testing for empty debuginfo packages
... running 02-check-gcc-output
... testing for serious compiler warnings
(using /usr/lib/build/checks-data/check_gcc_output)
(using //.build.log)
... running 03-check-binary-kernel-log
... running 04-check-filelist
... checking filelist
cricket: "/etc/httpd/conf.d/cricket.conf" is not allowed anymore in SuSE Linux.
cricket-1.0.5-37.1.noarch.rpm: directories not owned by a package:
- /etc/httpd
- /etc/httpd/conf.d
System halted.

Previous compilation results:
-----------------------------
build26 started "build cricket.spec" at Thu Aug 20 08:35:00 UTC 2009.

 umask 022
+ cd /usr/src/packages/BUILD
+ cd cricket-1.0.5
+ rm -rf /var/tmp/cricket-root
+ exit 0
... checking for files with abuild user/group
... running 00-check-install-rpms
... installing all built rpms
Preparing packages for installation...
cricket-1.0.5-37.1
... running 01-check-debuginfo
... testing for empty debuginfo packages
... running 02-check-gcc-output
... testing for serious compiler warnings
(using /usr/lib/build/checks-data/check_gcc_output)
(using //.build.log)
... running 03-check-binary-kernel-log
... running 04-check-filelist
... checking filelist
cricket: "/etc/httpd/conf.d/cricket.conf" is not allowed anymore in SuSE Linux.
cricket-1.0.5-37.1.noarch.rpm: directories not owned by a package:
- /etc/httpd
- /etc/httpd/conf.d
System halted.

=========================================
previous errors - original lot of errors
=========================================
Preparing packages for installation...
cricket-1.0.5-33.1
warning: user cricket does not exist - using root
warning: user cricket does not exist - using root
warning: user cricket does not exist - using root
warning: group apache does not exist - using root
warning: user cricket does not exist - using root
warning: group apache does not exist - using root
warning: user cricket does not exist - using root
warning: group apache does not exist - using root
warning: user cricket does not exist - using root
warning: user cricket does not exist - using root
warning: user cricket does not exist - using root
warning: user cricket does not exist - using root
... running 01-check-debuginfo
... testing for empty debuginfo packages
... running 02-check-gcc-output
... testing for serious compiler warnings
(using /usr/lib/build/checks-data/check_gcc_output)
(using //.build.log)
... running 03-check-binary-kernel-log
... running 04-check-filelist
... checking filelist
cricket: "/etc/httpd/conf.d/cricket.conf" is not allowed anymore in SuSE Linux.
cricket: "/var/cricket" is not allowed anymore in FHS 2.2.
cricket: "/var/cricket/cache" is not allowed anymore in FHS 2.2.
cricket: "/var/cricket/config" is not allowed anymore in FHS 2.2.
cricket: "/var/cricket/data" is not allowed anymore in FHS 2.2.
cricket: "/var/cricket/etc" is not allowed anymore in FHS 2.2.
cricket: "/var/cricket/etc/cricket-conf.pl" is not allowed anymore in FHS 2.2.
cricket: "/var/cricket/etc/subtree-sets" is not allowed anymore in FHS 2.2.
cricket: "/var/cricket/log" is not allowed anymore in FHS 2.2.
cricket-1.0.5-33.1.noarch.rpm: directories not owned by a package:
- /etc/httpd
- /etc/httpd/conf.d
System halted.

===============================================================
Fixes that have worked so far:

BuildRequires: pwdutils , apache2-devel

%pre
id cricket >/dev/null 2>&1
if [ $? -ne 0 ]; then
 /usr/sbin/useradd -r -d %{_libdir}/%{name} -c "cricket id" cricket
 /usr/sbin/groupadd apache
fi

%postun
if [ $1 -eq 0 ]; then
 /usr/sbin/userdel cricket
fi

Added into cricket.spec.
- see for detail http://lists.opensuse.org/opensuse-buildservice/2009-08/msg00144.html
%define apache apache2
%define apache_libexecdir %(%{apxs} -q LIBEXECDIR)
%define apache_sysconfdir %(%{apxs} -q SYSCONFDIR)
%define apache_includedir %(%{apxs} -q INCLUDEDIR)
%define apache_serverroot %(%{apxs} -q PREFIX)
%define apache_localstatedir %(%{apxs} -q LOCALSTATEDIR)
%define apache_mmn %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN)

see http://lists.opensuse.org/opensuse-packaging/2009-08/msg00165.html
Changes to cricket.spec
- Changed entry from '/var/cricket' to '/var/lib/%{name}'
- Changed entry from '%{_var}/cricket' to '/var/lib/%{name}'

Remarked out
# /usr/sbin/useradd -c "Cricket monitoring" -u 95 -g users \
#    -s /bin/bash -m -n -r -d /var/cricket cricket 2> /dev/null || :


other blocked by
----------------
apache2, apache2-devel, apache2-prefork, apache2-utils, binutils, cyrus-sasl, cyrus-sasl-devel, gcc44, glibc, libapr-util1, libapr-util1-devel, libapr1, libapr1-devel, libdb-4_5-devel, libexpat-devel, libexpat1, libldap-2_4-2, libltdl7, libmpfr1, libncurses5, libnscd, libopenssl-devel, libopenssl0_9_8, libppl7, libppl_c2, libtool, openldap2-devel, pcre, perl, pwdutils, rpm, zlib, zlib-devel 

Other install info
==================
http://onlamp.com/pub/a/apache/2000/03/17/cricket.html?page=2
http://cricket.cc.columbia.edu/doc/beginner.html

Source Files

Filename Size Changed Actions
cricket-1.0.5-3.src.rpm 407 KB over 8 years ago Download File
cricket-1.0.5-livehead3-x86.patch 439 Bytes over 8 years ago Download File
cricket-1.0.5.tar.gz 402 KB almost 9 years ago Download File
cricket.spec 1.72 KB over 8 years ago Download File
cricket.spec.original 7.38 KB over 8 years ago Download File
original-build-log-failure.txt 16 KB over 8 years ago Download File
other.spec.examples.txt 1006 Bytes over 8 years ago Download File

Comments for home:doiggl (0)