qh: Failed to init socket ‘/usr/local/nagios/var/rw/nagios.qh’
For this, I had to edit my (/etc/nagios/)nagios.cfg and
QUERY HANDLER INTERFACE # This is the socket that is created for the Query Handler interface #query_socket=/var/lib/nagios/rw/nagios.qh query_socket=/usr/local/nagios/var/rw/query.sh
Another problem occurred while trying to start nagios..
For this problem, this is the solution found
mkdir /usr/local/nagios/var/rw chown nagios.nagios /usr/local/nagios/var/rw service nagios restart