Session times out after about 30 seconds

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dkowalski
Posts: 15
Joined: Wed Feb 01, 2012 2:39 pm

Session times out after about 30 seconds

Post by dkowalski »

Last system configuration problem that I can see... for now.

The nagiosadmin session times out about 30 seconds after being logged in. To combat this while setting up I enabled the auto login for the nagiosadmin account. Not a great or secure permanent solution, the current alternative, working in 30 second spurts is mostly annoying too. I was hoping you might have a fix for this one as well.

Don
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Session times out after about 30 seconds

Post by lmiltchev »

Don,

Did you check your log files for errors or anything unusual, that can point you to the right direction? Try checking:

/var/log/httpd/error_log
/var/log/messages
/usr/local/nagios/var/nagios.log
Be sure to check out our Knowledgebase for helpful articles and solutions!
dkowalski
Posts: 15
Joined: Wed Feb 01, 2012 2:39 pm

Re: Session times out after about 30 seconds

Post by dkowalski »

httpd/error_log results: broken pipe messges then I get dropped like an ugly apple.

Code: Select all

[Fri Feb 10 10:49:15 2012] [info] [client 10.1.0.1] (32)Broken pipe: core_output_filter: writing data to the network
[Fri Feb 10 10:50:51 2012] [info] [client 10.1.0.1] (32)Broken pipe: core_output_filter: writing data to the network
[Fri Feb 10 10:50:53 2012] [info] [client 10.1.0.1] (32)Broken pipe: core_output_filter: writing data to the network
[Fri Feb 10 10:50:54 2012] [info] [client 10.1.0.1] (32)Broken pipe: core_output_filter: writing data to the network
[Fri Feb 10 10:52:12 2012] [error] [client 10.1.0.1] PHP Notice:  Use of undefined constant LEGEND_VER - assumed 'LEGEND_VER' in /usr/local/nagiosxi/html/reports/availability.php on line 189, referer: http://10.1.0.25/nagiosxi/reports/availability.php?&=
[Fri Feb 10 10:52:12 2012] [error] [client 10.1.0.1] PHP Notice:  Use of undefined constant LEGEND_VER - assumed 'LEGEND_VER' in /usr/local/nagiosxi/html/reports/availability.php on line 189, referer: http://10.1.0.25/nagiosxi/reports/availability.php?&=
[Fri Feb 10 10:52:45 2012] [info] [client 10.1.0.1] (32)Broken pipe: core_output_filter: writing data to the network
[Fri Feb 10 10:54:55 2012] [error] [client 10.1.0.1] PHP Notice:  Use of undefined constant LEGEND_VER - assumed 'LEGEND_VER' in /usr/local/nagiosxi/html/reports/availability.php on line 189, referer: http://10.1.0.25/nagiosxi/reports/availability.php?&=
[Fri Feb 10 10:54:55 2012] [error] [client 10.1.0.1] PHP Notice:  Use of undefined constant LEGEND_VER - assumed 'LEGEND_VER' in /usr/local/nagiosxi/html/reports/availability.php on line 189, referer: http://10.1.0.25/nagiosxi/reports/availability.php?&=
[Fri Feb 10 10:55:14 2012] [info] [client 10.1.0.1] (32)Broken pipe: core_output_filter: writing data to the network
[Fri Feb 10 10:57:11 2012] [info] [client 10.1.0.1] (32)Broken pipe: core_output_filter: writing data to the network
[Fri Feb 10 10:57:22 2012] [info] [client 10.1.0.1] (32)Broken pipe: core_output_filter: writing data to the network
[Fri Feb 10 10:57:25 2012] [info] [client 10.1.0.1] (32)Broken pipe: core_output_filter: writing data to the network
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Session times out after about 30 seconds

Post by mguthrie »

If you haven't done this already, try:

Code: Select all

yum install ntp
ntpdate pool.ntp.org
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Session times out after about 30 seconds

Post by lmiltchev »

Install the XI System Profile Component.

http://exchange.nagios.org/directory/Ad ... nt/details

Then go to: Admin->System Config->System Profile, copy and paste the info, so we can review it. You can also click on the "Download Profile" button, save the "profile.txt" file and upload it.
Be sure to check out our Knowledgebase for helpful articles and solutions!
dkowalski
Posts: 15
Joined: Wed Feb 01, 2012 2:39 pm

Re: Session times out after about 30 seconds

Post by dkowalski »

Below is my profile.txt

Code: Select all

Nagios XI Installation Profile
System:
nagiosxi.lvm1.local 2.6.32-220.4.1.el6.i686 i686
CentOS release 6.2 (Final)
Gnome is not installed
Apache Information
PHP Version: 5.3.3
Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20100101 Firefox/10.0
Server Name: 10.1.0.25
Server Address: 10.1.0.25
Server Port: 80
Date/Time
PHP Timezone: America/Phoenix
PHP Time: Mon, 13 Feb 2012 06:16:45 -0700
System Time: Mon, 13 Feb 2012 06:16:45 -0700
Nagios XI Data
nagios (pid 31880) is running...
NPCD running (pid 1487).
ndo2db (pid 1534) is running...
CPU Load 15: 0.54
Total Hosts: 2
Total Services: 17
Function 'get_base_uri' returns: http://10.1.0.25/nagiosxi/
Function 'get_base_url' returns: http://10.1.0.25/nagiosxi/
Function 'get_backend_url(internal_call=false)' returns: http://10.1.0.25/nagiosxi/includes/components/profile/profile.php
Function 'get_backend_url(internal_call=true)' returns: http://localhost/nagiosxi/backend/
Ping Test localhost
Running:

/bin/ping -c 3 localhost 2>&1 

PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.032 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 time=0.024 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=3 ttl=64 time=0.033 ms

--- localhost.localdomain ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.024/0.029/0.033/0.007 ms
Test wget To locahost
WGET From URL: http://localhost/nagiosql/index.php
Running:

/usr/bin/wget http://localhost/nagiosql/index.php 

--2012-02-13 06:16:47-- http://localhost/nagiosql/index.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5259 (5.1K) [text/html]
Saving to: `/tmp/nagiosql_index.tmp'

0K ..... 100% 155M=0s

2012-02-13 06:16:47 (155 MB/s) - `/tmp/nagiosql_index.tmp' saved [5259/5259]
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Session times out after about 30 seconds

Post by mguthrie »

Are you using either the LDAP or AD authentication components with your XI install?


Currently digging some more on this error:

Code: Select all

[Fri Feb 10 10:49:15 2012] [info] [client 10.1.0.1] (32)Broken pipe: core_output_filter: writing data to the network
Here's a solution I found for that error:
http://24x7servermanagement.com/blog/?p=350
dkowalski
Posts: 15
Joined: Wed Feb 01, 2012 2:39 pm

Re: Session times out after about 30 seconds

Post by dkowalski »

the Apache directive had already existed within the httpd.conf file, the line was commented out. Ive enabled it, saved it, and restarted the httpd service. Ill check my logs in for the error and report back. I disabled the auto login for nagiosadmin account, logged out, and back in. My session timed out after about a half minute much to my disappointment.

I double checked to see if I had accidentally enabled AD or LDAP when I was exploring the settings on the management tab. both are disabled.
dkowalski
Posts: 15
Joined: Wed Feb 01, 2012 2:39 pm

Re: Session times out after about 30 seconds

Post by dkowalski »

httpd error_log

Code: Select all

[Mon Feb 13 09:04:18 2012] [error] [client 10.1.0.1] PHP Notice:  Undefined variable: port in /usr/local/nagiosxi/html/includes/components/active_directory/active_directory.inc.php on line 252, referer: http://10.1.0.25/nagiosxi/admin/components.php
zend_mm_heap corrupted
[Mon Feb 13 09:21:05 2012] [info] removed PID file /etc/httpd/run/httpd.pid (pid=1477)
[Mon Feb 13 09:21:05 2012] [notice] caught SIGTERM, shutting down
[Mon Feb 13 09:21:11 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Feb 13 09:21:11 2012] [notice] Digest: generating secret for digest authentication ...
[Mon Feb 13 09:21:11 2012] [notice] Digest: done
[Mon Feb 13 09:21:11 2012] [info] APR LDAP: Built with OpenLDAP LDAP SDK
[Mon Feb 13 09:21:11 2012] [info] LDAP: SSL support available
[Mon Feb 13 09:21:11 2012] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Mon Feb 13 09:21:11 2012] [info] Server built: Dec  8 2011 18:07:26
[Mon Feb 13 09:22:38 2012] [info] [client 10.1.0.1] (104)Connection reset by peer: core_output_filter: writing data to the network
[Mon Feb 13 09:22:52 2012] [info] [client 10.1.0.1] (32)Broken pipe: core_output_filter: writing data to the network
[Mon Feb 13 09:22:52 2012] [info] [client 10.1.0.1] (32)Broken pipe: core_output_filter: writing data to the network
[Mon Feb 13 09:22:58 2012] [info] [client 10.1.0.1] (32)Broken pipe: core_output_filter: writing data to the network
[Mon Feb 13 09:23:46 2012] [info] [client 10.1.0.1] (32)Broken pipe: core_output_filter: writing data to the network
[Mon Feb 13 09:24:04 2012] [info] [client 10.1.0.1] (32)Broken pipe: core_output_filter: writing data to the network
[Mon Feb 13 09:30:38 2012] [info] [client 10.1.0.1] (32)Broken pipe: core_output_filter: writing data to the network
[Mon Feb 13 09:30:52 2012] [info] [client 10.1.0.1] (104)Connection reset by peer: core_output_filter: writing data to the network
[Mon Feb 13 09:31:49 2012] [info] [client 10.1.0.1] (32)Broken pipe: core_output_filter: writing data to the network
[Mon Feb 13 09:32:07 2012] [info] [client 10.1.0.1] (32)Broken pipe: core_output_filter: writing data to the network
[Mon Feb 13 09:32:17 2012] [info] [client 10.1.0.1] (104)Connection reset by peer: core_output_filter: writing data to the network
[Mon Feb 13 10:25:32 2012] [info] removed PID file /etc/httpd/run/httpd.pid (pid=21899)
[Mon Feb 13 10:25:32 2012] [notice] caught SIGTERM, shutting down
[Mon Feb 13 10:25:47 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Feb 13 10:25:47 2012] [notice] Digest: generating secret for digest authentication ...
[Mon Feb 13 10:25:47 2012] [notice] Digest: done
[Mon Feb 13 10:25:47 2012] [info] APR LDAP: Built with OpenLDAP LDAP SDK
[Mon Feb 13 10:25:47 2012] [info] LDAP: SSL support available
[Mon Feb 13 10:25:48 2012] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Mon Feb 13 10:25:48 2012] [info] Server built: Dec  8 2011 18:07:26
[Mon Feb 13 10:28:30 2012] [info] [client 10.1.0.1] (32)Broken pipe: core_output_filter: writing data to the network
[Mon Feb 13 10:28:35 2012] [info] [client 10.1.0.1] (32)Broken pipe: core_output_filter: writing data to the network
[Mon Feb 13 10:28:44 2012] [info] [client 10.1.0.1] (32)Broken pipe: core_output_filter: writing data to the network
[Mon Feb 13 10:29:28 2012] [info] [client 10.1.0.1] (32)Broken pipe: core_output_filter: writing data to the network
[Mon Feb 13 10:29:34 2012] [info] [client 10.1.0.1] (104)Connection reset by peer: core_output_filter: writing data to the network
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Session times out after about 30 seconds

Post by lmiltchev »

I'm not sure if this is going to help, but check out this link:

http://httpd.apache.org/docs/2.0/faq/error.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked