[Pkg-nagios-devel] Bug#696415: Bug#696415: nagios3: Nagios sends notifications when notifications are disabled with the webgui.

Stig Sandbeck Mathisen ssm at debian.org
Thu Dec 20 22:27:00 UTC 2012


Wiebe Cazemier <wiebe at halfgaar.net> writes:

> When you have external commands enabled and you set a host to 'Disable
> notifications for this host', you still get notifications about its
> services. Expected behavior is that you wouldn't.

The external commands to disable (and enable) host and service
notifications are two different commands with nagios. The web interface
reflects this.

Examples for using the web interface, and external commands generated.

* When you 'Disable notifications for this host', the external command
  sent is:

  [1356041839] EXTERNAL COMMAND: DISABLE_HOST_NOTIFICATIONS;foo.example.com

* When you 'Disable notifications for all services on this host', the
  external command sent is:

  [1356041925] EXTERNAL COMMAND: DISABLE_HOST_SVC_NOTIFICATIONS;foo.example.com

* On the 'Disable notifications for all services on this host', there is
  a checkbox for 'Disable for host, too'. If this is checked, the
  external commands sent are:

  [1356041992] EXTERNAL COMMAND: DISABLE_HOST_SVC_NOTIFICATIONS;foo.example.com
  [1356041992] EXTERNAL COMMAND: DISABLE_HOST_NOTIFICATIONS;foo.example.com

If you use the web interface, you could use the last example.

If you send external commands by hand, or program, you need to send one
DISABLE_ command for the for the host, and one for the services on the
host.

See documentation about external commands at
http://old.nagios.org/developerinfo/externalcommands/commandlist.php

-- 
Stig Sandbeck Mathisen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20121220/1665501f/attachment.pgp>


More information about the Pkg-nagios-devel mailing list