Managing downtimes and adding comments in Nagios

Managing downtimes

Nagios allows the use of the web interface to manage scheduled downtimes for hosts and services. This includes listing, adding, and deleting downtimes for both hosts and services.

Checking downtimes statuses

The Nagios web interface lists of all the scheduled downtimes. This page can be accessed by clicking on the Downtime link from the menu on the left. The following is a screenshot of the page:



The page consists of two pages of all the scheduled downtimes, separately for hosts and services. You can delete a downtime by clicking the trash icon on the right in the row that describes this particular downtime entry.

Downtimes can be triggered by other downtimes. When a host downtime is scheduled, Nagios automatically adds downtimes for all child hosts.

Scheduling downtimes

In order to schedule a downtime, open a Host Information or Service Information page and use the Schedule downtime for this host or Schedule downtime for this service option. It is also possible to use the Downtime page to schedule downtimes directly. In that case, you will need to know the host name and service description of the service you want to disable as Nagios will not fill these in automatically.

The following is a screenshot of scheduling downtime for the HTTP service:



The form consists of the host and service name, a comment, and an optional option list to choose a downtime that triggered this host/service to also be down. When specifying time during which the downtime should be scheduled, it is possible to enter Start Time and End Time or use the Duration field. If you want to specify how long the offline will take, choose Flexible in the Type field. Otherwise choose Fixed to specify the start and end time.

Scheduling downtime for a host is very similar; the only differences are that the Service field is not available and the Child Hosts option list is added to specify how child hosts should be handled.

Nagios can automatically schedule downtimes for child hosts. When scheduling a host downtime, an additional option is present on whether child hosts should also be scheduled for downtime and set to be triggered by this downtime.

Managing comments

Nagios allows putting one or more comments associated with a host or a service. These can be anything from Third machine from the top on the left shelf to Reset button not working. Nagios also adds comments automatically in several cases, for example, when an object is scheduled for downtime a comment about it is placed.

Comments associated with a specific object are shown on the host and service detail information pages. They can also be added and removed from these pages.

Nagios also offers a page that allows managing comments for all hosts and services, similar to managing scheduled downtimes. It allows adding and deleting comments for all hosts. You can also navigate to the host or service detailed information page by clicking on an object name. The page can be accessed via the Comments link from the menu on the left.

The following is a screenshot of the comments page:



Clicking on the trash icon next to any comment will delete it. Adding a comment can be done by clicking on a host or service name and then doing so from the detailed information page or by clicking above the table with comments. In the latter case, you will need to specify the host name and service description in the add comment form.

Related Articles

How to add swap space on Ubuntu 21.04 Operating System

How to add swap space on Ubuntu 21.04 Operating System

The swap space is a unique space on the disk that is used by the system when Physical RAM is full. When a Linux machine runout the RAM it use swap space to move inactive pages from RAM. Swap space can be created into Linux system in two ways, one we can create a...

read more

Lorem ipsum dolor sit amet consectetur


Submit a Comment

Your email address will not be published. Required fields are marked *

five × five =