Page 1 of 1

A few nagios questions

Posted: Wed Apr 19, 2017 10:11 am
by alexviso
Kind time of the day,
I recently started using nagios and faced with the fact that I see in the logs a lot of messages here this kind of

nagios : TTY=unknown ; PWD=/var/www/html/nagioslogserver/www ; USER=root ; COMMAND=/etc/init.d/logstash status
apache : TTY=unknown ; PWD=/var/www/html/nagioslogserver/www ; USER=root ; COMMAND=/etc/init.d/elasticsearch status

And there are a lot of such reports, how do I deal with it?

Re: A few nagios questions

Posted: Wed Apr 19, 2017 1:36 pm
by mcapra
Were you wondering why those are being displayed in Nagios Log Server? They're from the local machine's /var/log/messages. If you don't want them in Nagios Log Server, remove this file:

Code: Select all

/etc/rsyslog.d/nagioslogserver.conf
Then restart the rsyslog service.