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
Schedule Immidiate Check Issues
Schedule Immidiate Check Issues
Last edited by sreinhardt on Mon Jun 03, 2013 3:41 pm, edited 1 time in total.
Reason: separated as this is a totally different issue.
Reason: separated as this is a totally different issue.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Schedule Immidiate Check Issues
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.phpCode: 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 startNagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Schedule Immidiate Check Issues
Hello,
We upgraded from Nagios XI 2011R2.2 and running on VM CentOS 6. The first output is attached....
Thanks.
We upgraded from Nagios XI 2011R2.2 and running on VM CentOS 6. The first output is attached....
Thanks.
You do not have the required permissions to view the files attached to this post.
Re: Schedule Immidiate Check Issues
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 ]
[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 ]
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Schedule Immidiate Check Issues
We found a solution that should work for you, please open the following file and make the edits suggested:
Changing the 2 to a 1. Then write this file, this should resolve your problems. Please try scheduling checks again after this change.
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);Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Schedule Immidiate Check Issues
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.
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
The above fix was the band-aid. Just stay tuned to the XI updates and get 2.2 when it is released.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Schedule Immidiate Check Issues
Ok thanks.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Schedule Immidiate Check Issues
How is 2.2 working out for you?