Quick Start Guide
A Nagios installation has been set up with the purpose to monitor the DAFNE Control System (DCS).
- URL: https://vlmonitor01.lnf.infn.it/nagios/
- username: nagiosadmin
- password: <the root password known to control system staff>
Fig. 1 - Login dialog box
From the main page, click on the left menu on Current Status → Host Groups to display a general status presentation of the various systems.
Fig. 2 - Nagios homepage
Click on a host name to show the status of the services that are monitored for that host.
Fig. 3 - Nagios host groups page
Fig. 4 - NAGIOS detailed view of all the services that are monitored for a given host name
Configuration Guide
Custom Services: Accessing hosts and running check scripts through SSH
Having different systems to monitor, with different OSes (Solaris 9, Linux Centos 4-7, Windows 10), has been decided not to use the available check scripts given by Nagios. Instead, has been written an entire set of custom scripts, using SSH to access and monitor all hosts.
- The public/private keys for Nagios user are in /var/spool/nagios/.ssh/ path and the public key has been deployed to access monitored systems as dante user.
- The folder containing all custom scripts are in /opt/nagios_custom_plugins (synced with git repository https://baltig.infn.it/lnf-da-control/nagios_custom_plugins.git). Here you can find a copy of /etc/nagios where the configuration data resides and a copy of the .ssh Nagios folder.
To create a new service or add a new host, please copy existing services/hosts in /etc/nagios/objects and if one or more new files are created in that folder, remember to add them on /etc/nagios/nagios.cfg and verify if the configuration is correct.
# nagios -v /etc/nagios/nagios.cfg
If no error are present, the service can be restarted.
# systemctl restart nagios