diff --git a/modules/monitoring/application/views/scripts/hosts/show.phtml b/modules/monitoring/application/views/scripts/hosts/show.phtml
index e79fb00eb..5c00cf827 100644
--- a/modules/monitoring/application/views/scripts/hosts/show.phtml
+++ b/modules/monitoring/application/views/scripts/hosts/show.phtml
@@ -31,12 +31,14 @@
null,
array('icon' => 'reply')
); ?>
+ hasPermission('monitoring/command/send-custom-notification')): ?>
= $this->qlink(
sprintf($this->translate('Send a custom notification for all %u hosts'), $hostCount),
$sendCustomNotificationLink,
null,
array('icon' => 'comment')
); ?>
+
0): ?>
= sprintf(
diff --git a/modules/monitoring/application/views/scripts/services/show.phtml b/modules/monitoring/application/views/scripts/services/show.phtml
index f6e98754b..a71e32792 100644
--- a/modules/monitoring/application/views/scripts/services/show.phtml
+++ b/modules/monitoring/application/views/scripts/services/show.phtml
@@ -31,12 +31,14 @@
null,
array('icon' => 'reply')
); ?>
+ hasPermission('monitoring/command/send-custom-notification')): ?>
= $this->qlink(
sprintf($this->translate('Send a custom notification for all %u services'), $serviceCount),
$sendCustomNotificationLink,
null,
array('icon' => 'comment')
); ?>
+
0): ?>
= sprintf(
diff --git a/modules/monitoring/configuration.php b/modules/monitoring/configuration.php
index fa7732e10..8df5d5d85 100644
--- a/modules/monitoring/configuration.php
+++ b/modules/monitoring/configuration.php
@@ -55,6 +55,10 @@ $this->providePermission(
'monitoring/command/feature/object',
$this->translate('Allow processing commands for toggling features on host and service objects')
);
+$this->providesPermission(
+ 'monitoring/command/send-custom-notification',
+ $this->translate('Allow sending custom notifications for hosts and services');
+);
$this->provideRestriction(
'monitoring/hosts/filter',