How to install SIM (System Integrity Monitor): Difference between revisions

From Acenet Knowledgebase
Jump to navigation Jump to search
test
 
No edit summary
Line 1: Line 1:
<html>Hello,<br /> <br /> In this guide, we will go over how to install the System Integrity Monitor (SIM).<br /> <br /> First, login to the root shell account of your server. Next, run these commands:<br /> <br /> <strong><br /> wget http://www.rfxn.com/downloads/sim-current.tar.gz<br /> tar -xzf sim-current.tar.gz; rm -f sim-current.tar.gz<br /> cd sim-*<br /> sh ./install.sh -i<br /> </strong><br /> <br /> You will see something like this:<br /> <strong><br /> SIM 2.5-4 <br /> Press return, to view the GPL lisencing for SIM 2.5-4.<br /> </strong><br /> <br /> <br /> Next, press enter to view the GPL License. Press enter to scroll down, and when you<br /> are done looking, press 'Q'.<br /> This will repeat for the README. Press enter to scroll down, and when you are<br /> finished, press 'Q'.<br /> <br /> After that, you will see something like this:<br /> <br /> <strong><br /> SIM 2.5-4 installation completed, related notes:<br /> Executable:            /usr/local/sim/sim<br /> Executable symlink:    /usr/local/sbin/sim<br /> Config file:            /usr/local/sim/conf.sim<br /> Autoconf script:        /usr/local/sim/autoconf<br /> Autoconf symlink:      /usr/local/sbin/sim-autoconf<br /> Cronjob setup:          /usr/local/sim/sim -j<br /> </strong><br /> <br /> SIM is actually installed at this point, but we still need to configure it. The<br /> install script comes with a nice configuration script too,<br /> so we just have to answer some questions. Press return to start the configure script.<br /> <br /> You will see this:<br /> <br /> <strong><br /> SIM 2.5-4 Auto-Config Script<br /> <br /> All questions default to value in brackets if no answer is given. If you<br /> make a typo during the autoconf process, hit CTRL C (^C) to abort and<br /> rerun the autoconf script (/usr/local/sim/autoconf).<br /> <br /> The below are general configuration options for SIM:<br /> press return to continue...<br /> <br /> <br /> <br /> Press return when you are ready.<br /> </strong><br /> The first question, "Where is SIM installed ?" can be left as default, because that<br /> is where the install script installs SIM. <br /> Just press enter a single time.<br /> <br /> The next question asks where you would like the log file to be created. You can<br /> select wherever you wish, but we recommend leaving it<br /> as default, or placing it with the rest of your system logs in a location such as<br /> /var/log/sim.log. It is up to you. Press enter when you <br /> have chosen a location.<br /> <br /> Next it asks how large you would like your log file to get before it gets rotated.<br /> The default size is 128kb. It is safe to leave it at whatever<br /> size you would like, but just keep in mind the larger the log is the harder it will<br /> be to find something, but the smaller the log file<br /> the more log files you will have overall. Press enter when you have chosen a log size.<br /> <br /> The next step should be automatic unless you have a custom location for your kernel<br /> log. If you see a message like this:<br /> <br /> <br /> <strong><br /> What is the location of your kernel log ?<br /> Found kernel log at /var/log/messages<br /> </strong><br /> <br /> <br /> Then you are fine, it was able to autodetect your kernel log without error. If you<br /> do not see this, then you will have to enter the<br /> location of your kernel log manually, and press enter when complete.<br /> <br /> Next is the address email alerts should be sent to. You can enter a local username,<br /> if you would like, or any email address. Press enter<br /> when you have selected your desired address.<br /> <br /> <br /> Next you will select how many alerts to send before disabling the email alerts to<br /> prevent flooding. We recommend setting this as high<br /> as you feel comfortable with, as missing alerts can be bad.<br /> <br /> <br /> <br /> After that, you will see this:<br /> <strong><br /> The below are configuration options for Service modules:<br /> press return to continue...<br /> </strong><br /> <br /> <br /> Press enter when you are ready. We are going to configure what SIM monitors and how.<br /> <br /> First, you will select whether or not you want SIM to attempt to auto-restart failed<br /> services. If you choose to disable this, you will need to start<br /> the services manually. Enter true to enable this, or false to disable.<br /> <br /> Next, we can select whether or not to use laxed service checking. It is usually a<br /> good idea to leave this at true, otherwise SIM is known to have some false<br /> reports of service failure. Press enter when you have made your choice.<br /> <br /> Next, we are selecting how many times the auto-restart will try before it gives up.<br /> Leaving this at a number around 8-10 is what we recommend. This gives<br /> SIM enough changes while preventing it from going off the deep end restarting<br /> services forever. Once you make your choice, press enter.<br /> <br /> <br /> Next up is choosing what you want to monitor. For each item, you can type true to<br /> enable monitoring, or false to disable it.<br /> <br /> <br /> First up is the FTP daemon. If you choose to monitor FTP, you will see something<br /> similar to:<br /> <br /> <strong><br /> Name of the FTP service as appears in 'ps' ?<br /> Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ<br /> Found service name as proftpd<br /> <br /> TCP/IP port that FTP operates on ?<br /> </strong><br /> <br /> This is normal, but now we have to enter the port that your FTP server runs on. 9<br /> times out of 10 you can leave the FTP port at 21. The only reason this <br /> should change is if you use a custom FTP port. If you do, enter it in. Press enter<br /> when you are ready. Next you have to input the location of the FTP service <br /> init script. If you are using proftpd, pure-ftpd, or other common FTP service daemons, it will<br /> be able to locate it automatically. Please make sure that it locates the correct service daemon that you have emplyoed. <br /> If it does not, you will need to enter it in yourself. Press enter when done. <br /> <br /> <br /> Next is HTTP monitoring. If you choose to monitor this service, enter true and press<br /> enter. Next you have to input the location of the HTTP service init <br /> script. If you are using Apache or other common HTTP service daemons, it will be<br /> able to locate it automatically. If it does not, you will need to enter it <br /> in yourself. Press enter when done.<br /> <br /> <br /> Next is DNS monitoring. If you choose to monitor this service, enter true and press<br /> enter. Next you have to select the port that your DNS service is running <br /> on. Unless you have specially configured your DNS server to a custom port, it will<br /> automatically detect this. Otherwise, you will need to enter the port and <br /> press enter when ready. Next you have to input the location of the DNS service init<br /> script. If you are using nameD or other common DNS service daemons, it <br /> will be able to locate it automatically. If it does not, you will need to enter it<br /> in yourself. Press enter when done.<br /> <br /> <br /> Next is SSH monitoring. If you choose to monitor this service, enter true and press<br /> enter. Next you have to select the port that your SSH service is running <br /> on. Unless you have specially configured your SSH server to a custom port, it will<br /> automatically detect this. Otherwise, you will need to enter the port and <br /> press enter when ready. Next you have to input the location of the SSH service init<br /> script. It will try to locate it automatically. If it does not, you will <br /> need to enter it in yourself. Press enter when done.<br /> <br /> Next is mySQL monitoring. If you choose to monitor this service, enter true and<br /> press enter. Next you have to select the port that your mySQL service is <br /> running on. Unless you have specially configured your mySQL server to a custom port,<br /> it will automatically detect this. Otherwise, you will need to enter the <br /> port and press enter when ready.<br /> <br /> <br /> <br /> Next you have to input the location of the mySQL service init script. It will try to<br /> locate it automatically. If it does not, you will need to enter it in <br /> yourself. Press enter when done.<br /> <br /> <br /> <br /> Next is SMTP monitoring. If you choose to monitor this service, enter true and press<br /> enter. Next you have to select the port that your SMTP service is <br /> running on. Unless you have specifally configured SMTP to run on a special port,<br /> enter 25 and press enter. Next you have to input the location of the SMTP <br /> service init script. It will try to locate it automatically. If it does not, you<br /> will need to enter it in yourself. Press enter when done.<br /> <br /> <br /> <br /> Next is XINET monitoring. If you choose to monitor this service, enter true and<br /> press enter. It should automatically detect xinetd as the service name.<br /> If it does not, you will need to manually enter the name of the service. Next you<br /> have to select the port that your XINET service is running on. Unless you <br /> have specifally configured XINET to run on a special port, enter 110 and press<br /> enter. Next you have to input the location of the XINET service init script. <br /> It will try to locate it automatically. If it does not, you will need to enter it in<br /> yourself. Press enter when done.<br /> <br /> Next is ENSIM monitoring. If you choose to monitor this service, enter true and<br /> press enter. Next you have to select the port that your ENSIM <br /> service is running on. Unless you have specifally configured ENSIM to run on a<br /> special port, enter 19638 and press enter. Next you have to input the location <br /> of the ENSIM service init script. It will try to locate it automatically. If it does<br /> not, you will need to enter it in yourself. Press enter when done.<br /> <br /> .<br /> Next is postgreSQL If you choose to monitor this service, enter true and press<br /> enter. Next you have to input the location of the PGSQL service init script. <br /> It will try to locate it automatically.  If it does not, you will need to enter it<br /> in yourself. Press enter when done.<br /> <br /> <br /> After that, you should see something similar to this:<br /> <br /> <strong><br /> The below are configuration options for System modules:<br /> press return to continue...<br /> </strong><br /> <br /> Press enter when you are ready.<br /> <br /> It will ask you if you want monitor the network. Unless you have two network devices<br /> and two network connections to different networks, there is <br /> no purpose to enable this. If the network goes down, it will be unable to send you<br /> an email alert in the first place. If you need to monitor the network<br /> availability of your server, we recommend using a monitor that runs from outside the<br /> server's network.<br /> <br /> <br /> <br /> Next is the load monitor. If you wish to monitor your system's load, type in true<br /> and hit enter. Next you will select the warning threshold. The default is <br /> 25, which is actually pretty high. We recommend setting the limit to 10 or 15<br /> instead, but it is up to you. Enter in the load limit, and press enter. Next <br /> you must select the load "critical" limit. The default is 45, which is also very<br /> high. we recommend 25 or 30.<br /> <br /> If you would like a message sent to all current shell users on your server when the<br /> load reaches the warning or critical levels, type in true and hit enter.<br /> SIM gives you the option to renice (set different CPU priority) services if the load<br /> gets too high. You can disable it (false), have it set to critical <br /> (crit), or warning (warn). enter your choice and press return.<br /> <br /> SIM also gives you the option to halt services when the load reaches the warning or<br /> critical levels. You can disable it (false), have it set to critical <br /> (crit),or warning (warn). enter your choice and press return.<br /> <br /> lastly is the option to reboot the system when the load reaches the warning or<br /> critical levels. We do not recommend this. This can cause the server to reboot <br /> at strange and unexpected moments, which can corrupt hard drives and break other<br /> things. You can disable it (false), have it set to critical (crit), or <br /> warning (warn). enter your choice and press return.<br /> <br /> <br /> After that, you should see something like this:<br /> <strong><br /> Configuration completed, saving conf.sim...<br /> Done, conf.sim saved to /usr/local/sim.<br /> </strong><br /> and you are done! congrats!</html> [[Category:SIM (System Integrity Monitor)]]
In this guide, we will go over how to install the System Integrity Monitor (SIM).
 
==Installing SIM==
[1] Login to the root shell account of your server.  
 
[2] Run these commands:
 
<syntaxhighlight lang="bash">
wget http://www.rfxn.com/downloads/sim-current.tar.gz
tar -xzf sim-current.tar.gz;
rm -f sim-current.tar.gz
cd sim-*
sh ./install.sh -i
</syntaxhighlight>
 
You will see something like this:
 
<syntaxhighlight lang="bash">
SIM 2.5-4
Press return, to view the GPL lisencing for SIM 2.5-4.
</syntaxhighlight>
 
[3] Press enter to view the GPL License. Press enter to scroll down, and when you are done looking, press 'Q'.
 
This will repeat for the README. Press enter to scroll down, and when you are finished, press 'Q'.
 
[4] You will see a message indicating SIM has been installed:
 
<syntaxhighlight lang="bash">
SIM 2.5-4 installation completed, related notes:
Executable:            /usr/local/sim/sim
Executable symlink:    /usr/local/sbin/sim
Config file:            /usr/local/sim/conf.sim
Autoconf script:        /usr/local/sim/autoconf
Autoconf symlink:      /usr/local/sbin/sim-autoconf
Cronjob setup:          /usr/local/sim/sim -j
</syntaxhighlight>
 
==Configuring SIM==
SIM is actually installed at this point, but we still need to configure it. The install script comes with a nice configuration script too, so we just have to answer some questions. Press return to start the configure script. You will see this:
 
<syntaxhighlight lang="bash">
SIM 2.5-4 Auto-Config Script
All questions default to value in brackets if no answer is given. If you make a typo during the autoconf process, hit CTRL C (^C) to abort and
rerun the autoconf script (/usr/local/sim/autoconf).
 
The below are general configuration options for SIM:
 
press return to continue...
</syntaxhighlight>
 
Press return when you are ready.
 
=== General Configuration ===
[1] The first question, "Where is SIM installed ?" can be left as default, because that is where the install script installs SIM. Just press enter a single time.
 
[2] The next question asks where you would like the log file to be created. You can select wherever you wish, but we recommend leaving it as default, or placing it with the rest of your system logs in a location such as /var/log/sim.log. It is up to you. Press enter when you have chosen a location.
 
Next it asks how large you would like your log file to get before it gets rotated.
 
The default size is 128kb. It is safe to leave it at whatever size you would like, but just keep in mind the larger the log is the harder it will be to find something, but the smaller the log file the more log files you will have overall. Press enter when you have chosen a log size.
 
[3] The next step should be automatic unless you have a custom location for your kernel log. If you see a message like this:
 
<syntaxhighlight lang="bash">
What is the location of your kernel log ?
Found kernel log at /var/log/messages
</syntaxhighlight>
 
Then you are fine, it was able to autodetect your kernel log without error. If you do not see this, then you will have to enter the location of your kernel log manually, and press enter when complete.
 
[4] Next is the address email alerts should be sent to. You can enter a local username, if you would like, or any email address. Press enter when you have selected your desired address.
 
[5] Next you will select how many alerts to send before disabling the email alerts to prevent flooding. We recommend setting this as high as you feel comfortable with, as missing alerts can be bad.
 
 
=== Service Configuration ===
After that, you will see this:
 
<syntaxhighlight lang="bash">
The below are configuration options for Service modules:
press return to continue...
</syntaxhighlight>
 
Press enter when you are ready. We are going to configure what SIM monitors and how.
 
First, you will select whether or not you want SIM to attempt to auto-restart failed services. If you choose to disable this, you will need to start the services manually. Enter true to enable this, or false to disable.
 
[1] We can select whether or not to use laxed service checking. It is usually a good idea to leave this at true, otherwise SIM is known to have some false reports of service failure. Press enter when you have made your choice.
 
[2] Next, we are selecting how many times the auto-restart will try before it gives up.
 
Leaving this at a number around 8-10 is what we recommend. This gives SIM enough changes while preventing it from going off the deep end restarting services forever. Once you make your choice, press enter.
 
[3] Next up is choosing what you want to monitor. For each item, you can type true to enable monitoring, or false to disable it.
 
First up is the FTP daemon. If you choose to monitor FTP, you will see something<br /> similar to:<br /> <br /> <strong><br /> Name of the FTP service as appears in 'ps' ?<br /> Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ<br /> Found service name as proftpd<br /> <br /> TCP/IP port that FTP operates on ?<br /> </strong><br /> <br /> This is normal, but now we have to enter the port that your FTP server runs on. 9<br /> times out of 10 you can leave the FTP port at 21. The only reason this <br /> should change is if you use a custom FTP port. If you do, enter it in. Press enter<br /> when you are ready. Next you have to input the location of the FTP service <br /> init script. If you are using proftpd, pure-ftpd, or other common FTP service daemons, it will<br /> be able to locate it automatically. Please make sure that it locates the correct service daemon that you have emplyoed. <br /> If it does not, you will need to enter it in yourself. Press enter when done. <br /> <br /> <br /> Next is HTTP monitoring. If you choose to monitor this service, enter true and press<br /> enter. Next you have to input the location of the HTTP service init <br /> script. If you are using Apache or other common HTTP service daemons, it will be<br /> able to locate it automatically. If it does not, you will need to enter it <br /> in yourself. Press enter when done.<br /> <br /> <br /> Next is DNS monitoring. If you choose to monitor this service, enter true and press<br /> enter. Next you have to select the port that your DNS service is running <br /> on. Unless you have specially configured your DNS server to a custom port, it will<br /> automatically detect this. Otherwise, you will need to enter the port and <br /> press enter when ready. Next you have to input the location of the DNS service init<br /> script. If you are using nameD or other common DNS service daemons, it <br /> will be able to locate it automatically. If it does not, you will need to enter it<br /> in yourself. Press enter when done.<br /> <br /> <br /> Next is SSH monitoring. If you choose to monitor this service, enter true and press<br /> enter. Next you have to select the port that your SSH service is running <br /> on. Unless you have specially configured your SSH server to a custom port, it will<br /> automatically detect this. Otherwise, you will need to enter the port and <br /> press enter when ready. Next you have to input the location of the SSH service init<br /> script. It will try to locate it automatically. If it does not, you will <br /> need to enter it in yourself. Press enter when done.<br /> <br /> Next is mySQL monitoring. If you choose to monitor this service, enter true and<br /> press enter. Next you have to select the port that your mySQL service is <br /> running on. Unless you have specially configured your mySQL server to a custom port,<br /> it will automatically detect this. Otherwise, you will need to enter the <br /> port and press enter when ready.<br /> <br /> <br /> <br /> Next you have to input the location of the mySQL service init script. It will try to<br /> locate it automatically. If it does not, you will need to enter it in <br /> yourself. Press enter when done.<br /> <br /> <br /> <br /> Next is SMTP monitoring. If you choose to monitor this service, enter true and press<br /> enter. Next you have to select the port that your SMTP service is <br /> running on. Unless you have specifally configured SMTP to run on a special port,<br /> enter 25 and press enter. Next you have to input the location of the SMTP <br /> service init script. It will try to locate it automatically. If it does not, you<br /> will need to enter it in yourself. Press enter when done.<br /> <br /> <br /> <br /> Next is XINET monitoring. If you choose to monitor this service, enter true and<br /> press enter. It should automatically detect xinetd as the service name.<br /> If it does not, you will need to manually enter the name of the service. Next you<br /> have to select the port that your XINET service is running on. Unless you <br /> have specifally configured XINET to run on a special port, enter 110 and press<br /> enter. Next you have to input the location of the XINET service init script. <br /> It will try to locate it automatically. If it does not, you will need to enter it in<br /> yourself. Press enter when done.<br /> <br /> Next is ENSIM monitoring. If you choose to monitor this service, enter true and<br /> press enter. Next you have to select the port that your ENSIM <br /> service is running on. Unless you have specifally configured ENSIM to run on a<br /> special port, enter 19638 and press enter. Next you have to input the location <br /> of the ENSIM service init script. It will try to locate it automatically. If it does<br /> not, you will need to enter it in yourself. Press enter when done.<br /> <br /> .<br /> Next is postgreSQL If you choose to monitor this service, enter true and press<br /> enter. Next you have to input the location of the PGSQL service init script. <br /> It will try to locate it automatically.  If it does not, you will need to enter it<br /> in yourself. Press enter when done.<br /> <br /> <br /> After that, you should see something similar to this:<br /> <br /> <strong><br /> The below are configuration options for System modules:<br /> press return to continue...<br /> </strong><br /> <br /> Press enter when you are ready.<br /> <br /> It will ask you if you want monitor the network. Unless you have two network devices<br /> and two network connections to different networks, there is <br /> no purpose to enable this. If the network goes down, it will be unable to send you<br /> an email alert in the first place. If you need to monitor the network<br /> availability of your server, we recommend using a monitor that runs from outside the<br /> server's network.<br /> <br /> <br /> <br /> Next is the load monitor. If you wish to monitor your system's load, type in true<br /> and hit enter. Next you will select the warning threshold. The default is <br /> 25, which is actually pretty high. We recommend setting the limit to 10 or 15<br /> instead, but it is up to you. Enter in the load limit, and press enter. Next <br /> you must select the load "critical" limit. The default is 45, which is also very<br /> high. we recommend 25 or 30.<br /> <br /> If you would like a message sent to all current shell users on your server when the<br /> load reaches the warning or critical levels, type in true and hit enter.<br /> SIM gives you the option to renice (set different CPU priority) services if the load<br /> gets too high. You can disable it (false), have it set to critical <br /> (crit), or warning (warn). enter your choice and press return.<br /> <br /> SIM also gives you the option to halt services when the load reaches the warning or<br /> critical levels. You can disable it (false), have it set to critical <br /> (crit),or warning (warn). enter your choice and press return.<br /> <br /> lastly is the option to reboot the system when the load reaches the warning or<br /> critical levels. We do not recommend this. This can cause the server to reboot <br /> at strange and unexpected moments, which can corrupt hard drives and break other<br /> things. You can disable it (false), have it set to critical (crit), or <br /> warning (warn). enter your choice and press return.<br /> <br /> <br /> After that, you should see something like this:<br /> <strong><br /> Configuration completed, saving conf.sim...<br /> Done, conf.sim saved to /usr/local/sim.<br /> </strong><br /> and you are done! congrats!</html> [[Category:SIM (System Integrity Monitor)]]

Revision as of 09:53, 9 October 2012

In this guide, we will go over how to install the System Integrity Monitor (SIM).

Installing SIM

[1] Login to the root shell account of your server.

[2] Run these commands:

<syntaxhighlight lang="bash"> wget http://www.rfxn.com/downloads/sim-current.tar.gz tar -xzf sim-current.tar.gz; rm -f sim-current.tar.gz cd sim-* sh ./install.sh -i </syntaxhighlight>

You will see something like this:

<syntaxhighlight lang="bash"> SIM 2.5-4 Press return, to view the GPL lisencing for SIM 2.5-4. </syntaxhighlight>

[3] Press enter to view the GPL License. Press enter to scroll down, and when you are done looking, press 'Q'.

This will repeat for the README. Press enter to scroll down, and when you are finished, press 'Q'.

[4] You will see a message indicating SIM has been installed:

<syntaxhighlight lang="bash"> SIM 2.5-4 installation completed, related notes: Executable: /usr/local/sim/sim Executable symlink: /usr/local/sbin/sim Config file: /usr/local/sim/conf.sim Autoconf script: /usr/local/sim/autoconf Autoconf symlink: /usr/local/sbin/sim-autoconf Cronjob setup: /usr/local/sim/sim -j </syntaxhighlight>

Configuring SIM

SIM is actually installed at this point, but we still need to configure it. The install script comes with a nice configuration script too, so we just have to answer some questions. Press return to start the configure script. You will see this:

<syntaxhighlight lang="bash"> SIM 2.5-4 Auto-Config Script All questions default to value in brackets if no answer is given. If you make a typo during the autoconf process, hit CTRL C (^C) to abort and rerun the autoconf script (/usr/local/sim/autoconf).

The below are general configuration options for SIM:

press return to continue... </syntaxhighlight>

Press return when you are ready.

General Configuration

[1] The first question, "Where is SIM installed ?" can be left as default, because that is where the install script installs SIM. Just press enter a single time.

[2] The next question asks where you would like the log file to be created. You can select wherever you wish, but we recommend leaving it as default, or placing it with the rest of your system logs in a location such as /var/log/sim.log. It is up to you. Press enter when you have chosen a location.

Next it asks how large you would like your log file to get before it gets rotated.

The default size is 128kb. It is safe to leave it at whatever size you would like, but just keep in mind the larger the log is the harder it will be to find something, but the smaller the log file the more log files you will have overall. Press enter when you have chosen a log size.

[3] The next step should be automatic unless you have a custom location for your kernel log. If you see a message like this:

<syntaxhighlight lang="bash"> What is the location of your kernel log ? Found kernel log at /var/log/messages </syntaxhighlight>

Then you are fine, it was able to autodetect your kernel log without error. If you do not see this, then you will have to enter the location of your kernel log manually, and press enter when complete.

[4] Next is the address email alerts should be sent to. You can enter a local username, if you would like, or any email address. Press enter when you have selected your desired address.

[5] Next you will select how many alerts to send before disabling the email alerts to prevent flooding. We recommend setting this as high as you feel comfortable with, as missing alerts can be bad.


Service Configuration

After that, you will see this:

<syntaxhighlight lang="bash"> The below are configuration options for Service modules: press return to continue... </syntaxhighlight>

Press enter when you are ready. We are going to configure what SIM monitors and how.

First, you will select whether or not you want SIM to attempt to auto-restart failed services. If you choose to disable this, you will need to start the services manually. Enter true to enable this, or false to disable.

[1] We can select whether or not to use laxed service checking. It is usually a good idea to leave this at true, otherwise SIM is known to have some false reports of service failure. Press enter when you have made your choice.

[2] Next, we are selecting how many times the auto-restart will try before it gives up.

Leaving this at a number around 8-10 is what we recommend. This gives SIM enough changes while preventing it from going off the deep end restarting services forever. Once you make your choice, press enter.

[3] Next up is choosing what you want to monitor. For each item, you can type true to enable monitoring, or false to disable it.

First up is the FTP daemon. If you choose to monitor FTP, you will see something
similar to:


Name of the FTP service as appears in 'ps' ?
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
Found service name as proftpd

TCP/IP port that FTP operates on ?


This is normal, but now we have to enter the port that your FTP server runs on. 9
times out of 10 you can leave the FTP port at 21. The only reason this
should change is if you use a custom FTP port. If you do, enter it in. Press enter
when you are ready. Next you have to input the location of the FTP service
init script. If you are using proftpd, pure-ftpd, or other common FTP service daemons, it will
be able to locate it automatically. Please make sure that it locates the correct service daemon that you have emplyoed.
If it does not, you will need to enter it in yourself. Press enter when done.


Next is HTTP monitoring. If you choose to monitor this service, enter true and press
enter. Next you have to input the location of the HTTP service init
script. If you are using Apache or other common HTTP service daemons, it will be
able to locate it automatically. If it does not, you will need to enter it
in yourself. Press enter when done.


Next is DNS monitoring. If you choose to monitor this service, enter true and press
enter. Next you have to select the port that your DNS service is running
on. Unless you have specially configured your DNS server to a custom port, it will
automatically detect this. Otherwise, you will need to enter the port and
press enter when ready. Next you have to input the location of the DNS service init
script. If you are using nameD or other common DNS service daemons, it
will be able to locate it automatically. If it does not, you will need to enter it
in yourself. Press enter when done.


Next is SSH monitoring. If you choose to monitor this service, enter true and press
enter. Next you have to select the port that your SSH service is running
on. Unless you have specially configured your SSH server to a custom port, it will
automatically detect this. Otherwise, you will need to enter the port and
press enter when ready. Next you have to input the location of the SSH service init
script. It will try to locate it automatically. If it does not, you will
need to enter it in yourself. Press enter when done.

Next is mySQL monitoring. If you choose to monitor this service, enter true and
press enter. Next you have to select the port that your mySQL service is
running on. Unless you have specially configured your mySQL server to a custom port,
it will automatically detect this. Otherwise, you will need to enter the
port and press enter when ready.



Next you have to input the location of the mySQL service init script. It will try to
locate it automatically. If it does not, you will need to enter it in
yourself. Press enter when done.



Next is SMTP monitoring. If you choose to monitor this service, enter true and press
enter. Next you have to select the port that your SMTP service is
running on. Unless you have specifally configured SMTP to run on a special port,
enter 25 and press enter. Next you have to input the location of the SMTP
service init script. It will try to locate it automatically. If it does not, you
will need to enter it in yourself. Press enter when done.



Next is XINET monitoring. If you choose to monitor this service, enter true and
press enter. It should automatically detect xinetd as the service name.
If it does not, you will need to manually enter the name of the service. Next you
have to select the port that your XINET service is running on. Unless you
have specifally configured XINET to run on a special port, enter 110 and press
enter. Next you have to input the location of the XINET service init script.
It will try to locate it automatically. If it does not, you will need to enter it in
yourself. Press enter when done.

Next is ENSIM monitoring. If you choose to monitor this service, enter true and
press enter. Next you have to select the port that your ENSIM
service is running on. Unless you have specifally configured ENSIM to run on a
special port, enter 19638 and press enter. Next you have to input the location
of the ENSIM service init script. It will try to locate it automatically. If it does
not, you will need to enter it in yourself. Press enter when done.

.
Next is postgreSQL If you choose to monitor this service, enter true and press
enter. Next you have to input the location of the PGSQL service init script.
It will try to locate it automatically. If it does not, you will need to enter it
in yourself. Press enter when done.


After that, you should see something similar to this:


The below are configuration options for System modules:
press return to continue...


Press enter when you are ready.

It will ask you if you want monitor the network. Unless you have two network devices
and two network connections to different networks, there is
no purpose to enable this. If the network goes down, it will be unable to send you
an email alert in the first place. If you need to monitor the network
availability of your server, we recommend using a monitor that runs from outside the
server's network.



Next is the load monitor. If you wish to monitor your system's load, type in true
and hit enter. Next you will select the warning threshold. The default is
25, which is actually pretty high. We recommend setting the limit to 10 or 15
instead, but it is up to you. Enter in the load limit, and press enter. Next
you must select the load "critical" limit. The default is 45, which is also very
high. we recommend 25 or 30.

If you would like a message sent to all current shell users on your server when the
load reaches the warning or critical levels, type in true and hit enter.
SIM gives you the option to renice (set different CPU priority) services if the load
gets too high. You can disable it (false), have it set to critical
(crit), or warning (warn). enter your choice and press return.

SIM also gives you the option to halt services when the load reaches the warning or
critical levels. You can disable it (false), have it set to critical
(crit),or warning (warn). enter your choice and press return.

lastly is the option to reboot the system when the load reaches the warning or
critical levels. We do not recommend this. This can cause the server to reboot
at strange and unexpected moments, which can corrupt hard drives and break other
things. You can disable it (false), have it set to critical (crit), or
warning (warn). enter your choice and press return.


After that, you should see something like this:

Configuration completed, saving conf.sim...
Done, conf.sim saved to /usr/local/sim.

and you are done! congrats!</html>