hpcugent / Lmod-UGent

spec files of Lmod for UGent-HPC
8 stars 7 forks source link

lmod_cache monitoring needs initialized file #24

Closed kwaegema closed 5 years ago

kwaegema commented 7 years ago

The lmod_cache check will fail when not run as root, since it tries to write and chown a file under /var/cache. Workaround:

touch /var/cache/run_lmod_cache.nagios.json.gz
chown vsc40003:nrpe /var/cache/run_lmod_cache.nagios.json.gz

The script should check the existance of this file and give a clear error message if this is missing

wpoely86 commented 7 years ago

@kwaegema it runs as a vsc user.