Technology Insights

How To Rotate The Cacti Logs File: cacti.log

Cacti is an open source tool that polls network devices and provides a web based interface to view historical data about these devices. It is a really great tool to monitor disk usage, network traffic, and pretty much anything else you can think of. When installing cacti it is easy to forget about the log that cacti generates and over time the log can grow in size especially if your configuration includes a logging level of DEBUG. Below I describe how to rotate the cacti log as well as turn down the logging level to LOW on a CentOS 5 server.

First lets set up logrotate to rotate the cacti log.

1. Install logrotate: yum install logrotate
2. Create Cacti config: vi /etc/logrotate.d/cacti
Add the below contents to the new file
/var/www/html/cacti/log/cacti.log {
# keep two weeks of versions online
rotate 14
# rotate the log each day
# compress the logs
# create new file with the correct user/group attributes
create 644 cactiuser cactiuser
# add a YYYYMMDD extension instead of a number
Make sure the path is the correct location for your cacti.log file.
3. Run logrotate: logrotate -f /etc/logrotate.conf

Technology Insights

Use One Wireless Keyboard And Mouse On Multiple Computers

This can be done using open source software called Synergy. This application allows you to connect the keyboard and mouse to one computer which acts as a server for those devices. The setup is intended to have multiple computers connected to multiple displays but only to have one keyboard and mouse. This is not to be confused with the use of KVM (Keyboard-Video-Mouse) switches which allow someone to have one monitor with multiple PC’s connected to it and via a button or dial you can switch between them. KVM switches have been used to connected only the keyboard and mouse while still having multiple displays. Synergy is more for moving between the devices without having to click a button. The software has not been developed on for a long time however there is support for Windows XP and Unix/Linux. I ended up not going with the Synergy solution because I decided I could just manage the Linux servers at my houseĀ from a shell but wanted to write about it in case others had the need to share a wireless keyboard and mouse in thisĀ scenario. Read below about installing Synergy.

Technology Insights

Trillian Secure ICQ And AIM Messages With Off-The-Record Messaging

One thing most people do not realize is the fact that sending Instant Messages over the Internet is not secure. Every time you speak with someone you risk the chance of someone listening in on those conversations. Especially now a days with so many wireless networks hackers can easily join networks and grab all of the data off those networks. There is any easy way to encrypt your AOL Instant Messenger and ICQ by using a plugin for Trillian. You can also encrypt either one if not using Trillian which is briefly discussed below. Follow these steps to install Off-The-Record Proxy and configure Trillian to use it to encrypt your messages to other users who also have the software installed. The below steps were performed on a laptop running Windows XP Professional 32-Bit.

Technology Insights

Add CSS Per Page With Joomla – Page Class Suffix Not Working

I think with the template I have installed for Joomla that the Page Class Suffix is broken for some reason so I cannot easily add CSS changes that way. I was amazed at how hard it was for me to locate how to do this. I searched forever on Google and could not find the correct answer as most people discussed using Page Class Suffix which again was not an option for me. Anyhow when it came down to it I took the following steps to do this and was really surprised at how easy it was.

In Extensions >> Template Manager you can assign pages to different templates with Joomla. So the easiest solution for me was to copy my current template over to a new directory as described below.

Technology Insights

WP Block Admin Add Author To Have Admin Interface Access

I have a couple people who write articles from time to time sand after installing WP Block Admin they were unable to get to wp-admin anymore. Since we are only using three user levels on this site which are Admin, Author, and Subscriber. On install WP Block Admin is set to only allow Admin and Editor access to /wp-admin so you have to modify wp-content/plugins/wp-block-admin/wp-block-admin.php. Find the line like this:
$wpba_required_capability = ‘edit_others_posts’;

Change it to this: