Page 1 of 1

Nagios Core Notification Periods

PostPosted: Wed Mar 30, 2022 10:32 pm
by YUDI
Hi,

I use Nagios Core to monitor servers and PCs send notification to email.
I want notification from PCs send to email only at working ours and notification from server send out 24x5

My PC config like this :
Code: Select all
define host {
use                   windows-server
host_name             YUDI-PC
alias                 YUDI
address               192.168.0.148
hostgroups           div-Settlement
max_check_attempts    5
check_period          workhours
notification_interval 60
notification_period   workhours
}

###############################################################################
#
# SERVICE DEFINITIONS
#
###############################################################################

#########
### 1 ###
#########
define service{
        use                  generic-service
        host_name          YUDI-PC
        service_description     CPU LOAD
        check_command           check_nt!CPULOAD! -l 5,80,90 -s mypasswd
}


But I still receive the PC notification email from all day long.
Help me how to solve my problem please.
Thank you