Security Considerations - Macros
Posted: Thu Mar 02, 2017 8:04 pm
My security officer asked to complete the following document:
https://assets.nagios.com/downloads/nag ... urity.html
to secure our NagiosXI 5.4.2 build on RHEL 6. I've gotten everything, but was confused by the 8th step:
Hide Sensitive Information With $USERn$ Macros. The CGIs read the main config file and object config file(s), so you don't want to keep any sensitive information (usernames, passwords, etc) in there. If you need to specify a username and/or password in a command definition use a $USERn$ macro to hide it. $USERn$ macros are defined in one or more resource files. The CGIs will not attempt to read the contents of resource files, so you can set more restrictive permissions (600 or 660) on them. See the sample resource.cfg file in the base of the Nagios distribution for an example of how to define $USERn$ macros.
I followed the links in the paragraph but still am not sure what I'm looking for to change to make more secure. We have about 200 hosts and 1500 services on our NagiosXI setup and I'm not sure what I would be changing to match this document.
https://assets.nagios.com/downloads/nag ... urity.html
to secure our NagiosXI 5.4.2 build on RHEL 6. I've gotten everything, but was confused by the 8th step:
Hide Sensitive Information With $USERn$ Macros. The CGIs read the main config file and object config file(s), so you don't want to keep any sensitive information (usernames, passwords, etc) in there. If you need to specify a username and/or password in a command definition use a $USERn$ macro to hide it. $USERn$ macros are defined in one or more resource files. The CGIs will not attempt to read the contents of resource files, so you can set more restrictive permissions (600 or 660) on them. See the sample resource.cfg file in the base of the Nagios distribution for an example of how to define $USERn$ macros.
I followed the links in the paragraph but still am not sure what I'm looking for to change to make more secure. We have about 200 hosts and 1500 services on our NagiosXI setup and I'm not sure what I would be changing to match this document.