I am having difficulties configuring my boxes running Solaris 11 to communicate with the Nagios syslog server which I am evaluating right now.
can anyone assist/
i followed the same instruction for Linux but that is not working.
can you please provide a sample configuration file I can use. The one for Linux does not work at all with Solaris.
Solaris 11 Nagios Log Server configuration
Re: Solaris 11 Nagios Log Server configuration
What does your Solaris 11 box typically use for remote logfile generation? Any application that can send logs remotely is capable of logging to Nagios Log Server. Rsyslog and syslog-ng are the most common candidates on Unix-like operating systems. The following stack exchange post may be useful: http://unix.stackexchange.com/questions ... ote-system
You can simply edit the /etc/syslog.conf file and, wherever /var/adm/messages appears, duplicate the line and replace /var/adm/messages by @remoteSystem with remoteSystem being the IP address or hostname of the remote server where to send the logs.
eg:
before:
...
*.err;kern.debug;daemon.notice;mail.crit /var/adm/messages
...
after:
...
*.err;kern.debug;daemon.notice;mail.crit /var/adm/messages
*.err;kern.debug;daemon.notice;mail.crit @jaylogserver
...
Restart syslogd for the change to be taken into account:
# svcadm restart system-log
Note that the remote server must be configured to accept remote messages. If on Solaris too, that would be done with this command:
# svccfg -s system-log setprop config/log_from_remote = true
# svcadm restart system-log