Skip to content

Monthly Archives: November 2009

nagios sample object config file for monitoring machines.

27-Nov-09

nagios sample object config file for monitoring machines.
First you need to have the
Host definition — > Host group definition [here we add the hosts for this group]–>and then the Service Definition
Example: for Service Definition
# Define a service to check the disk space of the root partition
# on the local machine. Warning [...]

nagios configuraiton files

27-Nov-09

nagios configuration files
root@jyothis:/usr/local/nagios/etc# ls -l
total 68
-rw-rw-r– 1 nagios nagios 10699 Mar 22 2009 cgi.cfg
-rw-r–r– 1 root root 26 Mar 22 2009 htpasswd.users
-rw-rw-r– 1 nagios nagios 42730 Mar 22 2009 nagios.cfg
drwxrwxr-x 2 nagios nagios 4096 Nov 27 13:19 objects
-rw-rw—- 1 nagios nagios 1340 Mar [...]

Verify the sample Nagios configuration files.

27-Nov-09

Verify the sample Nagios configuration files.
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
/usr/local/nagios/bin#
./nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios 3.0.6
Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
Last Modified: 12-01-2008
License: GPL
Reading configuration data…
Running pre-flight check on configuration data…
Checking services…
Checked 9 services.
Checking hosts…
Checked 2 hosts.
Checking host groups…
Checked 1 host groups.
Checking service groups…
Checked 0 service groups.
Checking contacts…
Checked 1 contacts.
Checking contact groups…
Checked 1 contact groups.
Checking service escalations…
Checked 0 [...]

Quickstart Installation Guides install Nagios from source (code) on Ubuntu

27-Nov-09

Quickstart Installation Guides install Nagios from source (code) on Ubuntu
* Nagios and the plugins will be installed underneath /usr/local/nagios
* Nagios will be configured to monitor a few aspects of your local system (CPU load, disk usage, etc.)
* The Nagios web interface will [...]

Understanding TCP/IP and Architectural Principles of the Internet

27-Nov-09

To fully understand the architecture of Cisco Centri Firewall, you need to understand the TCP/IP architecture on which the Internet is based. This appendix discusses the TCP/IP architecture and provides a basic reference model that can help you understand how Cisco Centri Firewall operates. It explains TCP/IP terminology and describes the fundamental concepts underlying the [...]

Download chrome browser development version for ubuntu

25-Nov-09

Download chrom development version for ubuntu
You can download the development verion from the url below, there are versions available for other platform also from the url.
http://ppa.launchpad.net/chromium-daily/ppa/ubuntu/pool/main/c/chromium-browser/
Adding the repository:
https://launchpad.net/~chromium-daily/+archive/ppa
deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main
deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu intrepid main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu intrepid main

Adding google repository to Ubuntu or Debian based distros

24-Nov-09

Adding google repository to Ubuntu or Debian based distros.
Add the following rule to e.g. /etc/apt/sources.list, or if your distro has the /etc/apt/sources.list.d/ directory, add it to a file called google.list in that directory:
# Google software repository
deb http://dl.google.com/linux/deb/ stable non-free main
Once the above entry is added we can run apt as usual.
sudo apt-get update
sudo apt-get install [...]

running fsck on reboot

24-Nov-09

The -F option force fsck on reboot, login as root and type the following command to reboot and run fsck:
# shutdown -rF now
-F Force fsck on reboot.
-r Reboot after shutdown.
-k Don’t really shutdown; only send the warning messages to everybody.
or
Login as user root and create a file called forcefsck:
# touch /forcefsck
Now reboot [...]

Running fsck on your server

24-Nov-09

Q. My laptop partition  /dev/sdb1  is showing file system error, how  do i use fsck command to check for file system error and repair the partition.

Solution  is to use   fsck – check and repair a Linux file system or use e2fsck – check a Linux ext2/ext3 file system.
Device              [...]

setuid for programs

23-Nov-09

setuid program are programs, which runs as owner of the program, rather than the user executing the program.
root@laptop:~# ls -l `which su`
-rwsr-xr-x 1 root root 31012 2009-04-04 11:19 /bin/su
root@laptop:~# ls -l `which sudo`
-rwsr-xr-x 1 root root 115136 2009-02-17 08:52 /usr/bin/sudo
root@laptop:~#