Archive for the “Uncategorized” Category

There have been many stories for the last 2 days about a stack overflow vulnerability in nginx. Luckily NGINX put out a patch for it yesterday. If you subscribe to their channel, the update is simple yum update.

# yum update nginx

# nginx -v
nginx version: nginx/1.4.1

Further Reading:

 

Comments No Comments »

1. Download the latest version of cacti from the dag repository.

# wget http://packages.sw.be/cacti/cacti-0.8.7g-2.el5.rf.noarch.rpm

2. install cacti

# rpm -Uvh cacti-0.8.7g-2.el5.rf.noarch.rpm(this will restart the apache process)

3. Create the MySQL database:

# mysql
mysql> create database cactidb
mysql> GRANT ALL ON cactidb.* TO cactiadmin@localhost IDENTIFIED BY ‘$PASSWORD’;
mysql> flush privileges;

4. Import the default cacti database:

# mysql cactidb < /var/www/cacti/cacti.sql

5. Edit include/config.php and specify the database type, name, host, user and password for your Cacti configuration.

# vi /var/www/cacti/include/config.php
$database_type = “mysql”;$database_default = “cactidb”;$database_hostname = “localhost”;$database_username = “cactiadmin”;$database_password = “$PASSWORD”;$database_port = “3306″;

6. Set the appropriate permissions on cacti’s directories for graph/log generation. You should execute these commands from inside cacti’s directory to change the permissions.

# chown -R cacti /var/www/cacti/rra/ /var/www/cacti/log

7. Update snmpd.conf to allow cacti to pull info and restart snmpd

# vi /etc/snmp/snmpd.conf
view    systemview    included   .1.3.6.1.2.1.0view    systemview    included   .1.3.6.1.2.1.25.1.0view    systemview    included   .1
#/etc/init.d/snmpd restart

8. Update cacti vhost to allow IP addresses and reload apache.

# vi /etc/httpd/conf.d/cacti.conf

Allow from 127.0.0.1 $YOUR_IP

# /etc/init.d/httpd reload

9. Add a line to your /etc/crontab file similar to:

# crontab -e
*/5 * * * * cacti php /var/www/cacti/poller.php > /dev/null 2>&1

10. Finish the configuration

Default pageclick next
Ensure “new install” is selected.click next
All the defaults should be green. If there are a bunch of read, ensure that it is looking in the right place for the files.Click Next
Login with admin admin and set the password to ‘$PASSWORD’

Comments No Comments »

Shows the controls, indicators, and connectors located on the system’s back panel.

1 center PCI riser (slot 1) 2 left PCI riser (slot 2) 3 left PCI riser (slot 3)
4 power supplies (2) 5 system identification button 6 system status indicator
7 system status indicator connector 8 NIC2 connector 9 NIC1 connector
10 USB connectors (2) 11 video connector 12 serial connector
13 remote access controller (optional)

 

Comments No Comments »