NAgioslogserver Rsyslog

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
saleemthupsee
Posts: 107
Joined: Wed Feb 15, 2017 4:22 am
Location: Paris France
Contact:

NAgioslogserver Rsyslog

Post by saleemthupsee »

Hello,

I added linux files from nagiosxi to nagioslogserver. Is there a way to remove any unwanted syslog from nagiosxi to be sent to nagioslogserver. I used the script from nagioslogserver to perform the installation.

REgards,
Saleem
Paris
Saleem THUPSEE
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: NAgioslogserver Rsyslog

Post by vAJ »

Sounds like you also setup your default syslog messages to route to NLS as well.

Check the contents of /etc/rsyslog.d/

You should see entries for each file that has been configured, as well as the default syslog forwarding:

Code: Select all

[anjohnson@brnxip01 ~]$ ls -l /etc/rsyslog.d/
total 36
-rw-r--r-- 1 root root 747 Jan 23  2017 90-nagioslogserver_usr_local_nagios_var_nagios.log.conf
-rw-r--r-- 1 root root 735 Jan 23  2017 90-nagioslogserver_usr_local_nagios_var_npcd.log.conf
-rw-r--r-- 1 root root 783 Jan 23  2017 90-nagioslogserver_usr_local_nagios_var_perfdata.log.conf
-rw-r--r-- 1 root root 787 Jan 23  2017 90-nagioslogserver_usr_local_nagiosxi_var_perfdataproc.log.conf
-rw-r--r-- 1 root root 749 Jan 25  2017 90-nagioslogserver_var_log_httpd_access_log.conf
-rw-r--r-- 1 root root 743 Jan 25  2017 90-nagioslogserver_var_log_httpd_error_log.conf
-rw-r--r-- 1 root root 773 Jan 25  2017 90-nagioslogserver_var_log_httpd_ssl_access_log.conf
-rw-r--r-- 1 root root 906 Jan 23  2017 99-nagioslogserver.conf
In my case, the 99-nagioslogserver.conf file is the default. If you don't want that, you can remove that file and restart rsyslog or just comment out the lines in the file and leave it.
Andrew J. - Do you even grok?
kyang

Re: NAgioslogserver Rsyslog

Post by kyang »

Thanks @vAJ!

saleemthupsee, Let us know if you have any more questions.
Locked