Solaris 11 Nagios Log Server configuration

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
lmichel
Posts: 44
Joined: Tue Mar 15, 2011 9:11 am

Solaris 11 Nagios Log Server configuration

Post by lmichel »

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.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Solaris 11 Nagios Log Server configuration

Post by jolson »

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
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked