Installation
yum install httpd rrdtool rrdtool-perlDo not use rrdtool-1.7.0-4, it has a bug, use older or newer RRDTool versions.
vi /opt/freeware/etc/httpd/conf/httpd.confEnable CGI (it is hashed by default):
<IfModule mpm_prefork_module> LoadModule cgi_module /opt/freeware/lib/httpd/modules/mod_cgi.so </IfModule>Place there STOR2RRD cfg (it supposes that install home will be in /home/stor2rrd/stor2rrd):
AddHandler cgi-script .sh # # STOR2RRD # Alias /stor2rrd "/home/stor2rrd/stor2rrd/www/" <Directory "/home/stor2rrd/stor2rrd/www/"> AllowOverride AuthConfig FileInfo Options Indexes FollowSymLinks Require all granted </Directory> # CGI-BIN ScriptAlias /stor2rrd-cgi/ "/home/stor2rrd/stor2rrd/stor2rrd-cgi/" <Directory "/home/stor2rrd/stor2rrd/stor2rrd-cgi"> AllowOverride AuthConfig FileInfo Options +ExecCGI +SymLinksIfOwnerMatch Require all granted SetHandler cgi-script </Directory>Apache restart:
/opt/freeware/sbin/apachectl restart
useradd -c "STOR2RRD user" -m stor2rrd chdev -l sys0 -a maxuproc=2000 chuser nofiles=32768 data=-1 stack=-1 rss=-1 stor2rrd chuser data=-1 stack=-1 rss=-1 apache
# su - stor2rrd tar xvf stor2rrd-7.XX.tar cd stor2rrd-7.XX ./install.sh
cd /home/stor2rrd/stor2rrd . etc/stor2rrd.cfg; $PERL bin/perl_modules_check.plIF any problem then adjust following variables in etc/stor2rd.cfg
PERL=/usr/bin/perl PERL5LIB=/home/stor2rrd/stor2rrd/bin:/home/stor2rrd/stor2rrd/lib:/opt/freeware/lib/perl5/5.30/vendor_perl:/opt/freeware/lib64/perl5/5.30/vendor_perl
# su - stor2rrd umask 022 cd /home/stor2rrd/stor2rrd cp -p html/.htaccess www cp -p html/.htaccess stor2rrd-cgi
http://<your server IP/hostname>/stor2rrd/