Category Archives: Servers

Cacti Server

This is a simple “how to” to install and monitor a Cisco device.

Installation:

Install dependencies:

sudo apt-get install php5 php5-gd php5-mysql

Install Cacti:

sudo apt-get install cacti-spine

 

Configuring Cacti:

Browse to http://<IP ADDRESS>/cacti

Hit next throughout the next few screens and your configuration is complete.

Here you need to enter username and password as admin/admin and click login

 

Configuring Cisco Routers:

On the Cisco Devices:

cisco(config)# snmp-server community Cacti ro

Optional Commands:

snmp-server location Kansas City, KS
snmp-server contact John Doe
snmp-server chassis-id Cisco Router

 

Adding Devices:

Under Management select Devices on the left, then “Create devices”.

1st Step

On the right side select Add across from Devices.

2nd Step

Under General Host Options fill in a Description and the fully qualified Hostname or IP address. Then under SNMP Options, in the SNMP Version choose Version 2 or Version 3 of SNMP (more secure). In SNMP Community type what you configured earlier on the router, again mine is “TEST”. Now click Create.

3rd Step

Once you have created this device it will now pull in your SNMP information such as device uptime, location, and contact info. Now in the top right click “Create Graphs for this Host”. Under Data Query a list of interfaces with statistics available via SNMP is shown. Select an interface that you wish to monitor and check the box next to it on the right. Then click Create.

To add the source to a graph, click Default Tree in the center under Graph Trees.

4th Step

Click Add all the way on the right from Tree Items.

5th Step

Under the Tree Items section, for Tree Item Type select Host in the dropdown list. For the Host item select the descriptive name you previously chose for your router. Graphic Template should be the default option for Graph Grouping Style, but just confirm it. Then click Create.

6th Step

When new host is successfully added it should be listed with tree items above. Click on the Graphs Tab and then the descriptive host name on the left bar and you should see your graphs.  The data may take a while to populate and this may take up to 10 to 15 minutes for you to see actual data.  To analyze the data you can click anywhere on the graph to get a better insight as to the information shown.

7th Step

Enjoy and if you have any questions comment or send me a message on the contact me page

Sources & Thanks to these sites:

https://help.ubuntu.com/community/Cacti?action=show&redirect=CactiHowTo
http://aaronwalrath.wordpress.com/2010/05/23/monitor-cisco-routers-with-cacti-and-snmp/

 

NTP Server

Setting up this NTP server on a linux box is one of the simplest services to install. Here is the walkthrough:

On a linux server:

apt-get install ntp
nano /etc/ntp.conf
Restart ntpd with /etc/init.d/ntp-server restart

On a cisco device:

ntp server <IP OF SERVER>

This is how to setup the cisco device to the right timezone and recalculate for daylight savings time (this is for the America/Central TZ):

clock timezone CST -6 0
clock summer-time CDT recurring last Sun Mar 2:00 last Sun Oct 2:00

Enjoy and if you have any questions comment or send me a message on the contact me page

Source:
http://support.ntp.org/bin/view/Support/InstallingNTP

Error 0xC004C020 In Windows 2008 r2

0xC004C020 Error:

0xC004C020 error means the Activation key has exceeded its limit. If you have activated the server once, it is expected behavior.

1. Run the command “slui 4” from the Elevated Command Prompt.
2. Please choose the nearest location where you live, click next.
3. Call the Activation Department with the telephone number provided by the last step.
4. Provided them with the Installation ID and they generate a corresponding Confirmation ID.
5. Enter the Confirmation ID.

You will be able to activate the Windows Server 2008 successfully, and remove that pesky error 0xC004C02.

As always leave me a comment or contact me via the contact page.

Updating Splunk (version 4.2.4)

To update your Splunk server the process takes no more than 15 minutes. Here is the process:

Back up the server as always and if you did the installation as I described in my previous post this setup will work perfectly:

wget -O splunk-4.2.4-110225-Linux-x86_64.tgz 'http://www.splunk.com/index.php/download_track?file=4.2.4/splunk/linux/splunk-4.2.4-110225-Linux-x86_64.tgz&ac=&wget=true&name=wget&typed=releases'

/opt/splunk/bin/splunk stop

cd /home/user

mv splunk-4.1.7-95063-Linux-x86_64.tgz /opt/

tar zxfp splunk-4.1.7-95063-Linux-x86_64.tgz

/opt/splunk/bin/splunk start



After that just agree to the terms and test out the new functions and features of 4.2.4. Enjoy!

Windows Clock/NTP Sync

For awhile I noticed that my desktop’s clock was off by about an hour and some and this finally bugged me enough to find the cure. Essentially it was my active directory server’s clock was off as well and that’s where the desktop’s clock pulls its time from. So with a few google hits I found how to force a refresh of the clock. In command line simply punch in:

w32tm /resync

Unfortunately my Windows 2008 R2 server only spit out this error after that:

C:\Users\Administrator> w32tm /resync
Sending resync command to local computer
The computer did not resync because no time data was available.

After googling around I then found a series of commands to sync to another NTP server:

C:\>netdom /query fsmo
C:\>net stop w32time
C:\> w32tm /config /syncfromflags:manual /manualpeerlist:"0.pool.ntp.org, 1.pool.ntp.org, 2.pool.ntp.org"
C:\>w32tm /config /reliable:yes
C:\>net start w32time
C:\>w32tm /query /configuration

Following this all clocks were running on time for once.

Sources:

http://defaultreasoning.wordpress.com/2009/11/16/synchronize-time-with-external-ntp-server-on-windows-server-2008-r2/
http://www.howtogeek.com/howto/windows-vista/sync-your-clock-with-internet-time-servers-from-the-vista-command-prompt/