Search found 20 matches

by BackNBlack
Thu Oct 01, 2020 10:59 am
Forum: Nagios XI
Topic: Permission denied errors in my audit logs
Replies: 11
Views: 2660

Re: Permission denied errors in my audit logs

Here you go ls -la /usr/local/nagios/var/rw/ total 8 drwsr-xr-x 2 nagios nagios 4096 Oct 1 15:17 . drwxrwxr-x 6 nagios nagios 4096 Oct 1 15:38 .. prw-rw---- 1 nagios nagios 0 Oct 1 15:17 nagios.cmd srw-rw---- 1 nagios nagios 0 Oct 1 15:17 nagios.qh FYI, We have another environment with what is suppo...
by BackNBlack
Thu Oct 01, 2020 9:34 am
Forum: Nagios XI
Topic: Permission denied errors in my audit logs
Replies: 11
Views: 2660

Re: Permission denied errors in my audit logs

Hi Guys, We're going to hold off on rebuilding just yet. Thanks for the help, let's see where this new information leads us. An update, the snmpget and snmpwalk entries have stopped but the php entries are constant and still persist. I have the answers to your last questions: Sudoers: #Defaults requ...
by BackNBlack
Thu Jan 24, 2019 12:39 pm
Forum: Nagios Network Analyzer
Topic: Limiting logging to /var/log/messages
Replies: 11
Views: 4926

Re: Limiting logging to /var/log/mesages

Finally! Thanks for all the help, here is the fix:

Code: Select all

[root@myhost rsyslog.d]# cat /etc/rsyslog.d/nfcapd.conf 
:programname,isequal,"nfcapd" stop
& ~

[root@myhost rsyslog.d]# service rsyslog restart
by BackNBlack
Thu Jan 24, 2019 10:13 am
Forum: Nagios Network Analyzer
Topic: Limiting logging to /var/log/messages
Replies: 11
Views: 4926

Re: Limiting logging to /var/log/mesages

Thanks for quick reply, one question.

Put both of these lines in the /etc/rsyslog.conf file in the rules section?
by BackNBlack
Thu Jan 24, 2019 7:44 am
Forum: Nagios Network Analyzer
Topic: Limiting logging to /var/log/messages
Replies: 11
Views: 4926

Re: Limiting logging to /var/log/mesages

Sorry, it is still not working, here is the error i am getting from the change; [root@myhost rsyslog.d]# pwd /etc/rsyslog.d [root@myhost rsyslog.d]# cat nfcapd.conf if $programname == 'nfcapd' then { stop } [root@myhost rsyslog.d]# service rsyslog status rsyslogd (pid 1664) is running... [root@myhos...
by BackNBlack
Wed Dec 19, 2018 3:40 pm
Forum: Nagios Network Analyzer
Topic: Limiting logging to /var/log/messages
Replies: 11
Views: 4926

Re: Limiting logging to /var/log/mesages

Hmm,
I'm using rsyslog-5.8.10-10.el6_6.x86_64 on a CentOS 6.9 system. I'll look around to see if it supports that command or not.
by BackNBlack
Wed Dec 19, 2018 1:32 pm
Forum: Nagios Network Analyzer
Topic: Limiting logging to /var/log/messages
Replies: 11
Views: 4926

Re: Limiting logging to /var/log/mesages

That did not work :(
by BackNBlack
Tue Dec 18, 2018 2:28 pm
Forum: Nagios XI
Topic: Limit logging to /var/log/messages
Replies: 6
Views: 1124

Re: Limit logging to /var/log/messages

Yes
by BackNBlack
Tue Dec 18, 2018 12:01 pm
Forum: Nagios Network Analyzer
Topic: Limiting logging to /var/log/messages
Replies: 11
Views: 4926

Limiting logging to /var/log/messages

Hi, I would like to eliminate some log messages going to /var/log/messages and would like to know the best way to do this. These messages are written every 5 minutes and don't seem too important to me but what do I know. How can I turn these off/filter them out without affecting the proper functioni...
by BackNBlack
Tue Dec 18, 2018 10:59 am
Forum: Nagios XI
Topic: Limit logging to /var/log/messages
Replies: 6
Views: 1124

Re: Limit logging to /var/log/messages

Bingo!

Adding that line to the local rsyslog.conf file will eliminate the "Trimming" entries from the local /var/log/messages file and also the loghost.

Thanks!