PHP Classes

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    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 207 All time: 8,401 This week: 524Up
Version License PHP version Categories
rrd4sar 0.1GNU General Publi...4.0Networking, Graphics, System information


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
Age: 45
All time rank: 4116283 in India India
Week rank: 286 Up17 in India India Up


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: 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 <>. 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

  • 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  
This week:0
All time:8,401
This week:524Up