Setting and thresholds two plug-ins are cacti more important two plugins. setting is mainly responsible for sending mail, thresholds mainly to monitor the value of the set threshold, over the threshold to send alarm mail. Because two plug-in function has the correlation--setting not set up the thresholds alarm mail function will have the problem. So put it together for illustration.
The setting function is simple, basically is the mail sends the setting.
Thresholds is divided into threshold settings and mail alarms . Threshold settings can be set to two levels of warning and alarm. There are two ways of setting the threshold. One is a separate setting for specific data, one that is set up for a specific value through a template batch setup , and is suitable for individual configuration; Template settings are not as intuitive as data templates, and are better suited for large batch setups.
Use of setting:
There are a few places to explain briefly:
Mail Services This is the way to send a piece. You can also choose sendmail and PHP mial () Function. Sendmail need to configure the Sendmail Server First, if the monitoring machine itself is configured to mail service can choose this; PHP functions need to be set separately, relatively troublesome. So the SMTP server that uses the extranet directly is selected here .
From name simply displays the sender's name in the message and does not modify the note name of the recipient in the original message.
The DNS options Orange area indicates the DNS option, as long as the /etc/resolv.conf is set up in the monitoring machine.
Such as:. And even after it's set up, it doesn't seem to work.
After the setup is complete, click "Save" on the right, then click on the Green box "Send a Test Email"
This sends the success.
Thresholds
A. separate settings for specific data
Console->thresholds Click "Add" in the top right corner
Select a good host chart to specify the data values to monitor. Then click craete New. After the selection is completed in order to give people a sense of intuition, to avoid errors, will show the relevant chart.
The specific configuration is as follows:
Determine the threshold type first. The choice here is above or below a certain value ( the other two is the time line and the base offset.) Actually I don't know how to use it. )
The second part is to determine the value of the trigger threshold. There are two sets of thresholds, one for warning and one for alarms. In fact, set a can, but to set the level of the value of the alarm can be set two sets. When you're done, click Save in the lower-right corner.
PS: If the previous Setting is not configured well. There is no e-mail here.
Console->thresholds has been able to see the new thresholds.
Click the Thold tab at the top
The first column is a list of thresholds with the status of the thresholds
The second column is the threshold trigger log
The third column is the host status value. Records are recorded for host down and recovery.
Cacti installation records basic use of phase IV cacti (3) Setting and thresholds (mail and threshold alarms)