Unix Log File Monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Srinija544
Posts: 58
Joined: Mon Oct 15, 2018 9:30 pm

Unix Log File Monitoring

Post by Srinija544 »

Moderator Note: Content removed per request
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Unix Log File Monitoring

Post by scottwilkerson »

I'm confused, the following match

You have 2 command with the same name check_file_content_dc1uat163

Code: Select all

command[check_file_content_dc1uat163]=/usr/local/nagios/libexec/check_filecontent_new.pl -f /apps/wildfly-11.0.0/standalone/log/security.log.`date --date='yesterday' +"%Y-%m-%d"` -i "ERROR" -i "FATAL"

command[check_file_content_dc1uat163]=/usr/local/nagios/libexec/check_filecontent_new.pl -f /apps/wildfly-11.0.0/standalone/log/server.log.`date --date='yesterday' +"%Y-%m-%d"` -i "ERROR" -i "FATAL"
I would suggest changing the second one to

Code: Select all

command[check_file_content_dc1uat163_server]=/usr/local/nagios/libexec/check_filecontent_new.pl -f /apps/wildfly-11.0.0/standalone/log/server.log.`date --date='yesterday' +"%Y-%m-%d"` -i "ERROR" -i "FATAL"
restart nrpe

then modify the service command ARGS for server_Log file to use check_file_content_dc1uat163_server
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Srinija544
Posts: 58
Joined: Mon Oct 15, 2018 9:30 pm

Re: Unix Log File Monitoring

Post by Srinija544 »

Hi scottwilkerson,

Thank you so much.

I have changed the command. Now the alerts are fine.

We are good to close this request.

Thannks once again,
Srinija.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Unix Log File Monitoring

Post by scottwilkerson »

Srinija544 wrote:Hi scottwilkerson,

Thank you so much.

I have changed the command. Now the alerts are fine.

We are good to close this request.

Thannks once again,
Srinija.
Great!

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