Home Folder for Nagios is wiped on Reboot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nagios2 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: nagios2
When setting up plugings to connect via ssh to check things on remote systems, it's nice to be able to setup RSA authentication. This requires files in ~/.ssh for the nagios user. The nagios user's home for the ubuntu package is /var/run/nagios2. If a user does figure out how to add known_hosts and id_rsa files in that folder when the computer restarts those files are wiped and the has to restore the files before the plugins will return OK. I'm suggesting that giving nagios a home folder that is not wiped will help reduce the time it takes for users to setup and use nagios.
debian/
> This requires files in ~/.ssh for the nagios user
Not exactly. You can (and should) run ssh with the -F option to specify a configfile that will point to files in other locations. Example :
ssh -F /var/lib/ nagios/ ssh_config ...
/etc/nagios/ ssh_config: nagios/ known_hosts nagios/ id_rsa
UserKnownHostsFile /var/lib/
IdentityFile /var/lib/
...
nagios shouldn't have a "real" home folder.
Closing as invalid, feel free to reopen if the provided solution is not working.