Interface down but appers in notifications few hours later

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
chriiis21
Posts: 2
Joined: Sat May 16, 2015 7:45 am

Interface down but appers in notifications few hours later

Post by chriiis21 »

Hello everybody,

I've installed nagios to supervise my debian computer. It's a project that i have with my university.
On the nagios web interface (tactical overview), i see immediatly when i shut down the interface and when i activate it.
But the state of my debian doesn't appaers immediatly in the tab "notification" so i can't receive immedialty an e-mail about the debian's state.
The state appaers in notification tab few hours later.

I found some topic on internet similar in mine but i don't find the solution.

Thank you for your help.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Interface down but appers in notifications few hours lat

Post by Box293 »

This sounds like you're expecting a notification immediately however your max_check_attempts must occur before the object enters a HARD warning/critical/unknown state.

Can you please post the service definition of the host.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
chriiis21
Posts: 2
Joined: Sat May 16, 2015 7:45 am

Re: Interface down but appers in notifications few hours lat

Post by chriiis21 »

Of course :

Code: Select all

# Define a service to "ping" the local machine

define service{
        use                             local-service         ; Name of service template to use
        host_name                  localhost, DebianDUT
        service_description     PING
	check_command	 check_ping!100.0,20%!500.0,60%
        }


# Define a service to check the disk space of the root partition
# on the local machine.  Warning if < 20% free, critical if
# < 10% free space on partition.

define service{
        use                             local-service         ; Name of service template to use
        host_name                  localhost,DebianDUT
        service_description     Root Partition
	check_command        check_local_disk!20%!10%!/
        }



# Define a service to check the number of currently logged in
# users on the local machine.  Warning if > 20 users, critical
# if > 50 users.

define service{
        use                             local-service         ; Name of service template to use
        host_name                  localhost,DebianDUT
        service_description     Current Users
	check_command	 check_local_users!20!50
        }


# Define a service to check the number of currently running procs
# on the local machine.  Warning if > 250 processes, critical if
# > 400 users.

define service{
        use                             local-service         ; Name of service template to use
        host_name                  localhost,DebianDUT
        service_description     Total Processes
	check_command	 check_local_procs!250!400!RSZDT
        }



# Define a service to check the load on the local machine. 

define service{
        use                             local-service         ; Name of service template to use
        host_name                  localhost,DebianDUT
        service_description     Current Load
	check_command	 check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
        }



# 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{
        use                             local-service         ; Name of service template to use
        host_name                  localhost,DebianDUT
        service_description     Swap Usage
	check_command        check_local_swap!20!10
        }



# Define a service to check SSH on the local machine.
# Disable notifications for this service by default, as not all users may have SSH enabled.

define service{
        use                             local-service         ; Name of service template to use
        host_name                  localhost,DebianDUT
        service_description      SSH
	check_command	  check_ssh
	notifications_enabled	  0
        }



# Define a service to check HTTP on the local machine.
# Disable notifications for this service by default, as not all users may have HTTP enabled.

define service{
        use                             local-service         ; Name of service template to use
        host_name                  localhost,DebianDUT
        service_description     HTTP
	check_command	 check_http
	notifications_enabled		0
        }
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Interface down but appers in notifications few hours lat

Post by tmcdonald »

Have you modified your local-service template at all? Please post it as well.
Former Nagios employee
Locked