You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -122,11 +123,12 @@ Perform these steps to manually install xlatnagiosdata:
122
123
2. Create a directory named ```/etc/xlatnagiosdata```
123
124
3. From the download directory, copy ```./daemon/config/xlatnagiosdatad.toml``` to ```/etc/xlatnagiosdata```
124
125
4. From the download directory, copy ```./daemon/config/xlatnagiosdatad.service``` to ```/etc/systemd/system``` (assuming that this is where your distribution places system service files)
125
-
5. From the download directory, copy ```xlatnagiosdatad``` to ```/usr/local/bin```. You may use an alternative location, but you must edit the service file from #4 to match.
126
-
6. If desired, edit the configuration file from step 3.
127
-
7. Reload system daemons: ```sudo systemctl daemon-reload```
128
-
8. Enable the xlatnagiosdata daemon: ```sudo systemctl enable xlatnagiosdatad``` (this sets the daemon to auto-start, you can save this step for later)
129
-
9. Start the xlatnagiosdata daemon: ```sudo systemctl start xlatnagiosdatad```
126
+
5. Open the file that you just copied to ```etc/systemd/system```. Find the line that reads ```User=root```. If Nagios runs under a different account, change accordingly.
127
+
6. From the download directory, copy ```xlatnagiosdatad``` to ```/usr/local/bin```. You may use an alternative location, but you must edit the service file from #4 to match.
128
+
7. If desired, edit the configuration file from step 3.
129
+
8. Reload system daemons: ```sudo systemctl daemon-reload```
130
+
9. Enable the xlatnagiosdata daemon: ```sudo systemctl enable xlatnagiosdatad``` (this sets the daemon to auto-start, you can save this step for later)
131
+
10. Start the xlatnagiosdata daemon: ```sudo systemctl start xlatnagiosdatad```
130
132
131
133
At this point, the daemon should be running. Unless you installed over a previous installation, it's probably not getting any data to gather. Skip to the **Post-Installation Setup** section.
132
134
@@ -173,10 +175,18 @@ After install, you need to do a few things:
173
175
Nagios Core as installed from the Nagios web page installs to ```/usr/local/nagios```. Other repositories and repackaged solutions might use other locations. Under its root install location, Nagios creates a ```/var/spool``` sub-directory. Create an ```xlatnagiosdata``` directory. Example:
**Note**: If you use a different location than ```/usr/local/nagios/xlatnagiosdata```, make sure to edit ```/etc/xlatnagiosdata/xlatnagiosdatad.toml``` to change the "spool_directory" key accordingly.
181
+
Since the nagios service commonly runs under an account other than root, and because this service runs as root, you need to make sure that both accounts can access this directory. The easiest way to do this is give this new folder the same ownership as all its peer folders (view with ```ls -la```). Make sure that ```root``` belongs to the same group as the Nagios account. Example:
**Note**: If you use a different location than ```/usr/local/nagios/var/spool/xlatnagiosdata```, make sure to edit ```/etc/xlatnagiosdata/xlatnagiosdatad.toml``` to change the "spool_directory" key accordingly.
180
190
181
191
### 2. Enable Nagios to Write Performance Data
182
192
@@ -224,12 +234,12 @@ In any .cfg file of your choosing, typically in the ```objects``` directory unde
0 commit comments