In the NagiosQL web GUI, section Tools -> Nagios Control, clicking the button the restart Nagios does not properly restart Nagios. This is evident if you look in /usr/local/nagios/var/rw after sending the restart request. Notice that "nagios.cmd"'s timestamp is updated but "live" and "nagios.qh" are old. This is not the case when restarting via command line (service nagios restart).
No errors are reported anywhere and the nagios.log has nothing.
My file permissions are correct for the rw directory:
drwxrws--- nagios nagcmd rw
I've changed /usr/local/nagios/share/nagiosql/admin/verify.php at line 345 to look like:
$strCommandString = "[".mktime()."] RESTART_PROGRAM\n";
That solved the problem.
My versions are
Nagios Core: 4.2.4
NagiosQL: 3.2.0