Web Hosting Talk







View Full Version : Monitor script


rfxn
07-06-2002, 11:28 PM
I have recently finished version 1.5 of my System Integrity Monitor (SIM). SIM is essentialy a shell application, it does not install any 3rd party software with it nor does it make any modifications beyond its own files. It uses binaries retily availible on most systems to complete its tasks (e.g: bin mail, grep, awk, ps, proc fs etc..). It wont have and adverse effects that may hinder the proper function of major system services nor control panels. It is not a compiled program (rather a shell app), as such its source can be easily verified and anylized at will.

Further details pertaining to SIM, can be found at:
http://www.r-fx.net/sim.php

Any opinions and thoughts for imrpovment would be of great help - thanks :)

P.S: if anyone has ideas/needs a nifty script for a given purpose let me know im always up to doing something

roly
07-06-2002, 11:34 PM
demo?

rfxn
07-06-2002, 11:40 PM
its a bit difficult to provide a demo, to a command line script/app.

allan
07-07-2002, 09:45 PM
rfxn -- does the script maintain historical information? If I wanted to keep track of how often a service was unavailable would this do it?

rfxn
07-08-2002, 02:43 AM
yes you can use the sim.log to view the history info on sim actions (witch detail when services are down and actions therein), and/or the status output from sim -s.

example:
root@magnum [~]# sim -s
SIM 1.7 <sim@r-fx.org>
=======================
- Events Summary:
Total events: 3

- Service Summary:
FTP [online - 1 events]
HTTP [online - 0 events]
DNS [online - 2 events]
SSH [online - 0 events]
MYSQL [online - 0 events]


As shown above we see their has been 2 events for DNS and 1 event for FTP on my server - service events include but are not limited to, when a service is down & restarted - So an event for a service may not always indicate it was down (thus why sim.log should be checked). You can also use the -l argument on sim to view the logfile.

example:
root@magnum [~]# sim -l
[07/08/02 02:21:47]: DNS service is offline.
[07/08/02 02:21:47]: Restarted DNS service (2 DNS events today).

rfxn
07-08-2002, 04:37 AM
new ver of SIM is up, if anyone cares :P (current users can run # sim -u).

http://magnum.r-fx.net/downloads/sim-1.8.tar.gz