ganglia-logtailer / ganglia-logtailer.spec

Name:           ganglia-logtailer
Version:        1.2
Release:        1%{?dist}
Summary:        Framework to crunch data from logfiles and send using gmetric.


Group:         Applications/Internet 
License:       GPL2+
URL:           http://bitbucket.org/maplebed/ganglia-logtailer/overview/
Source0:       %{name}.tar.gz 
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: python-devel
Requires:     ganglia-gmond

%description
ganglia-logtailer is a  Many metrics associated with ganglia and gmetric
plugins are rather easy to collect; you poll the relevant application for a
value and report it.  Examples are asking MySQL for the number of questions and
calculating queries per second, or asking iostat for the percentage disk I/O
currently being used.  However, there are a large number of applications out
there that don't support being queried for interesting data, but do provide a
log file which, when properly parsed, yields the interesting data we desire.
An example of the latter category is Apache, which does not furnish any
interface for measuring queries per second, yet has a log file allowing you to
count how many queries come in over a specific time period.
 
ganglia-logtailer is designed to make it easy to parse any log file, pull out
the information you desire, and plug it into ganglia to make pretty graphs.

%prep
%setup -q -n %{name}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
install -d -m 755 $RPM_BUILD_ROOT/var/lib/ganglia-logtailer
install -d -m 755 $RPM_BUILD_ROOT/var/log/ganglia-logtailer


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%{_sbindir}/ganglia-logtailer
%{_datadir}/%{name}
%dir %{_localstatedir}/lib/%{name}
%dir %{_localstatedir}/log/%{name}
%doc debian/README debian/BUGS debian/copyright



%changelog
* Wed Mar 20 2010 Paul Nasrat <pnasrat@googlemail.com> - 1.2-1
- Initial version
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.