From 03bd251c275547170a9bd6691c1c27f46cbd74e3 Mon Sep 17 00:00:00 2001 From: Kameron Kenny Date: Mon, 30 Dec 2024 16:01:53 -0500 Subject: [PATCH] don't shcek http on localhost --- docker-compose.yml | 2 +- overlay/opt/nagios/etc/objects/localhost.cfg | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 136cd60..95fafd9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,7 +12,7 @@ services: build: dockerfile: Dockerfile container_name: nagios - image: docker-registry1.in.thelinuxpro.net:5000/tlp/nagios:241230.0.9 + image: docker-registry1.in.thelinuxpro.net:5000/tlp/nagios:241230.0.10 networks: infra_dev_net: ipv4_address: 10.99.23.36 diff --git a/overlay/opt/nagios/etc/objects/localhost.cfg b/overlay/opt/nagios/etc/objects/localhost.cfg index abb7785..91b631e 100644 --- a/overlay/opt/nagios/etc/objects/localhost.cfg +++ b/overlay/opt/nagios/etc/objects/localhost.cfg @@ -2,7 +2,7 @@ # LOCALHOST.CFG - SAMPLE OBJECT CONFIG FILE FOR MONITORING THIS MACHINE # # -# NOTE: This config file is intended to serve as an *extremely* simple +# NOTE: This config file is intended to serve as an *extremely* simple # example of how you can create configuration entries to monitor # the local (Linux) machine. # @@ -107,7 +107,7 @@ define service{ -# Define a service to check the load on the local machine. +# Define a service to check the load on the local machine. define service{ use local-service,graphed-service ; Name of service template to use @@ -118,7 +118,7 @@ define service{ -# Define a service to check the swap usage the local machine. +# Define a service to check the swap usage the local machine. # Critical if less than 10% of swap is free, warning if less than 20% is free define service{ @@ -139,5 +139,6 @@ define service{ service_description HTTP check_command check_http notifications_enabled 0 + register 0 }