Posted by: Mangesh_Linux_Administrator | January 3, 2011

“System Integrity Monitor – SIM” installation


“System Integrity Monitor – SIM”  installation

SIM is a system and services monitor for ‘SysVinit’ systems. It is designed to be intuitive and modular in nature, and to provide a clean and informative status system……

It does this by consistently verifying that services are online, load averages are in check, and log files are at reasonable sizes. Many other SIM modules sport different and in-depth features to bring a well rounded tool to your disposal to stop otherwise common issues daunting internet hosts.

This is simple method for installing SIM on Linux server.

Login to your server via SSH as root

First step is to wget file

#wget http://www.r-fx.org/downloads/sim-current.tar.gz

Untar file by using floowing command
#tar -xzvf sim-current.tar.gz

Type: cd sim-2.5-3
./setup -i

Where is SIM installed ?This will give you path of SIM
[/usr/local/sim]:
{enter}

Where should the sim.log file be created ?
[/usr/local/sim/sim.log]:
{enter}

Max size of sim.log before rotated ? Kb
[128]:1024
{enter}

[root]:youremail@email.com
{enter}

Disable alert emails after how many events, to avoid email flood ?
(Note: events stats are cleared daily)
[10]:3
{enter}

The below are configuration options for Service modules:
press return to continue…
{enter}

Auto-restart services found to be offline ? (true=enable, false=disable)
[true]:
{enter}

Enforce laxed service checking ? (true=enable, false=disable)
[true]:
{enter}

Disable auto-restart after how many downed service events ?
(Note: events stats are cleared daily)
[10]:
{enter}

Enable FTP service monitoring ? (true=enable, false=disable)
[false]:
{enter}

Enable HTTP service monitoring ? (true=enable, false=disable)
[false]:True
{enter}

Enable DNS service monitoring ? (true=enable, false=disable)
[false]:True
{enter}

Enable SSH service monitoring ? (true=enable, false=disable)
[false]:True
{enter}

Enable MYSQL service monitoring ? (true=enable, false=disable)
[false]:True
{enter}

Enable SMTP service monitoring ? (true=enable, false=disable)
[false]:True
{enter}

TCP/IP port that SMTP operates on ?
[25]:
{enter}

Enable XINET service monitoring ? (true=enable, false=disable)
[false]:True
{enter}

TCP/IP port that any XINET service operates on (e.g: pop3, 110) ?
[110]:
{enter}

Enable ENSIM service monitoring ? (true=enable, false=disable)
[false]:
{enter}

Enable PGSQL service monitoring ? (true=enable, false=disable)
[false]:
{enter}

Please shut down HTTP , semaphore array’s may remain allocated and cause the service to fall into a loop of restarting cycle. Using this feature clears semaphore arrays on HTTP restart. Enable semaphore cleanup ?
[false]:
{enter}

This is an implemented feature in the http module, its purpose is to determine if/when the apache server locks up or otherwise stops httpd to responding. Enable URL aware monitoring ?
:True
{enter}

URL path to a local file ? (exclude HTTP://)
Note: This URL should be valid and reside on the local server, otherwise HTTP will loop restarting
[127.0.0.1/index.html]: http://ServerIP/ or Type: site.com/index.html that resides on your local server
{enter}

HTTP log files can grow large and cause the service to crash (segfault), this feature will keep the main HTTP logs incheck. Enable HTTP log monitor ?
[false]:
{enter}

MySQL uses a /tmp symlink of its mysql.sock socket file. This feature verifies that the symlink exists from the main mysql.sock file, and if not it is recreated. Enable MySQL Socket correction ?
[false]:
{enter}

Enable NETWORK monitoring ? (true=enable, false=disable)
[false]:True
{enter}

interface to monitor ?
[eth0]:
{enter}

Enable LOAD monitor ? (true=enable, false=disable)
[false]:True
{enter}

Load level before status condition ‘warning’ ?
[25]: 5
{enter}

Load level before status condition ‘critical’ ?
[45]: 10
{enter}

Enable a global (wall) message at status condition ‘warning’ & ‘critical’ ?
[false]:
{enter}

Renice services at status condition ‘warning’ or ‘critical’ ?
(3 values – warn, crit, false – false=disabled)
[false]:
{enter}

Stop nonessential services at status condition ‘warning’ or ‘critical’ ?
(3 values – warn, crit, false – false=disabled)
[false]:
{enter}

Reboot system on status condition ‘warning’ or ‘critical’ ?
(3 values – warn, crit, false – false=disabled)
[false]:
{enter}

Now SIM has been configured you can add a cron.
./setup -c
If it says “Removed SIM cronjob.” then you must type it again.
./setup -c

SIM has been installed now
Quote:

In order for SIM to work properly, it must be executed regularly, and the best method for this is by using a cronjob.

By default, a SIM cronjob is automatically added during setup and set to run every 5 minutes. To add it or remove it later, you can execute this:

/usr/local/sim/sim -j

or

/usr/local/sbin/sim -j

Now check SIM status logs
tailf /usr/local/sim/sim.log

Advertisements

Responses

  1. I really like it when folks get together and share opinions.
    Great blog, continue the good work!

  2. Excellent beat ! I would like to apprentice whilst you amend your
    site, how can i subscribe for a blog website? The account helped me a appropriate deal.
    I have been tiny bit familiar of this your broadcast offered bright
    transparent concept

  3. Very good submission. Seldom will you see as good a set of clear views on the website hosting industry.

    Good Job!
    appreciate the read! Will certainly be back again!

  4. I was suggested this blog by my cousin. I am not sure whether this post is written by him
    as no one else know such detailed about my difficulty.
    You are amazing! Thanks!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Categories

%d bloggers like this: