restarting nagios through web does not reload config.

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: restarting nagios through web does not reload config.

Post 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.
Former Nagios Employee
uncleVALERA
Posts: 1
Joined: Mon Jul 25, 2016 2:25 pm

Re: restarting nagios through web does not reload config.

Post 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? ;)
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: restarting nagios through web does not reload config.

Post 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 :)
Former Nagios employee
djengineer
Posts: 2
Joined: Fri Aug 12, 2016 8:10 am

Re: restarting nagios through web does not reload config.

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: restarting nagios through web does not reload config.

Post by mcapra »

Awesome news! Is it alright if we lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
djengineer
Posts: 2
Joined: Fri Aug 12, 2016 8:10 am

Re: restarting nagios through web does not reload config.

Post by djengineer »

mcapra wrote:Awesome news! Is it alright if we lock this thread and mark the issue as resolved?
Sounds good to me! :)
Locked