Critical/config: Error: Validation failed for object 'BRFNotification'; Attribute 'command': Object 'mail-service-notification' of type 'NotificationCommand' does not exist. Location: in /var/lib/icinga2/api/packages/director/4b0eec25

I have a icinga node stand alone installation which is working fine with director module for deploying hosts. I tried distributed architecture for icinga in my existing node using icinga node wizard as master , after running the node wizard my validation failed and i’m getting this

2023-07-18 08:17:22 -0400] critical/config: Error: Validation failed for object ‘BRFNODE1!cpu-load-avg-1-minute!notifications_service_silta’ of type ‘Notification’; Attribute ‘command’: Object ‘mail-service-notification’ of type ‘NotificationCommand’ does not exist. Location: in /var/lib/icinga2/api/packages/director/4b0eec25-e595-4054-95f2-

== I have a mail-service-notification template in Notification

object NotificationCommand “mail-host-notification” {
import “plugin-notification-command”
command = [ “/etc/icinga2/scripts/mail-host-notification.sh” ]
timeout = 1m
arguments += {
“-4” = “$notification_address$”
“-6” = “$notification_address6$”
“-b” = “$notification_author$”
“-c” = “$notification_comment$”
“-d” = {
required = true
value = “$notification_date$”
}
“-f” = {
description = “Set from address. Requires GNU mailutils (Debian/Ubuntu) or mailx (RHEL/SUSE)”
value = “$notification_from$”
}

Any one can help to resolve this , to pass the validation
@rsx