/[monit]/monit/web/doc/examples.php
ViewVC logotype

Diff of /monit/web/doc/examples.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by martinp, Tue May 10 07:15:15 2005 UTC revision 1.12 by martinp, Tue May 17 15:44:53 2005 UTC
# Line 120  it is general enough to be of interest f Line 120  it is general enough to be of interest f
120          <LI><A HREF="#corelin">Watch and analyze crashdumps (Linux)</A></LI>          <LI><A HREF="#corelin">Watch and analyze crashdumps (Linux)</A></LI>
121          <LI><A HREF="#tcpdump1">Start and stop tcpdump based on condition</A></LI>          <LI><A HREF="#tcpdump1">Start and stop tcpdump based on condition</A></LI>
122          <LI><A HREF="#tcpdump2">Rotate tcpdump until condition occures</A></LI>          <LI><A HREF="#tcpdump2">Rotate tcpdump until condition occures</A></LI>
123            <LI><A HREF="#mysqldproc">MySQL event driven process list</A></LI>
124       </ul>       </ul>
125    </li>    </li>
126  </ul>  </ul>
# Line 1127  Monit watches the host availablity and a Line 1128  Monit watches the host availablity and a
1128  </pre>  </pre>
1129    
1130    
1131    <h3><a name="mysqldproc"">MySQL event driven process list</a></h3>
1132    This allows to obtain process list of mysql threads as soon as mysql
1133    refuses connections. For example we needed to know why mysql
1134    returned "Too many connections" to clients occasionaly. (note that
1135    for simplicity in this example is showed mysql root account without
1136    password - you realy should use restricted account ;)
1137    
1138    <pre>
1139     check process mysqld with pidfile /var/run/mysqld.pid
1140       if failed port 3306 protocol mysql then exec "/bin/bash -c '(date && /usr/bin/mysqladmin -u root processlist && echo) >> /tmp/mysql_processlist'"
1141    </pre>
1142    
1143    
1144  <?php include '../include/footer.html'; ?>  <?php include '../include/footer.html'; ?>

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26