Friday, July 31, 2009

Monitoring Hardware and Software PC Client with OCS Inventory

OCS inventory is an open source aplikasi webbase which can use to monitoring computer, hardware and sofware inded, this for referencies http://wiki.ocsinventory-ng.org/index.php/Main_Page, need 1 PC as server for OCS Inventory Server.

Here Step By Step Installation

I use Ubuntu as Server, and windows xp as clients

download OCSNG_UNIX_SERVER-1.02.1.tar.gz on its website then extract

$tar -xzvf OCSNG_UNIX_SERVER-1.02.1.tar.gz

install needed module:

$sudo apt-get install libxml-simple-perl

$sudo apt-get install libcompress-zlib-perl

$sudo apt-get install libdbi-perl

$sudo apt-get install libdbd-mysql-perl

$sudo apt-get install libapache-dbi-perl

$sudo apt-get install libnet-ip-perl

$sudo apt-get install libsoap-lite-perl

$sudo apt-get install php5-gd

go into OCSNG_UNIX_SERVER-1.02.1, then run

$sudo ./setup.sh

follow instruction with your server specification, then restart apache

$sudo /etc/init.d/apache2 restart

go into ocsinventory-reports/ocsreports, then changefile dbconfig.inc.php, put your mysql user pass, open your browser, go to address "http://localhost/ocereports akan muncul tampilan seperti ini"

click send, will appear verification, then klik Submit Query

Click link "Click Here to Insert This Page"

Then login with user:admin password:admin

done


Setting Internet GPRS trought bluetooth with HP as modem

Needed:

  1. Handphone with bluetooth(I use K790i with bluetooth address 00:18:13:93:02:34).

  2. SIM card for internet connection(I use Indosat Im3).

  3. Bluetooth.

  4. Computer.

Sistem Operation:

  1. Ubuntu 9.04 Jaunty Jackalope

Step By Step Installation:

  1. Turn On Your Computer go into ubuntu gutsy gibbon.

  2. Connect bluetooth to your Computer, wait few moment until icon bluetooth show on tray icon, and turn on your bluetooth hp.

  3. Do pairing from your phone(scan and add to my device,usually'll will ask autentikasi no, same verification number between phone and computer).

  4. Go to gnome-terminal(Application>Accessories>Terminal).

  5. Enter this command on your console terminal:

    • hcitool scan

Fungsi : get bluetooth address.

Appear:

Scanning …

00:18:13:93:02:34 Venom

    • sdptool search DUN

Fungsi : find location dial up hardware access network via bluetooth.

Appear :

Inquiring …

Searching for DUN on 00:18:13:93:02:34 …

Service Name: Dial-up Networking

Service RecHandle: 0×10001

Service Class ID List:

“Dialup Networking” (0×1103)

“Generic Networking” (0×1201)

Protocol Descriptor List:

“L2CAP” (0×0100)

“RFCOMM” (0×0003)

Channel: 1

Profile Descriptor List:

“Dialup Networking” (0×1103)

Version: 0×0100

    • sudo gedit /etc/bluetooth/rfcomm.conf

Fungsi : edit rfcomm.conf configuration

Edit!!! :

rfcomm0 {

bind yes;

device 00:18:13:93:02:34;

channel 1;

comment “Bluetooth Modem”;

}

    • sudo rfcomm bind 0 00:18:13:93:02:34 1

Fungsi : Do binding hardware rfcomm to 0 on channel 1

    • rfcomm

Fungsi : See binding

Muncul :

rfcomm0: 00:18:13:93:02:34 channel 1 clean

    • sudo gedit /etc/wvdial.conf

Fungsi : Edit your wvdial configuration

Appear :

[Dialer Defaults]

Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

Baud = 460800

Modem = /dev/rfcomm0

Password = indosat@durasi

Username = indosat@durasi

Phone = *99***1#

    • sudo wvdial


Daftar Setting Provider untuk wvdial

IM3

Homepage : www.indosat-m3.net

User : gprs

Password : im3

Dial : *99***1#

IM3 DURASI

Homepage : www.indosat-m3.net

User : indosat@durasi

Password : indosat@durasi

Dial : *99***1#

TELKOMSEL

Homepage : telkomsel

User : wap

Password : wap123

Dial : *99***1#

TELKOMFLASH

Homepage : flash

User : [KOSONGKAN]

Password : [KOSONGKAN]

Dial : *99***1#

XL

Homepage : www.xlgrps.net

User : xlgprs

Password : proxl

Dial : *99***1#

MATRIX reguler [ APN = satelindogsm]

Homepage :

User : [KOSONGKAN]

Password : [KOSONGKAN]

Dial : *99***1#

MATRIX broadband

Homepage : indosat3g

User : indosat

Password : indosat

Dial : *99***1#

MENTARI

Homepage : satelindogsm

User : indosat

Password : indosat

Dial : *99***1#

AXIS

Homepage : http://wap.axisworld.co.id

User : axis

Password : [KOSONGKAN]

Dial : *99***1#

Fren (Mobile-8)

User : m8

Password : m8

Dial : #777

TELKOMFLEXY

User : telkomnet@flexi

Password : telkom

Dial : #777

STARONE

User : starone

Password : indosat

Dial : #777

Monitoring Bandwidth with Cacti

CACTI ScreenShoot



For network administrators, Of course needs bandwidth monitoring, like traffic and server.Beside MRTG, there many administrator use CACTI as solution to make perfect graph monitoring which use RRDTool as graph maker and collection data.For complete Documentation about cacti fiturs, see the website on http://www.cacti.net.

I'll try to share about CACTI installation on FreeBSD. Before do that make sure Web Server, PHP, Mysql, dan SNMP is completly running on our machine. Don't forget to install RRDTool on our machine too.

Install RRDTool via port.
bagoes # cd /usr/ports/net/rrdtool
bagoes # make install clean


Wait until installation complete

1. Download CACTI
download from : http://www.cacti.net/download_cacti.php, download newest.

2. Ekstrak CACTI
Put in direktori /home/bagoes
bagoes # cd /home/bagoes
bagoes # tar -xzvf cacti-0.8.7b.tar.gz

3. Move to webserver directory
bagoes # mv cacti-0.8.7b cacti
bagoes # mv cacti /usr/local/dataweb/www/.

4. Edit File conf
bagoes# cd /usr/local/dataweb/www/cacti
bagoes# cd include/

fit this file with configuration on your system
- file config.php
- file global.php

Edit this lines :
$database_type = “mysql”;
$database_default = “cacti”;
$database_hostname = “localhost”;
$database_username = “user_kita”;
$database_password = “pass_word”;
$database_port = “3306″;

5. Create database on Mysql
ns-rody# mysql -u myuser -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2195 to server version: 5.1.11-beta

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

mysql> create database cacti;
Query OK, 1 row affected (0.00 sec)

mysql> exit
Bye

6. Import mysql database
bagoes # cd /usr/local/dataweb/www/cacti
bagoes # mysql –u user_kita –p < cacti.sql

7. Execute poller.php every 5 minute on crentab
bagoes # vi /etc/contab

add this line:
*/5 * * * * root /usr/local/bin/php /usr/local/dataweb/www/cacti/poller.php > /dev/null 2>&1

8. Open CACTI on web browser
Example my FreeBSD IP 192.168.1.2, just access from client: http://192.168.1.2/cacti



User Login

Referensi:

http://www.technorody.com/install-cacti-network-graphing-solution.rody

http://en.wikipedia.org/wiki/Cacti_(software)

Make iso from cd or dvd rom with Ubuntu

to make iso just write this on your console:

sudo dd if=/dev/cdrom of=/home/mydir/Desktop/filename.iso

and to mount iso to you cdrom:

1) Create the directory aka mount point:

# sudo mkdir -p /mnt/disk

password: "your password"

2) Use mount command as follows (assumes that your ISO file name is disk1.iso):

#sudo mount -o loop disk1.iso /mnt/disk

3) Change directory to list it:

# cd /mnt/disk
# ls -l

then your iso will become files on your cdrom