Page 1 of 1

Unix Log File Monitoring

Posted: Tue Nov 26, 2019 11:01 pm
by Srinija544
Moderator Note: Content removed per request

Re: Unix Log File Monitoring

Posted: Wed Nov 27, 2019 11:45 am
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

Re: Unix Log File Monitoring

Posted: Thu Nov 28, 2019 1:48 am
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.

Re: Unix Log File Monitoring

Posted: Fri Nov 29, 2019 9:02 am
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