The output of the following is below:
[root var]# ls -lh /var/nagiosramdisk
total 3.4M
-rw-r--r-- 1 nagios nagios 0 Feb 15 11:00 host-perfdata
-rw-r--r-- 1 nagios nagios 3.3M Feb 11 08:43 objects.cache
-rw-r--r-- 1 nagios nagios 0 Feb 15 11:00 service-perfdata
drwxrwxr-x 5 nagios nagios 100 Jan 14 10:58 spool
drwxrwxr-x 2 nagios nagios 40 Feb 15 08:49 tmp
[root var]# ls -lh /var/nagiosramdisk/spool
total 0
drwxrwxr-x 2 nagios nagios 40 Feb 15 08:49 checkresults
drwxrwxr-x 2 nagios nagios 80 Feb 15 11:00 perfdata
drwxrwxr-x 2 nagios nagios 80 Feb 15 11:00 xidpe
[root var]# du -sh /var/nagiosramdisk/spool/*
0 /var/nagiosramdisk/spool/checkresults
0 /var/nagiosramdisk/spool/perfdata
0 /var/nagiosramdisk/spool/xidpe
grep nag /etc/group
nagios
nagcmd
In regards to the ramdisk, it was generated via an fstab entry vs a service file, using the following entry:
tmpfs /var/nagiosramdisk tmpfs defaults,size=700m 0 0
As this was originally a RHEL 6 box that was upgraded to RHEL 7.
Best regards,
Ariel