Tuesday, November 9, 2010

How to Setting Up a SNMP Server and Cacti in Ubuntu

What is net-snmp ?

Simple Network Management Protocol (SNMP) is a widely used protocol for monitoring the health and welfare of network equipment (eg. routers), computer equipment and even devices like UPSs. Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6.

Cacti on the other hand is a frontend to the RRDTool with SNMP support. It collects and keep data in a MySQL database and display them through a PHP web frontend.

SNMPD

SNMPD is the service running SNMP on a managed entity. SNMP comes in 3 versions. Version 1, the one we are going to use here is not secured, therefore we are going to make sure that only localhost is going to be able to access it.
People opening the service to the outside should make sure that trusted hosts can access the service either though the use of iptables or through the use of /etc/hosts.allow.

Installing The SNMP Server

The only package which is required on the server site is snmpd, the SNMP daemon.

To install it type:

$ sudo apt-get install snmpd

snmpd is now installed but we still have to tweak it a little bit to make it work as we want.

Configuring SNMPD

The first thing we want to make sure is that snmpd is only going to wait for connections on localhost. To do this, edit file /etc/default/snmpd and make sure those values are set:

SNMPDRUN=yes
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'

If you want your server to listen on all interfaces, remove the 127.0.0.1 bit.

This setting will make sure that the service will be started and that the service is going to bind to localhost.

Finally, we are going to configure snmpd in such a way that it will only return datas to trusted host for a specific community.

Edit /etc/snmp/snmpd.conf and make sure that com2sec it only set to:

com2sec readonly localhost mycommunity

If you want a remote machine to be able to gather information for the community mycommunity, make sure you replace localhost by mynetwork, where mynetwork can be of the form: 1.1.1.1 or 1.1.0.0/16.

Checking SNMP Configuration:

We are going to use the snmpwalk utility to verify that the server is working as wanted.

Here we want snmp to reply only to localhost for the community mycommunity.

From localhost

# Restart snmpd to load de new config #####

$ sudo /etc/init.d/snmpd restart


# Test the SNMP Server #####


$ sudo apt-get install snmp

$ snmpwalk -Os -c mycommunity -v 1 localhost system

Should return a lot of output and:

snmpwalk -Os -c public -v 1 localhost system
Timeout: No Response from localhost

If the second command returns result, it might be because you did not comment the line starting with com2sec.

Installing Cacti

Cacti displays system statistics through a PHP/MySQL web interface.

To gather informations, it runs a script which is going to poll the servers you registered in cacti: /usr/share/cacti/site/poller.php.

So, let's get started an install cacti.

Installing Cacti Packages And Dependencies

# apt-get install mysql-server apache2 libapache2-mod-php5 php5-mysql php5-cli php5-snmp
# apt-get install cacti

Note: because I am using php5, I had to install all the required php5-xx packages before I installed cacti. If you don't install those first, cacti will fall back to apache2 with php4.

While installing cacti, you are going to be asked a few question, answer as follow:

configuring libphp-adodb
-> press ok
configuring cacti
configure database for cacti with dbconfig-common
-> press yes
password of your database's administrative user
-> mysql root password (empty by default, fill accordingly)
mysql application password for cacti
-> give the password you would like cacti to connect to mysql with
webserver type
-> Apache2

Now, cacti is installed, let's configure it:

Configuring Cacti

Now, cacti is installed as well as its database. We still need through a few configuration screens before we can start adding servers to monitor.

Let's go to http://your-manager-server.ip/cacti/

  • Click next to the first screen
  • Select new install and check that the found informations are correct
  • Check that everything is [FOUND]
  • Click Finish

Finally, you should be landing on the login page. Log in with username: admin and password: admin. The next screen will force you to change your password.

On the first login, the default account is admin with password admin

Voila, our manager is up and running, the last step is to create new Devices (adding new hosts to our manager).


Enjoy ubuntu.... ;)

Tq http://www.debuntu.org

How to Uninstall 9.x License Manager

Unlike other ESRI components which are mostly Microsoft Installer packages, ESRI's ArcGIS 9.x LM installation was configured and packaged with the WISE Solutions (--> Altiris --> Symantec) Wise Installation System. Normally the uninstaller for all Wise based deployments will be an "unwise32.exe" coupled with a log file of the installation located somewhere in the installation directory.

So, the typical ArcGIS 9.x LM uninstall string would be:

C:\Program Files\ESRI\License\arcgis9x\UNWISE32.EXE C:\Program Files\ESRI\License\arcgis9x\ARCGIS_LM.LOG "License Manager"

The Wise uninstaller is dependent on details laid down in the log file during installation, if the file is moved, deleted, or corrupt the automated Wise uninstall will abort. If still intact, open the license file to see what path changes have occurred since the install--you might edit the log back to correct paths and retry the Wise uninstaller.

If that fails, or you don't want to try it, ESRI's FlexNet license manager installation is pretty simple, so manual removal is a snap. Before starting, if your concurrent license entitlement for the license server is permanent, locate and save the current license file (.efl9 extension) to a safe location--so you can reuse it.

Use the lmtools.exe GUI to stop the license service.

1) lauch lmtools.exe and select the ArcGIS license pool

2) on the Start/Stop/Reread tab -- "Stop Server"

3) on the Config Services tab -- uncheck "Start server at power up" and "Use Services", and then click on the "Save Service" and then exit the GUI.

Note: These manipulations of the FlexNet license service can all be done from the command line using lmutil commands, but is more convenient using the lmtools GUI.

4) either reboot, or run "services.msc" and stop the ArcGIS license service if still running.

5) now should just be able to delete the folder "C:\Program Files\ESRI\license" and all sub-folders.

There will be a remaining file association for .efl9 that is now broken--it was tied to UpdateLicense.exe that is now gone, but you can clear that out with Piriform's ccleaner.exe or similar, or just edit it out of the registry directly.

Monday, November 8, 2010

List of geographic information systems software

Desktop GIS

The following open source desktop GIS projects are reviewed in Steiniger and Bocher (2008/9)[3]:

gvSIG 1.0
GRASS GIS 6.4
Capaware rc1 0.1
SAGA-GIS v. 2.0.3
Whitebox GAT 1.0.2
IDRISI Taiga 16.05
  • GRASS GIS – Originally developed by the U.S. Army Corps of Engineers, open source: a complete GIS
  • SAGA GIS – System for Automated Geoscientific Analysis- a hybrid GIS software. SAGA has a unique Application Programming Interface (API) and a fast growing set of geoscientific methods, bundled in exchangeable Module Libraries.
  • Quantum GIS – QGIS is an Open Source GIS that runs on Linux, Unix, Mac OS X, and Windows.
  • MapWindow GIS – Free, open source GIS desktop application and programming component.
  • ILWIS – ILWIS (Integrated Land and Water Information System) integrates image, vector and thematic data.
  • uDig
  • gvSIG – Open source GIS written in Java.
  • JUMP GIS / OpenJUMP – (Open) Java Unified Mapping Platform (the desktop GIS OpenJUMP, SkyJUMP, deeJUMP and Kosmo emerged from JUMP; see [3])


other:

  • Whitebox GAT – Open source and transparent GIS software
  • Kalypso (software) – Kalypso is an Open Source GIS (Java, GML3) and focuses mainly on numerical simulations in water management.
  • TerraView – GIS desktop that handles vector and raster data stored in a relational or geo-relational database, i.e. a frontend for TerraLib.
  • Capaware – Capaware is also an Open Source GIS, an incredible fast C++ 3D GIS Framework with a multiple plugin architecture for geographic graphical analysis and visualization.
  • FalconView – FalconView is a mapping system created by the Georgia Tech Research Institute for the Windows family of operating systems. A free, open source version is available.

[edit]Other GIS tools - classified

Note, for different categories of GIS tools see GIS software and [1].

WebMap Server

Spatial Database Management Systems

  • PostGIS – Spatial extensions for the open source PostgreSQL database, allowing geospatial queries.
  • MySQL Spatial
  • TerraLib is a spatial DBMS and also provides advanced functions for GIS analysis.
  • Spatialite – Spatial extensions for the open source SQLite database, allowing geospatial queries.

Software Development Frameworks and Libraries (non-web)

Software Development Frameworks and Libraries (for web applications)

Cataloging application for spatially referenced resources

[edit]Other GIS tools - unclassified

  • Chameleon – Environments for building applications with MapServer.
  • MapPoint, a technology ("MapPoint Web Service," previously known as MapPoint .NET) and a specific software program created by Microsoft that allows users to view, edit and integrate maps.

[edit]Notable commercial or proprietary GIS software

[edit]Desktop GIS provider

Note: Almost all of the below companies offer Desktop GIS and WebMap Server products. Some offer Spatial DBMS products as well. ToDo: rewrite, so that not products are mentioned but the product user groups i.e. application fields

[edit]Companies with High Market Share

[edit]Companies with Minor but Notable Market Share

[edit]Spatial DBMS

  • Boeing's Spatial Query Server spatially enables Sybase ASE.
  • DB2 – Allows spatial querying and storing of most spatial data types.
  • Informix – Allows spatial querying and storing of most spatial data types.
  • Microsoft SQL Server 2008 – The latest player in the market of storing and querying spatial data. At this stage only some GIS products such as MapInfo and Cadcorp SIS can read and edit this data while ESRI and others are expected to be able to read and edit this data within the next few months
  • Oracle Spatial – Product allows users to perform complex geographic operations and store common spatial data types in a native Oracle environment. Most commercial GIS packages can read and edit spatial data stored in this way.
  • PostGIS – a spatial database based on the free PostgreSQL database

[edit]Spatial ETL Tools


Enjoy ubuntu... ;)

kunkun-laptop .... ;)