PHP Classes
elePHPant
Icontem

rrd4sar: Render RRD graphs for SAR output from remote host

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2010-05-05 (6 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 193 All time: 7,876 This week: 889Up
Version License PHP version Categories
rrd4sar 0.1GNU General Publi...4.0Networking, Graphics, System information
Description Author

This class can be used to render rrd graphs for sar output from remote host.

It uses SSH(libssh2) to execute the sar command on a remote machine and retrieve its output.

The class uses the rrdtool to render graphs of the statistics retrieved with sar.

Picture of Praveen Kumar K S
Name: Praveen Kumar K S <contact>
Classes: 1 package by
Country: India India

Details
RRD4SAR
Description: Fetch SAR statistics for a selected day for a selected remote machine and display them graphically. Uses RRDtool (Copyright 1997-2004 by Tobias Oetiker ), SAR command authored by Sebastien Godard & PHP(libssh2).
License: Distributed under GNU GENERAL PUBLIC LICENSE - Version 3
Author: Praveen Kumar K S
Download: http://www.chakravaka.com/rrd4sar/rrd4sar.tar.gz)

    Copyright (C) 2010 Praveen Kumar K S

    This file is part RRD4SAR.

    RRD4SAR program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.


Dependencies:

1)
	Install libssh2. On RedHat flavors this can be as easy as:
		yum install libssh2
	otherwise
		it can be easily compiled from sources

2)
	Install rrdtool
		yum install rrdtool
	otherwise
		it can be easily compiled from sources

3)
	Install PHP SSH2 extension
		pecl install ssh2-beta


Install & configure:

1)
	Untar to document root of your Apache

2)
	Edit hosts.ini
	Add relevent lost details like hostname, ssh username, ssh password
	,path to `sa` files(usually it will be /var/log/sa)

	Note that section name in square brackets [] will be refered as hostname.

3)
	Edit path_to_rrdtool in rrd4sar.ini if required:
		[configs]
		sarfile_prefix=sa
		sar_base_cmd="sar -f "
		path_to_rrdtool="/usr/bin/rrdtool"

4)
	Change ownership of the current directory to Apache user. Check for Apache user in httpd.conf
		chown -R apache:apache .

5)
	From the browser call rrd4sar.php
	Select host, day from dropdown.
	Go!

- Praveen Kumar K S (praveen AT chakravaka.com)

Screenshots  
  • rrd4sar
  Files folder image Files  
File Role Description
Plain text file cls.poller.php Class rrd4sar poller class
Plain text file COPYING Lic. License
Plain text file hosts.ini Data Remote host configuration
Plain text file README Doc. Readme
Plain text file rrd4sar.ini Data rrd4sar configurations
Plain text file rrd4sar.php Example rrd4sar frontend

 Version Control Unique User Downloads Download Rankings  
 0%
Total:193
This week:0
All time:7,876
This week:889Up