Please follow the steps below to enable logging of syslog error messages on a Unix or Linux based device.
To log from a Unix system, edit the system's syslog daemon config file, as described below for most common loggers.
First, determine which System Logger is your system using by running the following command:
Is-d/etc/*syslog*
Depending on which file is displayed, please follow these instructions below.
rsyslog.conf
rsyslog is often seen on Debian, Fedora, SuSE, Ubuntu and most other Linux distributions.
- As root, edit /etc/rsyslog.conf or /etc/syslog.conf. Add this line at the end of the file:
*.* @(IP OR DNS NAME OF ONSITE MANAGER)
- Tell rsyslog to activate the change (on most OS's):
sudo killall -HUP rsyslog rsyslogd
On Ubuntu:
sudo service rsyslog restart
Log messages should begin to be sent to the Onsite Manager.
syslog-ng.conf
syslog-ng is often seen on Gentoo 2005.0+ and SuSE 9.3+.
- Configure syslog-ng
As root, edit/etc/syslog-ng.conf
. Find a line starting with source. For example:source s_sys {..}
.
At the end of the file, paste this configuration. Replace s_sys with the source name above, typicallys_sys
,src
,s_all
, ors_local
:
destination d_onsitemanager {
udp("IP OR DNS NAME OF ONSITE MANAGER" port(514));
};
# replace "s_sys" with the name you found:
Log { source(s_sys); destination(d_onsitemanager); };
- Tell syslog-ng to activate the change:
sudo killall -HUP syslog-ng
Log messages should begin transmitting to the Onsite Manager.
syslog.conf
syslogd and sysklogd are often seen on BSDs, CentOS, Gentoo 2004.3 and older, Mac OS X, RHEL Slackware, Solaris and most other Unices.
remote_syslog can also be used in lieu of syslogd.
- As root, edit /etc/syslog.conf with a text editor (like pico or vi). Paste this line at the end of the file:
*.* @(IP OR DNS OF ONSITE MANAGER)
- Tell syslog to activate the change (on most OS's):
sudo killall -HUP syslog syslogd
Log messages should begin transmitting to the Onsite Manager.
Configure Monitoring in Barracuda RMM.
- Open Configuration > Monitors and Alert Rules.
- Search for the device you are wanting to add syslog monitoring for.
- Click Add Monitor, Select Syslog Messages, then click Add Monitor.
- Fill in a Title, and optionally a Description.
- Choose the appropriate Facility and Severity. Optionally a Syslog Message if required.
- Click Alert, give it a title. Optionally, add a description. Click Add under alert rules. Enter in the Facility, Severity, and optionally Text to contain or not contain within the alert.
- Fill out the actions to perform when the alert is triggered
- Click Save.