Wednesday, April 27, 2011

Turn off Screen Saver via GPO

This should be done for cloud/virtual servers to save CPU/resources

User Configuration -> Policies -> Administrative Templates -> Control Panel -> Display
Set Screen Saver to disabled

Friday, April 22, 2011

Cacti

Cacti is an open source performance monitor for IT infrastructure. It will run on Linux or Windows and stands up very well against commercial equivalents. Be mindful that open source can mean lots of tinkering time. I have used Cacti for many years but was recently given an opportunity to set it up for the first time. There were a few quirks in the process I want to remember for the future to speed up with installation. This is not an exhaustive how-to doc as I was able to find everything I needed via Google searches. But it was not all in one place so I wanted to put this together.

I prefer Linux for Cacti - PHP and MySQL are significantly easier to setup

Follow Official Cacti Installation Document
http://www.cacti.net/downloads/docs/html/install_unix.html

Notes
The newest version of PHP typically does not require any of the changes from the Cacti Installation Document, but go through the checklist regardless
Some of the MySQL commands will require --password forcing a password prompt
Common issue, no graphs being created - run the poller.php command as cactiuser from the command prompt - this will generate output with errors
Go through the errors - found one of the php files did not have proper MySQL credentials
Timezone issue - FH runs in UTC, but for reading Cacti graphs, having current time is convienient

Do not change any of the settings until graphs are being populated, once that is complete, change the poller to spine and set the polling interval to 1 minutes

Spine
Follow Official Cacti Spine Installation Document - http://cacti.net/spine_install_rhlnx.php
When changing to Spine, clear the poller cache - http://www.cacti.net/downloads/docs/html/scripts.html#CLI_REBUILD_POLLER_CACHE

1 Minute Polling
Change Settings page to 1 minute and change crontab to * * * * *
Also must update data templates - http://docs.cacti.net/manual:087:3_templates.1_data_template
Step changes to 60
Heartbeat changes to 120

Import Windows Graph Templates
The bundled Windows graphs that come preinstalled are average at best, import CPU, memory, I/O, and disk graphs from Cacti Forums - http://forums.cacti.net/viewtopic.php?f=12&t=29832
The thread is many pages long - there are updated versions of the templates, find the newest post from the author and download the attachments
There are instructions on the first post
These graphs require SNMP Informant STD version

Import IIS Graph Templates
Available from Cacti Forums - http://forums.cacti.net/viewtopic.php?f=12&t=12464
Import via the GUI and add to the Windows Template

Ubuntu Menu Configuration

Ubuntu has started shipping with the close, maximize, and minimize buttons in the upper left corner of the menu bar. I cannot get used to it and prefer them on the traditional right side.

A quick How To

1 Press ALT-F2 and run gconf-editor
2 Go to apps --> metacity --> general
3 Select and right-click button_layout
4 Click Edit Key
5 Replace with menu:minimize,maximize,close
6 Click OK and it's done