Send Test Syslog Message
I have test emails send daily, but what I failed to test was my syslog server. Now that I’ve had it brick on me, I’m now doing daily test syslog messages.
I then use this simple PHP script to send the message:
1 2 3 4 5
<?php require_once('/root/syslog-check/syslog.php'); $syslog = new Syslog(); $syslog->Send('188.8.131.52', 'syslog test message'); ?>
Last, I setup a match script in cacti’s syslog to match “syslog test message”. Simple enough 🙂