Critical pattern in nagios
Posted: Thu Jan 15, 2026 4:11 am
Hello,
I need to monitor the string HTTP/1.1" 404 in Nagios, so I'm using the check_logfiles plugin to set up the monitoring. Below is the definition I've created:
However, I'm encountering the following error:
Do you have any suggestions on how to resolve this?
I need to monitor the string HTTP/1.1" 404 in Nagios, so I'm using the check_logfiles plugin to set up the monitoring. Below is the definition I've created:
Code: Select all
define service {
service_description Logfile_xyz 404 exception
host_name xyz
use generic-service
check_command check_logfiles!/logfile pathpath !\\`hostname\\`_404Exception!\\\'HTTP/1.1\\" 404\\\'!6
check_interval 10
contact_groups tivoli_xyz_high
max_check_attempts 2
retry_interval 2
servicegroups project_b2v_details_availability
}Code: Select all
--tag=hostname_404Exception --criticalpattern='HTTP/1.1" 404' --criticalthreshold=6 --htmlencode' returned status 2.