CloudBees CD/RO integration to Nagios
The plugin interacts with the Nagios’s command-line tool, the Nagios utility allows you to perform different actions getting the same results that you would get from the web-based interface.
EC-Nagios implements the most important actions to manipulate Host and Host Groups. It allows the enabling and disabling of Host and Host Groups.
CloudBees CD/RO itself provides some advantages like parameters checking, easy functionality selection using only check boxes, combo buttons, historical log reports, procedure duration statistics, simple credentials attachment, real time analysis of the log been generated, among others.
There are two issues to take into account, CloudBees CD/RO in this particular case is unable to get historical log reports and all the actions associated with this because of the way Nagios works. These also means that the user must be really careful when writing the parameters, because there is no way to know if the procedure goes wrong or right.
More information can be found at Nagios.
Plugin Version 1.0.3.2020102201
Nagios links
More information can be found at Nagios.
CloudBees CD integration to nagios
The plugin interacts with the Nagios’s command-line tool, the Nagios utility allows you to perform different actions getting the same results that you would get from the web-based interface.
EC-Nagios implements the most important actions to manipulate Host and Host Groups. It allows the enabling and disabling of Host and Host Groups.
CloudBees CD itself provides some advantages like parameters checking, easy functionality selection using only check boxes, combo buttons, historical log reports, procedure duration statistics, simple credentials attachment, real time analysis of the log been generated, among others.
There are two issues to take into account, CloudBees CD in this particular case is unable to get historical log reports and all the actions associated with this because of the way Nagios works. These also means that the user must be really careful when writing the parameters, because there is no way to know if the procedure goes wrong or right.
Plugin procedures
For all parameter descriptions below, required parameters are shown in bold italics. |
DisableHostNotifications
Disables notifications for a particular host.
-
Command to be executed: printf "[$TimeStamp] DISABLE_HOST_NOTIFICATIONS;$Host\n" > $commandFileLocation
Parameter | Description |
---|---|
Host |
Specify the host that you want to disable. (Required) |
Command File Location |
Specify the location of the command file with the command_file option. Its best to put the external command file in its own directory (i.e. /usr/local/nagios/var/rw). The default value for this parameter is /usr/local/nagios/var/rw/nagios.cmd, this file should have enabled writing permissions. |
EnableHostNotifications
Enables notifications for a particular host.
-
Command to be executed: printf "[$TimeStamp] ENABLE_HOST_NOTIFICATIONS;$Host\n" > $commandFileLocation
Parameter | Description |
---|---|
Host |
Specify the host that you want to enable. (Required) |
Command File Location |
Specify the location of the command file with the command_file option. Its best to put the external command file in its own directory (i.e. /usr/local/nagios/var/rw). The default value for this parameter is /usr/local/nagios/var/rw/nagios.cmd, this file should have enabled writing permissions. |
DisableHostGroupNotifications
Disables notifications for all hosts in a particular hostgroup.
-
Command to be executed: printf "[$TimeStamp] DISABLE_HOSTGROUP_HOST_NOTIFICATIONS;$hostGroup\n" > $commandFileLocation
Parameter | Description |
---|---|
Host Group |
Specify the host group that you want to disable. (Required) |
Command File Location |
Specify the location of the command file with the command_file option. Its best to put the external command file in its own directory (i.e. /usr/local/nagios/var/rw). The default value for this parameter is /usr/local/nagios/var/rw/nagios.cmd, this file should have enabled writing permissions. (Required) |
EnableHostGroupNotifications
Enables notifications for all hosts in a particular hostgroup.
-
Command to be executed: printf "[$TimeStamp] ENABLE_HOSTGROUP_HOST_NOTIFICATIONS;$hostGroup\n" > $commadFileLocation
Parameter | Description |
---|---|
Host Group |
Specify the host group that you want to enable. (Required) |
Command File Location |
Specify the location of the command file with the command_file option. Its best to put the external command file in its own directory (i.e. /usr/local/nagios/var/rw). The default value for this parameter is /usr/local/nagios/var/rw/nagios.cmd, this file should have enabled writing permissions. (Required) |