Service Check - Exclude With RegEx?
Posted: Thu Apr 11, 2024 11:38 pm
We constantly get critical warnings for Google Update services,
I went to the service check to exclude these services however Every time they update they change the name of their update service and therefore i need to constantly add more and more to the exclude
I attempted Regex today but it did not work, im assuming the service check does not handle regex
The Warning I get is below:
CRITICAL: GoogleUpdaterInternalService125.0.6386.0=stopped (auto), GoogleUpdaterService125.0.6386.0=stopped (auto), delayed ()
The exclude i have tried in /usr/local/nagios/etc/config/service.cfg is:
check_command check_nrpe!check_service -a exclude=^GoogleUpdaterService.* exclude=^GoogleUpdaterInternalService.*
Has anyone successfully does this? so i dont have to keep adding each one
I went to the service check to exclude these services however Every time they update they change the name of their update service and therefore i need to constantly add more and more to the exclude
I attempted Regex today but it did not work, im assuming the service check does not handle regex
The Warning I get is below:
CRITICAL: GoogleUpdaterInternalService125.0.6386.0=stopped (auto), GoogleUpdaterService125.0.6386.0=stopped (auto), delayed ()
The exclude i have tried in /usr/local/nagios/etc/config/service.cfg is:
check_command check_nrpe!check_service -a exclude=^GoogleUpdaterService.* exclude=^GoogleUpdaterInternalService.*
Has anyone successfully does this? so i dont have to keep adding each one