Page 1 of 1

How to direct Nagios to gather certain log files

Posted: Mon May 20, 2019 3:58 pm
by bkeating178
Hey everyone,

I am looking for a way to have Nagios gather certain log files instead of just "system" logs it thinks are important.

Is there a setting somewhere, maybe in the "rsyslog.conf"?

I want to be able to gather logs for applications as well, such as
NextCloud
apache2 (without using the special addon)
Redis
RabbitMQ

Is this something Nagios can do?
Can I tell Nagios to gather all logs from /var/log/*?

Thanks

Re: How to direct Nagios to gather certain log files

Posted: Mon May 20, 2019 4:30 pm
by scottwilkerson
There are instructions in Log Server of you go to "Add Log Source" then in the "File Monitoring" section

Re: How to direct Nagios to gather certain log files

Posted: Tue May 21, 2019 3:56 pm
by bkeating178
Thanks for that,

When I go through that process, I am presented with a new error, any Idea why I might be getting this?

Thanks

Re: How to direct Nagios to gather certain log files

Posted: Wed May 22, 2019 9:38 am
by cdienger
Run the command "rsyslogd -N 1" to get some details about why it may fail. Please provide a copy of the rsyslog.conf and 90-nagioslogserver_mnt_data_nextcloud.log.conf if you're unable to resolve with the help of the output.