How to direct Nagios to gather certain log files

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
bkeating178
Posts: 8
Joined: Thu May 09, 2019 11:40 am

How to direct Nagios to gather certain log files

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How to direct Nagios to gather certain log files

Post by scottwilkerson »

There are instructions in Log Server of you go to "Add Log Source" then in the "File Monitoring" section
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
bkeating178
Posts: 8
Joined: Thu May 09, 2019 11:40 am

Re: How to direct Nagios to gather certain log files

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: How to direct Nagios to gather certain log files

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked