Backend
Introduction
The op5 Monitor backend is called Merlin (Module for Effortless Redundancy and Load balancing In Nagios). It was initially started to create an easy way to set up distributed Nagios installations, allowing Nagios processes to exchange information directly as an alternative to the standard nagios way using NSCA.
When starting making our own GUI for op5 Monitor, called Ninja, we realized that we could continue the work on Merlin and adopt the project to function as backend for the new GUI by adding support for storing the status information in a database, fault tolerance and some other things. This means that Merlin now are responsible for providing status data, acting as a backend, for the op5 Monitor GUI.
Backend parts
•merlin-mod
Responsible for jacking into the NEBCALLBAC_* calls and send them to a socket. If the socket is not available the events are written to a backlog and sent when the socket is available again.
•merlind
The Merlin daemon listens to the socket that merlin-mod writes to and sends all events received either to a database of your choice (using libdbi) or to another merlin daemon. If the daemon is unsuccessful in this it writes to a backlog and sends the data later.
•merlin database
This is a database that includes Nagios object status and status changes. It also contains comments, scheduled downtime etc.
Folders and files
The main parts of op5 Monitor is located in /opt/monitor in the file system.
Table 1 describes the folders in /opt/monitor
Folder | Description |
bin/ | The monitor daemon binary. |
etc/ | The op5 Monitor configuration files. |
op5/ | All o5p specific add-ons. |
sbin/ | The old CGI files. |
share/ | Main parts of the old GUI based on the CGIs. |
var/ | Most logs and the cmd pipe all commands are sent to. |
Tweaks
About
Tweaking your system to improve performance can be a good way to use you hardware more efficient.
Ramdisk
A ramdisk can be enabled for storing spools for performance data and checkresults.
By storing these spools on a ramdisk we can lower the disk I/O significant.
Enable ramdisk
To enabe ramdisk, see
Ramdisk in Administrators Manual.