# User Manual Configuration tasks can be carried out either through the Energy Monitor user interface or via the command line. These tasks should only be performed by users with the necessary experience and permissions, particularly when using the command line. ## Configuration Page Most of Energy Monitor's key configuration functions can be found on the configuration page, accessible by clicking **Manage -> Configure**.  From the configuration page, you can manage the following: - **Monitoring objects** - **Users, contacts, and permissions** - **Reusable objects**: This includes templates, time periods, management packs, and commands. For more details, see [Reusable configuration](#reusable-configuration). - **Graphs** Additional tasks you can perform: - Search for an existing host to configure. - View a list of plugins along with their support details. ### Common Configuration Features Different configuration functions share some common features: - **Search field**: Enter an existing configuration object to edit, or click **New** for a new configuration. - **Related items links**: Access related configuration items from the links on the right. - **Object type menu**: Switch between configuration pages for different object types using the menu on the right. - **File ID field**: Located at the bottom of the configuration values, this field specifies the system configuration file in the /etc directory where the configuration is stored, such as `/etc/hosts.cfg`.
Note: It is not recommended to update the system configuration file directly.### Configuration Shortcuts Energy Monitor provides several shortcuts to streamline the configuration process: - Clone objects - Copy objects - Propagate settings from one object to other objects of the same type - Delete objects - Bulk delete objects You can switch between object types using the **Object type menu** to view and configure related items. These shortcuts work consistently across all object types. ### Saving Configuration Changes and Viewing the Changelog To save your configuration changes, click **Save** in the top bar of the configuration page. Energy Monitor usually saves most configuration objects to the configuration database, with some exceptions such as the Permissions section. Visual cues indicate when you need to save a configuration, as explained in the workflow below: 1. Click an object on the configuration page and make changes. 2. Click **Submit**. 3. Repeat steps 1 and 2 as needed. 4. Click **Save** in the top bar of the configuration page to save all your changes and those made by other users. When there are unsaved changes, the number of unsaved changes appears next to the **Save** button, and details are displayed next to the objects with unsaved changes.
Note: Users need export permissions to save changes.
Note: Configuration changes are not finalized until you click Save, which saves your changes to the Energy Monitor database. For more details, refer to Saving configuration changes and viewing the changelog in the Introduction to configuration.
Caution: Using the user interface to configure Energy Monitor objects is the only supported method for updating object configurations in Energy Monitor. We do not support direct modifications to object configuration files. Energy Monitor uses Livestatus to parse configuration files, and manual changes to these files can cause conflicts with Livestatus data and API calls. However, advanced users can create custom configuration files.
Ensure you have administrative access to the Windows host: You need administrative privileges to install software on the Windows host.
Ensure that you use the appropriate NRPE commands or other commands defined in the nsclient.ini file.
Ensure that you have Energy Monitor installed and configured.
Ensure you have administrative access to both the Energy Monitor server and the Linux systems you want to monitor.#### Step 1: Install NRPE and Nagios Plugins on Linux Host 1. **Update Package Repository**: ```bash sudo apt update # For Debian/Ubuntu sudo yum update # For CentOS/RHEL ``` 2. **Install NRPE and Nagios Plugins**: ```bash sudo apt install nagios-nrpe-server nagios-plugins # For Debian/Ubuntu sudo yum install nrpe nagios-plugins-all # For CentOS/RHEL ``` 3. **Configure NRPE**: - Open the NRPE configuration file: ```bash sudo vim /etc/nagios/nrpe.cfg # Path may vary depending on distribution ``` - Add the IP address of your Energy Monitor server to the `allowed_hosts` directive: ```ini allowed_hosts=127.0.0.1,ENERGY_MONITOR_SERVER_IP ``` 4. **Define Commands in NRPE Configuration**: - Add or modify commands in the `nrpe.cfg` file to match your monitoring requirements. Here are some example command definitions: ```ini command[check_load]=/usr/lib/nagios/plugins/check_load -w 5,4,3 -c 10,8,6 command[check_disk]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p / command[check_procs]=/usr/lib/nagios/plugins/check_procs -w 150 -c 200 ``` 5. **Restart NRPE Service**: ```bash sudo systemctl restart nagios-nrpe-server # For Debian/Ubuntu sudo systemctl restart nrpe # For CentOS/RHEL ``` #### Step 2: Configure Energy Monitor 1. **Log in to the Energy Monitor web interface**: - Open a web browser and log in to the Energy Monitor admin panel. 1. **Add a new host**: - Navigate to Manage -> Configure -> Hosts.  1. **Enter host details**: - Provide the hostname, IP address, and other required details.  1. **Save the configuration and perform a test**: - Save the new host configuration and perform a monitoring test to ensure that Energy Monitor can communicate with the Windows host correctly.  1. **Save Configuration and Apply Changes**: - Save your configuration changes and apply them. This will update the Energy Monitor system to start monitoring the new Linux host and its services. #### Step 3: Add services 1. **Search for added host**: - Use a search bar  1. **Open configuration**: - Open configuration of freshly added host from listview:  - After open host configuration got to it services configuration:  1. **Add service**: - Fill service description(reuired) - Choose correct `check_command` to monitor required parameter - Fill `check_command_args` if required or create `Custom Variable`  1. **Test if configuration of new service is correct**: - After filled up necessary firlds you can check response of service by clicking in `Test This Check`:  1. **Submit and Save** - All changes in configuration(like adding new object) need to be submited by clicking in submit button at the bottom of object configuration page. - Next you need to perform save like at "Add host" step. - Before perform save you can add as many services as you want. #### Step 4: Verification and Monitoring 1. **Verify Host and Services Status**: - Check the Energy Monitor dashboard to ensure the newly added Linux host and its services are listed and being monitored. 2. **Set Up Notifications**: - Configure notifications to alert you in case of any issues with the monitored Linux host. Navigate to `Configuration` -> `Notifications` and set up your preferred notification methods (e.g., email, SMS). ### Benefits of Monitoring with Energy Monitor - **Centralized Monitoring**: Ability to monitor all Linux systems from a single, central location. - **Early Problem Detection**: Quickly identify performance and availability issues. - **Compliance with Security Policies**: Maintain compliance with internal and external security requirements. - **Automation of Management**: Automated data collection and reporting streamline IT infrastructure management. By following this procedure, you can effectively monitor your Linux systems using Energy Monitor, ensuring high levels of system availability and performance.