Page 1 of 4
Your session has timed out.
Posted: Tue Sep 08, 2015 6:07 am
by ranjitw
Hi ,
When I open the service details tab in nagios xi I am getting session time out error.
When I try accessing the link -
http://x.x.x.x/nagiosxi/includes/compon ... w=services getting the error.
Can you please help in resolving this issue.
Regards,
Ranjit
Re: Your session has timed out.
Posted: Tue Sep 08, 2015 9:07 am
by tmcdonald
Could you please provide a bit more information?
- What XI version is this?
- What OS and version is it installed on?
- Does this happen on any other pages?
Re: Your session has timed out.
Posted: Tue Sep 08, 2015 9:21 am
by ranjitw
What XI version is this?
Nagios XI 2014R2.6
What OS and version is it installed on?
Linux 2.6.32-431.29.2.el6.x86_64 #1 SMP Sun Jul 27 15:55:46 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
Does this happen on any other pages?
This is happening with only this page. I am observing this after restoring the backup using below command
./restore_xi.sh /store/backups/nagiosxi/nagiosxi.1441490404.tar.gz
Attached is the output file while performing restore.
Re: Your session has timed out.
Posted: Tue Sep 08, 2015 11:49 am
by tmcdonald
It might be a somewhat heavy-handed approach, but would a server reboot be an option? This could address several of the issues you have posted in other threads.
Re: Your session has timed out.
Posted: Wed Sep 09, 2015 1:26 am
by ranjitw
Hi tmcdonald,
I have done reboot of the machine but the problem still exists.
Regards,
Ranjit
Re: Your session has timed out.
Posted: Wed Sep 09, 2015 12:59 pm
by lmiltchev
Can you PM me (or any other tech on the Nagios Support team) the profile.zip file?
Admin->System Profile->Download Profile
Re: Your session has timed out.
Posted: Wed Sep 09, 2015 11:44 pm
by ranjitw
Hi lmiltchev ,
I have sent a PM to you the profile.zip file. Please review and provide your comments.
Regards,
Ranjit
Re: Your session has timed out.
Posted: Thu Sep 10, 2015 9:52 am
by tgriep
Thanks for the Profile.
Couple of things. It looks like cron isn't running so can you start it by running the following?
Also, it looks like the system isn't processing the performance data, can you run the following and post the output?
Code: Select all
tail -50 /usr/local/nagios/var/perfdata.log
tail /usr/local/nagiosxi/var/cmdsubsys.log
Now, lets restart some processes to see if the performance data starts to process.
Code: Select all
service npcd stop
service nagios stop
killall -9 nagios
service npcd start
service nagios start
Wait an hour or so for the performance data to get processed and try to apply the config.
Re: Your session has timed out.
Posted: Fri Sep 11, 2015 1:07 am
by ranjitw
Hi tgriep,
Thanks for your inputs.
1) I have started the cron.
2) perfdata.log is not present in the directory -- How to enable this ?
3) Attached the output of cmdsubsys.log
I am able to see the service details tab content now . I have also updated the sudoers file with below entries .
# NEEDED TO ALLOW NAGIOS TO CHECK SERVICE STATUS
Defaults:nagios !requiretty
Defaults:apache !requiretty
nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_init_service
nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_linux_stats.pl
# ASTERISK-SPECIFIC CHECKS
# NOTE: You can uncomment the following line if you are monitoring Asterisk locally
#nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_asterisk_sip_peers.sh, /usr/local/nagios/libexec/nagisk.pl, /usr/sbin/asterisk
User_Alias NAGIOSXI=nagios
User_Alias NAGIOSXIWEB=apache
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios checkconfig
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd status
NAGIOSXI ALL = NOPASSWD:/usr/bin/php /usr/local/nagiosxi/html/includes/components/autodiscovery/scripts/autodiscover_new.php *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/upgrade_to_latest.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/change_timezone.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/reset_config_perms.sh
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/messages
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/httpd/error_log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/mysqld.log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/php /usr/local/nagiosxi/html/includes/components/autodiscovery/scripts/autodiscover_new.php *
NAGIOSXIWEB ALL = NOPASSWD:/etc/init.d/snmptt restart
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/repair_databases.sh
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *
Regards,
Ranjit W
Re: Your session has timed out.
Posted: Fri Sep 11, 2015 9:03 am
by tgriep
That is good to hear. Can you run the following and post the output?
Code: Select all
grep perfdata /usr/local/nagios/etc/pnp/process_perfdata.cfg
ls -l /usr/local/nagios/var/