Viewing Nagios information and generating reports

Nagios information

The web interface allows us to check the Nagios daemon status along with general information on features enabled and disabled. It also allows to check the performance information related to Nagios. This can be used to make sure that your Nagios is not overloaded with checks to perform as well as see how much time checks take and how often they’re performed.

Viewing process information

The Nagios Process Information page shows generic information about the Nagios process. It also allows performing several actions from the Process Commands panel. This page can be accessed via the Process Info link from the menu on the left.

The following is a screenshot of the page:



The page contains information on the Nagios version, process ID, status, and log rotation. It also shows whether checks, notifications, and many other functions are enabled.

The menu on the right also allows us to stop and restart the Nagios daemon. It also allows us to enable and disable performing checks by sending notifications. Flap detection and performance data processing can also be turned on or off from this page.

Checking performance information

The Program-Wide Performance Information page shows information about the performance and load of the Nagios process. This page can be accessed via the Performance Info link in the menu on the left.

The following is a screenshot of the page:



The page contains information on the number of host and service checks performed within various periods of time as well as the number of reports received from external applications. It also contains a number of commands received from external applications; this usually means the web interface.

The page also contains information on average check execution times as well as latencies. This information is useful to determine if the Nagios process is not overloaded. If the average latency is above 60 seconds or is constantly growing then this means that Nagios is not able to perform all of the checks. In such cases, it is a good idea to increase the check or notification intervals so that the number of commands Nagios runs is lower.

Generating reports

One of the most important features of the web interface is the ability to create reports. Many large companies need these reports to make decisions at higher management levels; however, even smaller ones can benefit from it. The reporting functionality can also be used to browse historical notifications and alerts and see complete logs from a specified period.

Nagios offers the following types of reports:

  • Trend reporting for host or service: This shows state history changes for a single object along with status information from performed checks

  • Availability report for hosts or services: This shows reports on how much time an object has spent in a particular status; it can report all objects or a single object; it can also generate reports for host groups and service groups

  • Alert histogram: This shows the number of alerts that have occurred over a period of time for a particular host or service

In addition, Nagios can report a history of alerts, notifications, or all events. This can be considered for reading Nagios logs in a more convenient way. It allows reading history either for all hosts and/or services as well as for a specific object. The logs are also formatted in a more readable way.

Generating most reports begins with choosing the report type, then the object type of the host, host group, service, or service group. Then either all or a specific object is chosen for which the report will be generated.

Next, a form for specifying the period for which a report should be generated along with many additional options, which can be dependent on the type of report that should be generated. Additionally, a time period can be specified so that the report only includes specific time periods such as working hours.

The following is a screenshot of a sample form for specifying parameters to a report, the actual fields might vary depending on the type of report you want to generate:



After specifying the parameters to the form and submitting it, the web interface will generate a report that matches your criteria. Some types of report also allow us to export the information into the CSV format for further analysis. For trend history report, it is also possible to zoom in or out in order to customize the period for which the report is generated.

The following is a screenshot of the availability report of all hosts. It shows how much time all hosts have been up, down, or unreachable due to parent machines not being up:



The report shows information for all hosts as a table along with the summary of overall availability.

It is possible to change the parameters of a report after it has been first generated to modify the reported period or information.

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 *

5 + 3 =