Page 1 of 1
Schedule Immidiate Check Issues
Posted: Mon Jun 03, 2013 1:24 pm
by tgfde
Hello,
We just upgraded our nagios instance to 2012R2.1. I have not had a chance to play with the dashboard.
However, we are experiencing an issue where the "schedule an immediate check" feature is timing out. The upgrade process went smooth and no errors on the log. Please advise.
Thanks,
tgfde
Re: Schedule Immidiate Check Issues
Posted: Mon Jun 03, 2013 3:51 pm
by sreinhardt
What OS and version are you running? What version of nagios did you upgrade from? Also if you could run the following commands and return the results to us that would be fantastic!
Code: Select all
service nagios status
service ndo2db status
service mysqld status
service postgresql status
service crond status
ps -aux | grep cron
tail -n 50 /var/log/cron
tail -20 /var/log/mysqld.log
ll /usr/local/nagiosxi/scripts
chage -l nagios
cat /etc/group | grep nag
cd /usr/local/nagiosxi
ls -ld ./ cron html html/includes
ll html/config.inc.php
ll html/includes/utils.inc.php
Code: Select all
service nagios stop
service ndo2db stop
service mysqld stop
service npcd stop
service postgresql stop
service httpd stop
service crond stop
chmod +x /usr/local/nagiosxi/scripts/reset_config_perms.sh
/usr/local/nagiosxi/scripts/reset_config_perms.sh
service nagios start
service ndo2db start
service mysqld start
service npcd start
service postgresql start
service httpd start
service crond start
Re: Schedule Immidiate Check Issues
Posted: Wed Jun 05, 2013 9:31 am
by tgfde
Hello,
We upgraded from Nagios XI 2011R2.2 and running on VM CentOS 6. The first output is attached....
Thanks.
Re: Schedule Immidiate Check Issues
Posted: Wed Jun 05, 2013 9:38 am
by tgfde
Second output below....
[root@nagiosxi]# service nagios stop
service ndo2db stop
service mysqld stop
service npcd stop
service postgresql stop
service httpd stop
service crond stop
chmod +x /usr/local/nagiosxi/scripts/reset_config_perms.sh
/usr/local/nagiosxi/scripts/reset_config_perms.sh
service nagios start
service ndo2db start
service mysqld start
service npcd start
service postgresql start
service httpd start
service crond startStopping nagios: .done.
[root@nagiosxi]# service ndo2db stop
Stopping ndo2db: done.
[root@nagiosxi]# service mysqld stop
Stopping MySQL: [ OK ]
[root@nagiosxi]# service npcd stop
NPCD Stopped.
[root@nagiosxi]# service postgresql stop
Stopping postgresql service: [ OK ]
[root@nagiosxi]# service httpd stop
Stopping httpd: [ OK ]
[root@nagiosxi]# service crond stop
Stopping crond: [ OK ]
[root@nagiosxi]#
[root@nagiosxi]# chmod +x /usr/local/nagiosxi/scripts/reset_config_perms.sh
[root@nagiosxi]# /usr/local/nagiosxi/scripts/reset_config_perms.sh
RESETTING PERMS
[root@nagiosxi]#
[root@nagiosxi]# service nagios start
Starting nagios: done.
[root@nagiosxi]# service ndo2db start
Starting ndo2db: done.
[root@nagiosxi]# service mysqld start
Starting MySQL: [ OK ]
[root@nagiosxi]# service npcd start
NPCD started.
[root@nagiosxi]# service postgresql start
Starting postgresql service: [ OK ]
[root@nagiosxi]# service httpd start
Starting httpd: [ OK ]
[root@nagiosxi]# service crond start
Starting crond: [ OK ]
Re: Schedule Immidiate Check Issues
Posted: Wed Jun 05, 2013 9:55 am
by sreinhardt
We found a solution that should work for you, please open the following file and make the edits suggested:
Code: Select all
vi /usr/local/nagiosxi/html/includes/utilsx.inc.php
Edit line 167:
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,2);
to:
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,1);
Changing the 2 to a 1. Then write this file, this should resolve your problems. Please try scheduling checks again after this change.
Re: Schedule Immidiate Check Issues
Posted: Wed Jun 05, 2013 11:15 am
by tgfde
That fixed it.
Is it true that you guys are coming out with R2.2 soon to fix some bug related with SSL changes revolving around curl and php 5.4 support?
Should I be concern since we are on R2.1?
Thanks.
Re: Schedule Immidiate Check Issues
Posted: Wed Jun 05, 2013 11:54 am
by abrist
The above fix was the band-aid. Just stay tuned to the XI updates and get 2.2 when it is released.
Re: Schedule Immidiate Check Issues
Posted: Tue Jun 11, 2013 7:53 am
by tgfde
Ok thanks.
Re: Schedule Immidiate Check Issues
Posted: Tue Jun 11, 2013 9:38 am
by slansing
How is 2.2 working out for you?