Chapter 9. Monitoring OpenStack Using Nagios

Nagios is a system, network, and infrastructure monitoring software application. Nagios offers monitoring and alerting for servers, switches, applications, and services. It alerts users when things go wrong and alerts them again when the problem has been resolved.

Note

By default, PackStack does not install Nagios. To install Nagios, you must set the CONFIG_NAGIOS_INSTALL parameter to y in the answer file or during the interactive set up.

9.1. Accessing the Nagios Dashboard

To access the Dashboard you must have first:
  • Installed the Nagios Dashboard.

Procedure 9.1. Accessing the Nagios Dashboard

  • Log In

    In your browser, open the link for your configuration to access the Dashboard for the first time.
    http://HOSTNAME/nagios/
    Log In

    Figure 9.1. Log In Screen

    Replace HOSTNAME with the host name or IP address of the server on which you installed the Dashboard. The user name and password are available in the 'Additional information:' as shown below:
    **** Installation completed successfully ******
    
    Additional information:
     * A new answerfile was created in: /root/packstack-answers-x.txt
     * To use the command line tools you need to source the file /root/keystonerc_admin created on 192.0.43.10
     * To use the console, browse to http://192.0.43.10/dashboard
     * To use Nagios, browse to http://192.0.43.10/nagios username: nagiosadmin, password : abcdefgh12345678
     * The installation log file is available at: /var/tmp/packstack/x-y/openstack-setup.log
    
    Once you are logged in to Nagios, you can see the browser setup with a left panel that displays different options to monitor the OpenStack service running on your system.
    Nagios Home

    Figure 9.2. Nagios Home