Page 1 of 1

rollback logging on centos

Posted: Tue Sep 01, 2020 11:12 am
by benhank
Guys, Im sorry to have to ask this, but I simply cant remember the answer.

I plan on enable logging on a centos6 server, which is running nagiosxi using the Linux curl script

Code: Select all

cd curl -sS -O http://xxxxxxx.xxxxxx.xxx/nagioslogserver/scripts/setup-linux.sh
sudo bash setup-linux.sh -s xxxxxxx.xxxxxx.xxx-p 5544
I also will be running the instructions

Code: Select all

https://assets.nagios.com/downloads/nagios-log-server/docs/Sending-Nagios-Core-Logs-To-Nagios-Log-Server.pdf
My question is if I need to remove everything that I will be setting up, how do I go about it?
Hhow do I stop the host from sending logs and how do I disable nagios from sending its logs to the logserver?

Re: rollback logging on centos

Posted: Tue Sep 01, 2020 4:06 pm
by scottwilkerson
remove the files from /etc/rsyslog.d that contain nagioslogserver

then restart rsyslog

Code: Select all

rm -f /etc/rsyslog.d/*nagioslogserver*.conf
service rsyslog restart

Re: rollback logging on centos

Posted: Wed Sep 02, 2020 11:34 am
by benhank
thanks man and remember that I did apologize first! you can lock it

Re: rollback logging on centos

Posted: Wed Sep 02, 2020 1:47 pm
by scottwilkerson
benhank wrote:thanks man and remember that I did apologize first! you can lock it
No problem

Locking thread