Page 2 of 2

Re: restarting nagios through web does not reload config.

Posted: Thu Apr 14, 2016 2:34 pm
by rkennedy
I looked at the NagiosQL site which is now not working, and to add to it we didn't write it. It's a bit difficult to troubleshoot after two years.

I'd take a look at the /etc/sudoers to make sure the permissions are proper for apache/nagios to execute. If everything is firing properly that's most likely the culprit. As I stated above though, it's not a product that we made or maintain so the support we can provide is limited.

Re: restarting nagios through web does not reload config.

Posted: Mon Jul 25, 2016 2:32 pm
by uncleVALERA
I have solved the issue!
# diff /var/www/nagiosql32/admin/verify.php /var/www/nagiosql32/admin/verify.php.orig
345c345
< $strCommandString = "[".mktime()."] RESTART_PROGRAM;".mktime()."\n";
---
> $strCommandString = "[".mktime()."] RESTART_PROGRAM;".mktime();
492c492
Were is my money for beer? ;)

Re: restarting nagios through web does not reload config.

Posted: Mon Jul 25, 2016 3:08 pm
by tmcdonald
If the OP comes back, or anyone who posted after and can confirm the fix, you'll have e-Beer and Internet points :)

Re: restarting nagios through web does not reload config.

Posted: Fri Aug 12, 2016 8:15 am
by djengineer
This fix does work! It wasn't working before, I made the update and it works. I am on Nagios Core version 4.2.0

Re: restarting nagios through web does not reload config.

Posted: Fri Aug 12, 2016 9:24 am
by mcapra
Awesome news! Is it alright if we lock this thread and mark the issue as resolved?

Re: restarting nagios through web does not reload config.

Posted: Wed Aug 24, 2016 7:52 pm
by djengineer
mcapra wrote:Awesome news! Is it alright if we lock this thread and mark the issue as resolved?
Sounds good to me! :)