Using cacti with HP Procurve 2510-24 (J9019) switch and Ubuntu

After adding my APC UPS to cacti, i wanted to see if i can do the same for my HP 2510-24 switch (J9019).
The information i managed to collect for the HP switch is :

  • CPU Usage
  • Memory Usage
  • MAC Count
  • Port traffic

OID’s used :

CPU Usage – .1.3.6.1.4.1.11.2.14.11.5.1.9.6.1.0
MAC Count – .1.3.6.1.4.1.11.2.14.11.5.1.9.12.1.0
Memory total – .1.3.6.1.4.1.11.2.14.11.5.1.1.2.2.1.1.5.1
Memory free – .1.3.6.1.4.1.11.2.14.11.5.1.1.2.2.1.1.6.1
Memory used – .1.3.6.1.4.1.11.2.14.11.5.1.1.2.2.1.1.7.1

Host template for HP Procurve 2510-24

Using Cacti with APC UPS and Ubuntu

Tested on :
Ubuntu 10.10 Server x64
Cacti 0.8.7g with NET-SNMP 5.x and RRDTool 1.4.x
APC UPS BR1500I with USB connection and apcupsd (3.14.8-2) package.
The original forum topic is here.
Cacti APC UPS image
You need to have apcupsd package installed, along with cacti.
Cacti can monitor my APC UPS using two scripts that rely on the information provided by apcaccess command. Continue reading

XP SP2 and WPA2 Wireless encryption

WindowsXP-KB893357-v2-x86-ENUIn order for Windows XP SP2 computers to join wireless networks using WPA2 you must install the following update : KB893357 from Microsoft (validation required), or you can get it from here, without validation.

Using Cacti with DD-WRT and Ubuntu

Tested on :
Ubuntu Server 10.10 x64
DD-WRT v24-sp2 (08/07/10) std running on TP-Link TL-WR1043ND
Cacti 0.8.7g with NET-SNMP 5.x and RRDTool 1.4.x

After installing cacti (follow this tutorial) , i used this template.
Original template location is here .
To use the template you need to upload theese files to :
ddwrt_assoc_clients.xml to resource/snmp_queries/
ddwrt_nmb_wireless_clients.php to scripts/

From cacti menu use Import templates option under Import / Export section in Console menu for the template file : ddv24 by odmon.com.xml

(original forum thread).

Static DHCP on CISCO IOS

After replacing a normal router with a Cisco 881K, i had to re-assign static addresses to a couple of printers (actually one – because the other has a LCD panel and i can manually enter it’s IP address).

The problem was that Cisco documentation states that after creating a dhcp pool , you just need to enter the IP address and the client identifier. Normally the identifier is the MAC address concatenated with a number representing the Ethernet media type. In my particular case, i had to use only the MAC address, in order for the printer to get the assigned IP.
"DHCP clients require client identifiers. The unique identification of the client is specified in dotted hexadecimal notation, for example, 01b7.0813.8811.66, where 01 represents the Ethernet media type, and the rest is the MAC address for the device".

Steps : Continue reading

Transfer files over SSH to Iphone using USB

In order to SSH to my Iphone i’ve tried a few tutorials until i found one working. So here is how I did and my setup :

Iphone : 3GS jailbroken
You must have OpenSSH installed.
OS : 3.1.3
Itunes version : 9
WinSCP
Windows XP / 7
Continue reading

Proxy only for certain sites

Your public fixed IP banned on a few sites, or you don’t want your real IP to be seen on themĀ  ? Normally by using a proxy you can bypass this problem.

But, by adding a proxy in your IE or Firefox configuration you direct all your HTTP/HTTPS/FTP/SOCKS traffic through the proxy, something you don’t need. Remember, there are only a few websites that need this. ( Proxies are slower ).

Here is a fix for Internet Explore and Firefox ( under Windows ). We need to create a PAC file (Proxy Auto Configuration) and then instruct IE / Firefox to use it.
Continue reading