5.7.1. Browsing System Logs
Figure 5.6. Browsing and Searching through System
These are the steps to follow in order to
browse or look for a specific event into the system logs:
You must choose which
specific words to match by filling the Matching
field (log files contain the words) and/or the but not
matching field (log files which don't contain the words).
At least one of the two fields must be filled.
Then in the
Choose file area select the file you want to
perform the search on. Simply check the corresponding box.
Linux Tools Logs are filled by Mandriva
Linux-specific configuration tools, such as those you
find in the Mandriva Linux Control
Center. Each time these tools modify the system
configuration they write to this log file.
Optionally, you can
restrict the search to a specific day. In that case, check the
Show only for the selected day box and choose the
desired day from the calendar.
When all is set up, click on the
button. The results appear in the
Content of the file area at the bottom.
Clicking on the
button opens a standard dialog letting you
save the search results into a plain text (
5.7.2. Setting up Mail Alerts
In order to facilitate server
monitoring, Mandriva Linux supplies a
simple tool which sends automatic mail alerts whenever something goes
wrong on your server.
Clicking on the button of the LogDrake main
interface (see Figure 5.6, “Browsing and Searching through System
Logs”) starts the wizard. First
you're asked whether you wish to configure or stop the mail alert system.
Choose Configure the mail alert system entry in the
pull-down list, and click .
Figure 5.7. Setting up a Mail Alert:
The next step (Figure 5.7, “Setting up a Mail Alert:
Services”) allows you to select the services
you wish to receive alerts about if they stop working. Simply check the
service boxes which interest you.
The services listed are
the ones present on your system. Here's a list of the currently
Figure 5.8. Setting up a Mail Alert:
Select the load which you
consider unacceptable by moving the Load slider
(Figure 5.8, “Setting up a Mail Alert:
Load”). A high system load may indicate
that a process has gone out of control, or simply that there's a very high
demand on this machine. Therefore a service is suffering from it and is
delayed. As a rule of thumb, the load on your computer should not exceed 3
times the number of processors you have on it.
Figure 5.9. Setting up a Mail Alert:
Finally you need to tell the system to
whom these alerts should be sent (Figure 5.9, “Setting up a Mail Alert:
Provide an e-mail address and the mail server (local or on the Internet)
to relay the alerts to.
When the wizard is
finished, an hourly check is set up to verify services availability and
the system's load. If needed a mail alert is sent to the alerts' recipient
until the problem is solved.