benjaminsmith wrote:Hi,
The ramdisk would not affect XI users. Something is still not set up right with the ramdisk, can you post the output to the following commands:Additionally, the manual setup instructions are on page 3 of the doc, I would go through each step again to make sure nothing was missed.Code: Select all
df -h ls -lR /var/nagiosramdisk/ cat /lib/systemd/system/ramdisk.service systemctl status ramdisk.service
Nagios XI Utilizing a RAM Disk in Nagios XI
Benjamin
Code: Select all
# df -h
Filesystem Size Used Avail Use% Mounted on
udev 5.9G 0 5.9G 0% /dev
tmpfs 1.2G 129M 1.1G 11% /run
/dev/sda1 97G 12G 81G 13% /
tmpfs 5.9G 16K 5.9G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 5.9G 0 5.9G 0% /sys/fs/cgroup
tmpfs 100M 44M 57M 44% /var/nagiosramdisk
tmpfs 1.2G 0 1.2G 0% /run/user/1000Code: Select all
# ls -lR /var/nagiosramdisk/
/var/nagiosramdisk/:
total 44384
-rw-r--r-- 1 nagios nagios 1914562 Oct 14 13:20 host-perfdata
-rw-r--r-- 1 nagios nagios 229588 Oct 12 17:15 objects.cache
-rw-r--r-- 1 nagios nagios 42967394 Oct 14 13:20 service-perfdata
drwxrwxr-x 5 nagios nagios 100 Oct 12 17:15 spool
-rw-r--r-- 1 nagios nagios 327115 Oct 14 13:20 status.dat
drwxrwxr-x 2 nagios nagios 40 Oct 14 13:05 tmp
/var/nagiosramdisk/spool:
total 0
drwxrwxr-x 2 nagios nagios 40 Oct 14 13:05 checkresults
drwxrwxr-x 2 nagios nagios 40 Oct 12 17:15 perfdata
drwxrwxr-x 2 nagios nagios 40 Oct 12 17:15 xidpe
/var/nagiosramdisk/spool/checkresults:
total 0
/var/nagiosramdisk/spool/perfdata:
total 0
/var/nagiosramdisk/spool/xidpe:
total 0
/var/nagiosramdisk/tmp:
total 0Code: Select all
~# cat /lib/systemd/system/ramdisk.service
[Unit]
Description=Ramdisk
Requires=local-fs.target
After=local-fs.target
Before=nagios.service
[Service]
Type=simple
RemainAfterExit=yes
Restart=always
ExecStartPre=/usr/bin/mkdir -p -m 775 /var/nagiosramdisk
ExecStartPre=/usr/bin/mount -t tmpfs -o size=100m tmpfs /var/nagiosramdisk
ExecStartPre=/usr/bin/mkdir -p -m 775 /var/nagiosramdisk/tmp /var/nagiosramdisk/spool /var/nagiosramdisk/spool/checkresults /var/nagiosramdisk/spool/xidpe /var/nagiosramdisk/spool/perfdata
ExecStart=/usr/bin/chown -R nagios:nagios /var/nagiosramdisk
[Install]
WantedBy=multi-user.targetCode: Select all
~# systemctl status ramdisk.service
● ramdisk.service - Ramdisk
Loaded: loaded (/lib/systemd/system/ramdisk.service; enabled; vendor preset: enabled)
Active: active (exited) since Tue 2021-10-12 17:15:30 EDT; 1 day 20h ago
Process: 596 ExecStartPre=/usr/bin/mkdir -p -m 775 /var/nagiosramdisk (code=exited, status=0/SUCCESS)
Process: 606 ExecStartPre=/usr/bin/mount -t tmpfs -o size=100m tmpfs /var/nagiosramdisk (code=exited, status=0/SUCCESS)
Process: 607 ExecStartPre=/usr/bin/mkdir -p -m 775 /var/nagiosramdisk/tmp /var/nagiosramdisk/spool /var/nagiosramdisk/spool/checkresults /var/nagiosramdisk/spool/xidpe /var/nagiosramdisk/spool/perfdata (code=exited, status=0/SUCCESS)
Process: 609 ExecStart=/usr/bin/chown -R nagios:nagios /var/nagiosramdisk (code=exited, status=0/SUCCESS)
Main PID: 609 (code=exited, status=0/SUCCESS)
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.UPDATE: Confirmed, RAMdisk configuration appears as outlined under Manual Installation.