Nagios Core - No alert on service check
Posted: Tue Apr 20, 2021 4:08 pm
I'm new to Nagios, so I apologize if anything I'm asking seems silly.
I'm running Nagios Core (4.4.6) to monitor a homemade Ubuntu Linux router with a RAID 1 array. Nagios is running on that machine, so monitoring the localhost. I've successfully set up and received notifications for the status of the RAID array (using https://exchange.nagios.org/directory/P ... id/details) when I purposely set one of the partitions as faulty. I am now trying to set up a "daily update" alert for the RAID array to confirm that it is being checked and is healthy. The service check is set up separately from the previous RAID check (that will alert me anytime there is a problem), but using the same command script. Here's what I've done:
1) Defined the service in localhost.cfg
2) Defined checkhours as a specific 5 hour time period every day in timeperiods.cfg
3) Sent a Custom Service Notification to check that the notification can be sent for that service
What am I missing that I need to do? Any help is appreciated.
I'm running Nagios Core (4.4.6) to monitor a homemade Ubuntu Linux router with a RAID 1 array. Nagios is running on that machine, so monitoring the localhost. I've successfully set up and received notifications for the status of the RAID array (using https://exchange.nagios.org/directory/P ... id/details) when I purposely set one of the partitions as faulty. I am now trying to set up a "daily update" alert for the RAID array to confirm that it is being checked and is healthy. The service check is set up separately from the previous RAID check (that will alert me anytime there is a problem), but using the same command script. Here's what I've done:
1) Defined the service in localhost.cfg
Code: Select all
define service {
host_name localhost
service_description RAID Daily Status
check_command check_md_raid
max_check_attempts 1
check_interval 1,440
active_checks_enabled 1
check_period checkhours
notification_interval 1,440
notification_period 24x7
notification_options w,c,r,u
notifications_enabled 1
contacts nagiosadmin
contact_groups admins
}
3) Sent a Custom Service Notification to check that the notification can be sent for that service
What am I missing that I need to do? Any help is appreciated.