rollback logging on centos

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

rollback logging on centos

Post 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?
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: rollback logging on centos

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: rollback logging on centos

Post by benhank »

thanks man and remember that I did apologize first! you can lock it
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: rollback logging on centos

Post by scottwilkerson »

benhank wrote:thanks man and remember that I did apologize first! you can lock it
No problem

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked