How To - Send syslog alert messages
Syslog is an early remote logging option that, even today, provides us with yet more options with regards to multi-platform functionality in mixing Windows and *nix for logging various bits of information.
There are many documents available on the Internet providing information and details regarding the use of syslogd and the possible uses are beyond the scope of this document.
In this example, we have configured our syslogd to accept messages from our IPSentry machine and configured various actions on the unix box based on the type and content of these messages. The task at hand is to get the message to the syslogd when a monitored item fails or recovers. We will be sending a user
message with alert
While editing an entry...
Select the Syslog tab under Alerts tab.
Set the Alert Status option to Enabled
Mark the Alert Success option as Checked.
Enter the IP Address of the machine running syslogd.
Set the port to 514 (standard Syslog port)
Select user in the Facility list.
Select alert in the Priority list.
Enter the message that should be sent.
Again, IPSentry keywords are available in this text.
Set the Alert Schedule as desired.
Hit OK to save the changes.
Now, when the item fails, an alert will be send to our syslog deamon as a USER:ALERT containing the message text defined in the configuration, upon which, various processes may act based on configuration of the remote system, syslogd, cron, and etc.