
Alerts
Alert Parameters
name
A descriptive name for the alert.
object
The fully qualified name of the object to which the alert applies. Currently, must be a server, server instance,
or a peer. See "Alert Types and Object Types" on page 484.
object_type
One of server, si (server instance), or peer.
alert_type
Currently, state_change is implemented.
notify_type
Currentlysupported are: email and syslog. You can specify multiple notification types by separating them
on the command line with a comma ( , ) or vertical bar (| ).
to
If the email notification type isspecified, thisis the list of emailaddresses to which the emailwill be sent.
Multiple emailaddresses must be comma separated with no spaces.
subject
For the email notification type, this is the optionalsubject of the email. For the syslog notification type, this
text is included in the system log message. The text must be enclosed in quotes.
Server Instance Alerts
Setting an alert on a server instance allows you to send email, log a message to the system log, or both, whenever
a server instance is marked up or down by Layer 4 health check probes.
For example, the following sequence of commands creates an alert for the touch user that sends email whenever
the server testserver in server pool named realpool is marked up or down by Layer 4 probes:
eqcli > user touch
eqcli user-tou*> alert testsrvrinst
eqcli user-tou*-alert-tes*> alert_type state_change
eqcli user-tou*-alert-tes*> notify_type email
eqcli user-tou*-alert-tes*> object realpool:testserver
eqcli user-tou*-alert-tes*> object_type si
eqcli user-tou*-alert-tes*> to user@example.com
eqcli user-tou*-alert-tes*> subject "Server instance status email from Eq450-
100."
eqcli user-tou*-alert-tes*> commit
Server Alerts
Setting an alert on a server allows you to send email, log a message to the system log, or both, whenever a server
is marked up or down by Layer 3 health check probes.
For example, the following sequence of commands creates an alert for the touch user that sends email whenever
the server testserver is marked up or down by Layer 3 probes:
eqcli > user touch
eqcli user-tou*> alert testsrvr
eqcli user-tou*-alert-tes*> alert_type state_change
eqcli user-tou*-alert-tes*> notify_type email
488
Copyright © 2013 Coyote Point Systems. A subsidiary of Fortinet, Inc.
Kommentare zu diesen Handbüchern