Unix Log File Monitoring
-
Srinija544
- Posts: 58
- Joined: Mon Oct 15, 2018 9:30 pm
Unix Log File Monitoring
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
I'm confused, the following match
You have 2 command with the same name check_file_content_dc1uat163
I would suggest changing the second one to
restart nrpe
then modify the service command ARGS for server_Log file to use check_file_content_dc1uat163_server
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"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"then modify the service command ARGS for server_Log file to use check_file_content_dc1uat163_server
-
Srinija544
- Posts: 58
- Joined: Mon Oct 15, 2018 9:30 pm
Re: Unix Log File Monitoring
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.
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
Great!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.
Locking thread