Date post: | 05-Dec-2014 |
Category: |
Technology |
Upload: | amit-solanki |
View: | 8,711 times |
Download: | 2 times |
What Is Monit?
utility for monitoring and managing daemons(and similar processes), files and directories and devices running on unix systems
starts specified program if they are not running or restarts when they are not responding
daemon mode - poll programs at a specified intervalmonitoring modes - active, passive or manualstart/stop/restart of programsgroup and manage groups of programsprocess dependency definitionlogging to syslog or own logfileconfiguration - comprehensive control fileruntime and tcp/ip port checking (tcp & udp)ssl support for port checkingunix domain socket checkingprocess status and process timeout
Supports
process CPU usage, memory usage, zombie checkcheck the systems load averagecheck a file or directory timestampalert/stop/restart a process based on its characteristicsalert notice for program timeout, restart, checksum, stop resource & timestamp errorflexible and customizable email alert messagesProtocol verification: HTTP, FTP, SMTP, POP, IMAP, NNTP, SSH, DWP, LDAPv2 and LDAPv3An http interface with optional SSL support to make monit accessible from a web browser
Supports
How To Monitor?configured & controlled via a control file called monitrc
default location: ~/.monitrcalternate : /etc/monitrc & ./monitrc
test for syntax error[root@param ~]# monit -tControl file syntax OK
starting monit[root@param ~]# monitmonit daemon at 16388 awakened
stopping monit[root@param ~]# monit quitmonit daemon with pid [16388] killed
The Monit Control FileThree types of statement
Global set-statementsstarts with keyword set and the item to configureset alert [email protected] # Alert system admin on any event
Global include-statementsconsists of keyword include and a glob stringinclude /etc/monit/mysql.monitrc
One or more service entry statementsstarts with the keyword check followed by the service typecheck system example.com
if memory usage > 75% then alert
Available Actions
If <TEST> THEN <ACTION>Available actions
alertrestartstartstopexecunmonitor
Global Statements
Monitoring Process
Apache
Monitoring Process
Mysql
Monitoring Process
Mongrel
Monitoring Process
Mongrel Clusters
Monitoring Process
Solr
capistrano + monit
Web Interface
Demo
Coming up: God, like monit
Config file written in ruby
Easily write your own custom conditions in ruby
Supports both poll and event based conditions
Different poll conditions can have different intervals
Integrated notification system
Easily control non-daemonizing scripts
Thanks !!!