Testing from the "Test Check Command" button from the NagiosXI interface doesn't work the same as doing it from the Nagios linux command line as Nagios. Can this be fixed? It works fine from the Linux command line.
In this case, the problem is because a check_by_ssh plugin at the command line stores the keys in the nagios user's home directory.
When executed via CCM this uses the apache user and hence it doesn't have access to the nagios user's home directory.
So for all further testing of this service you need to:
Make the changes to the service
Save the Service
Apply Configuration
Go back to the home screen and find the Service
When viewing the Service Status Details page click the Schedule a forced immediate check link
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.