Loading

Tuesday, February 2, 2010

Preview Your Website in Different Browsers and Operating Systems

From browsershots.org:
Browsershots makes screenshots of your web design in different browsers. It is a free open-source online service created by Johann C. Rocholl. When you submit your web address, it will be added to the job queue. A number of distributed computers will open your website in their browser. Then they will make screenshots and upload them to the central server here.
Just go to browsershots.org and specify which OS/browser combinations to use.

Supported OSes
  • Linux
  • Windows
  • Mac OS
  • BSD
  • Gecko
  • KHTML/WebKit
Supported Browsers
  • Firefox
  • Internet Explorer
  • Google Chrome
  • Opera
  • Netscape
Misc. Options
  • Screen size
  • Color depth
  • Javascript
  • Java
  • Flash

Examples from browsershots.org:

MSIE 8.0 / Windows XP

Firefox 3.5.7 / Ubuntu 9.10 (Karmic Koala)
for http://www.powercram.com/

Free Network Monitoring Tools from SolarWinds

  • SolarWinds Free Network Config Generator - quickly and easily configure VLANs and other advanced network device features without ever opening the CLI!
  • SolarWinds Free TFTP Server - upload and download executable images and configurations to network devices - our most popular free network monitoring tool!
  • WMI Monitor - monitor your Windows® apps and servers in real time, using built-in, community-sourced, and customizable application templates!
  • IP Address Tracker - scan, track, and consolidate your IP address information in one easy place, saving you time and eliminating errors (and headaches)!
  • IP SLA Monitor - quickly troubleshoot network slowdowns between sites and easily understand device-to-device performance using sophisticated Cisco® IP SLA operations.
  • Free Kiwi Syslog Server - receive, log, display, and forward syslog messages from network devices with this easy-to-use Syslog Server.
  • Free Kiwi CatTools - simplify daily management tasks with the ability to manage and backup network configurations.
  • VM Monitor - continuously monitor a VMware® ESX Server and its virtual machines with at-a-glance virtualization health statistics.
  • SolarWinds Free Real-time NetFlow Analyzer – capture and analyze up to one hour of NetFlow data to see what types of traffic are on your network, where it’s coming from, & where it’s going.
  • SolarWinds Free Exchange Monitor – continuously monitor Exchange and get real-time insight into services, mail queue sizes, and host server health with this clever desktop dashboard.
  • SolarWinds Free NetFlow Configurator - configure NetFlow v5 via SNMP on supported Cisco® devices - a perfect complement to Orion NetFlow Traffic Analyzer and our free Real-time NetFlow Analyzer tool!
  • SolarWinds Free Advanced Subnet Calculator - compute addresses for IP subnets - another perennial favorite in our suite of free network monitoring tools!
  • SolarWinds Free Wake-On-LAN - remotely power up network PCs

Monday, February 1, 2010

Cacti Plugins

The advantages of the Cacti are having many plugins that is provided by a wide community of Cactiusers.org.

List of Cacti plugins:
  • Boost: To increase Cacti performance
  • Clogs: To add a view tab to view  Cacti log
  • Discovery: auto discovery to detect the SNMP devices on the network with diferent subnet.
  • Docs: To create a document in Cacti
  • Flowviewer: Viewer to see the flow of data dicapture by netflow on cisco router.
  • Host Info: Displays information about the server Cacti’s version
  • Login Mod: To change the Cacti login page
  • Mac Track: track a MAC Address and Port on the device to enable the SNMP
  • Monitor: monitors the condition of up/down from the monitored device, is also accompanied by sound alerts.
  • Ntop: shows ntop application on Cacti tab
  • Realtime: Displaying graphs in realtime Cacti every 5 seconds.
  • Router Configs: backup display configuration and router
  • Settings: Settings and configure Cacti
  • SSL: SSL access with Cacti
  • Syslog: Displays syslog Cacti database
  • Thold: Showing up down from the host
  • Tools: Tool to check the service HTTP, FTP, POP3 and SMTP
  • Update: Showing all the plugins installed and check for updates
CactiEZ is a self installing Linux Distribution based off CentOS that sets up and configures a customized Cacti install. Everything is designed to be completely automated and working directly out of the box. This compact distro is loaded with extra features such as Syslog and Netflow data collection, Weathermaps, Reports, Auto Discovery, Router Config backup, Nagios, and much more! Both 32 Bit and 64 Bit installations are possible from the same CD.  The CactiEZ ISO or torrent can be downloaded here.

Sunday, January 31, 2010

tcping for Linux

tcping does a TCP connect to the given ip/port combination. The user can specify a timeout in seconds. This is useful in shell scripts running in firewalled environments. Often SYNs are just being dropped by firewalls, thus connection establishment will be retried several times (for minutes) until a TCP timeout is reached. With tcping it is possible to check first if the desired port is reachable and then start connection establishment.

Exit codes:

  • -1: an error occured.
  • 0: port is open
  • 1: port is closed
  • 2: user timeout
Syntax: tcping [-q] [-t timeout_sec] [-u timeout_usec]

  • -q : quiet mode, do not output anything (except error messages)
  • -t : timeout in seconds
  • -u : timeout in microseconds
Download tcping for Linux:

tcping runs under Linux, OpenBSD, Solaris 7/8/9, Solaris 2.6, AIX, and maybe others. Just try.

Ping Over TCP with tcping.exe in Windows

tcping.exe is a small console application that operates similarly to 'ping', however it works over a tcp port. Works with all versions of Windows - Windows 7, Windows Vista, Windows XP, Windows 2008, Windows 2003.

Download tcping.exe.

tcping example:
C:\>tcping powercram.com

Probing 216.239.36.21:80/tcp - Port is open - time=26.241ms
Probing 216.239.36.21:80/tcp - Port is open - time=20.022ms
Probing 216.239.36.21:80/tcp - Port is open - time=23.272ms
Probing 216.239.36.21:80/tcp - Port is open - time=24.594ms

Ping statistics for 216.239.36.21:80
     4 probes sent.
     4 successful, 0 failed.
Approximate trip times in milli-seconds:
     Minimum = 20.022ms, Maximum = 26.241ms, Average = 23.532ms

tcping options
C:\>tcping
--------------------------------------------------------------
tcping.exe by Eli Fulkerson
Please see http://www.elifulkerson.com/projects/ for updates.
--------------------------------------------------------------
Usage: tcping [-t] [-d] [-i interval] [-n times] server-address [server-port]

         -t   : ping continuously until stopped via control-c
         -n 5 : for instance, send 5 pings
         -i 5 : for instance, ping every 5 seconds
         -d   : include date and time on each line
         -b 1 : enable beeps (1 for on-down, 2 for on-up,
                              3 for on-change, 4 for always)

        If you don't pass server-port, it defaults to 80.


Platform:
  • Win32 Console. Tested on XP, Vista.
Language:
  • C++ - Makefile included for Visual Studio.
License:

Wednesday, January 27, 2010

TIGER SHARK SEEN OFF AUSTRALIAN COAST


Capture Screenshot Image on BlackBerry (Curve, Storm, Tour, etc.)

Capture It is a FREE application designed to help Blackberry users and developers share a picture of their screen with ease. Many bloggers use screenshots to review applications, people showing off their new home screens, and developers wanting to show their application to consumers online. Capture It allows you to take a screen shot, and save a jpeg to your device. If your BlackBerry has a memory card inserted, the capture will be saved there. If no memory card is available it will be saved to the device memory. You can download Capture It OTA (http://m.thetechmogul.com) or load it via Desktop Manager (Desktop (alx) 1.3).  The application runs on all Blackberry devices with OS 4.3 or higher.

Capture It examples:



See also Capture Screenshot Image on iPhone (3G) and iPod Touch 2.0 Without Screen Shot Utility - HowTo

Capture Screenshot Image on iPhone (3G) and iPod Touch 2.0 Without Screen Shot Utility - HowTo

To  take a screenshot or capture the screen image in iPhone 2.0, iPhone 3G, and iPod Touch (2.0 and later), just press the Home button and Sleep/Wake button (On/Off button at the top of the mobile device) simultaneously.

The Apple device screen will flash and an image will be automatically saved and stored in the iPhone or iPod Touch Camera Roll or photo album.  Just click Photos to see the screenshot.  From there you could email to yourself of someone you love (or hate).


Tuesday, January 26, 2010

Multi-CPU Utilization Graphing in Cacti

The past couple days I've been installing and configuring a new version of Cacti (0.8.7c) from a CactiEZ v0.6 installation. I've been using Cacti for years now and love what it does, however I've found that tweaking it is sometimes problematic.  Since I may go several months or a year or more between tweaking my install I have to rely heavily on the community.  While the Cacti forums are great they often have an overload of information and even out-dated information.

One aspect I've tried to get working before in Cacti is multi-CPU graphing, but I've never had great success.  Today though I found a great post by Peter at goldfisch.at on the subject - along with some other pretty good gems as well, such as extending Cacti by adding a 5-year graph, configuring Cacti to gather disk I/O and using advanced ping.  He had a great, concise set of steps to download the correct templates (which I've done before) and get them working correctly (this is where I've had trouble).  I'm going to list those steps with a little tweaking of my own mainly so I have them as a ready reference so somewhere down the road I can do this again, but the credit is all his.  Thanks Peter.

This originates from the Cacti forums post "Multi CPU Utilization Graph" which has links to the templates referenced here.  In fact, you may want to go there to find the latest and greatest on this topic.

Begin by downloading the template(s) you need (these links are all from the thread above which were the most current at the time of this post):
Next, import the template(s) in Cacti (Import Templates under Import/Export on the Console tab).  Before creating graphs for devices using any of these new templates they need to be modified a bit, otherwise they may report incorrect data.  To correct this issue click on Graph Management / CDEFs. You should see Average All data sources - X sources (X depending on your setup and the template(s) you imported).  If for some reason you don't see these listed type average in the search field and click Go.



In turn click on each of the Average All data sources - X sources and perform the following:
  • Delete the current CDEF items, such as, "Item #1 Custom String: a,b,+,2,/"
  • Add the following three items:
    • Item #1 - Special Data Source: ALL_DATA_SOURCES_NODUPS (AKA "All Data Sources (Don't Include Duplicates))
    • Item #2 - Custom String: 2/4/8 (depending on X above)
    • Item #3 - Operator: /
Each should like something like this:



Now you can create the graphs for each device.  Click Devices / <Host Name> / create graphs for this host.  Under Graph Templates for the selected host click the drop-down box next to create and select "Host MIB - Multi CPU Utilization on X Processor Box" then click Create. On the next screen you will be asked the Index Type, Index Value and Output Type ID - you don't need to enter any values, just click Create.  You aren't done yet - one more important step.

Click Graph Management and locate the graph you just created.  Under Supplemental Graph Template Data select the CPUs you wish to graph in your multi-CPU graph. This is most likely HOSTNAME - CPU Utilization - CPU0 (cpu), HOSTNAME - CPU Utilization - CPU1 (cpu) and so on ...



Now that that's done you should have nice multi-CPU graphs.  You could even delete any previously created CPU utilization graphs, but be careful not to delete the data-sources because the multi-cpu-graph needs these sources.  The multi-CPU graphs will even read data from existing sources.

Cacti multi-CPU utilization graph showing device with two CPUs graphed over the past 24 hours and 7 days:



Cacti multi-CPU utilization graph showing device with eight CPUs graphed over the past month and year:


Upgrade Cacti on CactiEZ Installation

After installing CactiEZ v0.6 (as a VM on Windows 2008 Hyper-V) which includes Cacti 0.8.7c I wanted to upgrade to the latest version of Cacti (0.8.7e as of this post). However I was not able to locate any good directions. Jimmy Conner who put together CactiEZ said to follow the directions for upgrading Cacti in the Cacti manual, but they weren't exactly easy to follow. So, after mucking through the upgrade I thought I'd put down my notes.  Here they are.
  • Backup the existing Cacti database (I wasn't too worried about this as I upgraded a new installation):
mysqldump -l --add-drop-table cacti > mysql.cacti
Note: You will probably have to specify the -u and -p flags for the MySQL username and password. This user must have permission to read from Cacti's database or you will end up with an empty backup.
  • Backup the existing Cacti directory (again, since I have a new installation I wasn't too worried about this).  The root for Cacti in CactiEZ is /var/www/html so I executed all the following commands from the /var/www directory:
mv html cacti_backup
  • Download the latest Cacti tarball (0.8.7e as of this writing):

    wget http://www.cacti.net/downloads/cacti-0.8.7e.tar.gz

  • Extract the Cacti tarball.
tar xzvf cacti-0.8.7e.tar.gz
  • Rename the new Cacti directory to match the old one.
mv cacti-0.8.7e html
  • Edit include/config.php and specify the MySQL user, password and database for your Cacti configuration.

    vi html/include/config.php

    Default CactiEZ include/config.php configuration (vi cacti_backup/include/config.php to view your current config if necessary):
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "CactiMadeEZ";

/* Default session name - Session name must contain alpha characters */
$cacti_session_name = "CactiEZ";
  • Copy the *.rrd files from the old Cacti directory.
cp cacti_backup/rra/* html/rra/
  • Copy any relevant custom scripts from the old Cacti directory. Some script are updated between versions. Therefore, make sure you only over write if the scripts either don't exist or are newer than the distribution's.
cp -u cacti_backup/scripts/* html/scripts/
  • Copy any relevant custom resource XML files from the old Cacti directory. Some resource XML files are updated between versions. Therefore, make sure you only over write if the XML files either don't exist or are newer than the distribution's.
cp -u -R cacti_backup/resource/* html/resource/
  • 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 cactiuser rra/ log/
(Enter a valid username for cactiuser, this user will also be used in the next step for data gathering.)
  • Finally, point your web browser to:

    http://your-server/

    Follow the on-screen instructions so your database can be updated to the new version.
Wait, there's more. . .

Now we need to download and install the Cacti Official Patches [0.8.7e].  You may want to check the previous link for the latest. NOTE: download and execute these from /var/www/html which is the default root directory for Cacti on CactiEZ.
wget http://www.cacti.net/downloads/patches/0.8.7e/cli_add_graph.patch
wget http://www.cacti.net/downloads/patches/0.8.7e/snmp_invalid_response.patch
wget http://www.cacti.net/downloads/patches/0.8.7e/template_duplication.patch
wget http://www.cacti.net/downloads/patches/0.8.7e/fix_icmp_on_windows_iis_servers.patch
wget http://www.cacti.net/downloads/patches/0.8.7e/cross_site_fix.patch
patch -p1 -N < cli_add_graph.patch
patch -p1 -N < snmp_invalid_response.patch
patch -p1 -N < template_duplication.patch
patch -p1 -N < fix_icmp_on_windows_iis_servers.patch
patch -p1 -N < cross_site_fix.patch

NOTE: While this upgrade works fine to upgrade Cacti itself you will have to upgrade other CactiEZ components for them to work properly, such as THold, Monitor, Discover, WeatherMap, MACTrack and the Plugin Architecture.  For now you are on your own for those. . .

See Also