archivejson.cgi time out

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.
Locked
YY_syd
Posts: 3
Joined: Sun Mar 01, 2015 11:07 pm
Location: Sydney

archivejson.cgi time out

Post by YY_syd »

The problme is strange, it must be some corner I'm just missing.

My nagios verison is '4.1.0rc'.

Symptom:
I cannot 'View Trends For This Host' or other 'Views' if it's calling 'archivejson.cgi'

Below are in error.log and access.log from apache when I tried the cgi from 'nagios/jsonquery.html'

Code: Select all

[Mon Mar 02 16:00:12 2015] [warn] [client x.x.x.x] Timeout waiting for output from CGI script /usr/lib/nagios/cgi/archivejson.cgi, referer: http://nagios01.xxx/nagios/jsonquery.html
[Mon Mar 02 16:00:12 2015] [error] [client x.x.x.x] Script timed out before returning headers: archivejson.cgi, referer: http://nagios01.xxx/nagios/jsonquery.html

nagios.xxx.com.au 93 x.x.x.x -  [02/Mar/2015:15:59:12 +1100] "GET /nagios/cgi-bin/archivejson.cgi?query=availability&availabilityobjecttype=hosts&hostname=mybox.net&starttime=1425185841&endtime=1425272242 HTTP/1.1" 504 328 "http://nagios01.xxx/nagios/jsonquery.html" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0"

1, As the running of other CGI such as 'status.cgi', 'ectinfo.cgi' are ok, it's not a problem for cgi setup in httpd or nagios conf I think.

2, Also the run of 'nagios/cgi-bin/archivejson.cgi?query=help' is ok, it means the cgi itself should be defintely runnable at least.

3, I checked the permission of /var/log/nagios and its archives/ which archivejson.js would read. The permission for them are correct for the access of Nagios.

So, what could be wrong here? I think I must miss some conf or setup.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: archivejson.cgi time out

Post by jolson »

Is SELinux enabled?

Code: Select all

sestatus
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
YY_syd
Posts: 3
Joined: Sun Mar 01, 2015 11:07 pm
Location: Sydney

Re: archivejson.cgi time out

Post by YY_syd »

Code: Select all

sestatus 
SELinux status:                 disabled
Hmm, must some kind of thing at the corner.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: archivejson.cgi time out

Post by jolson »

Could you please run:

Code: Select all

ls -l /usr/local/nagios/sbin/archivejson.cgi
The correct permissions appear to be 775 with owner/group set to nagios:nagios. Please verify that this is accurate.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
YY_syd
Posts: 3
Joined: Sun Mar 01, 2015 11:07 pm
Location: Sydney

Re: archivejson.cgi time out

Post by YY_syd »

The problem has been fixed. I used 'strace' to run the cgi on command line. Nothign is wrong but the long time to read the arhive logs which is over 300M each.

I has changed 'Timeout' in apache bigger (from 60 to 160) to allow the return of this cgi.

I'm afraid if the query is crossing a longer time, it could take too much time to scan more archive logs. 'archiveutils.c' may need some improvement on its algrithm.


strace ./archivejson.cgi
execve("./archivejson.cgi", ["./archivejson.cgi"], [/* 28 vars */]) = 0
brk(0) = 0x1ccf000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f67114ad000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=20125, ...}) = 0
mmap(NULL, 20125, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f67114a8000
close(3) = 0
open("/lib64/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p\356\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1921176, ...}) = 0
mmap(NULL, 3750152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f6710efb000
mprotect(0x7f6711085000, 2097152, PROT_NONE) = 0
mmap(0x7f6711285000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18a000) = 0x7f6711285000
mmap(0x7f671128a000, 18696, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f671128a000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f67114a7000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f67114a6000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f67114a5000
arch_prctl(ARCH_SET_FS, 0x7f67114a6700) = 0
mprotect(0x7f6711285000, 16384, PROT_READ) = 0
mprotect(0x7f67114ae000, 4096, PROT_READ) = 0
munmap(0x7f67114a8000, 20125) = 0
brk(0) = 0x1ccf000
brk(0x1cf0000) = 0x1cf0000
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f67114ac000
write(1, "Cache-Control: no-store\r\n", 25Cache-Control: no-store
) = 25
write(1, "Pragma: no-cache\r\n", 18Pragma: no-cache
) = 18
open("/etc/localtime", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f67114ab000
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0\0\0\0"..., 4096) = 2197
lseek(3, -1406, SEEK_CUR) = 791
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\5\0\0\0\5\0\0\0\0"..., 4096) = 1406
close(3) = 0
munmap(0x7f67114ab000, 4096) = 0
write(1, "Last-Modified: Mon, 02 Mar 2015 "..., 46Last-Modified: Mon, 02 Mar 2015 22:41:09 GMT
) = 46
write(1, "Expires: Thu, 01 Jan 1970 00:00:"..., 40Expires: Thu, 01 Jan 1970 00:00:00 GMT
) = 40
write(1, "Content-type: application/json; "..., 47Content-type: application/json; charset=utf-8
) = 47
write(1, "\r\n", 2
) = 2
open("/usr/lib/locale/locale-archive", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=99158576, ...}) = 0
mmap(NULL, 99158576, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f670b06a000
close(3) = 0
open("/etc/nagios/cgi.cfg", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=10648, ...}) = 0
mmap(NULL, 10648, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f67114a9000
munmap(0x7f67114a9000, 10648) = 0
close(3) = 0
open("/etc/nagios/nagios.cfg", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=44854, ...}) = 0
mmap(NULL, 44854, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f671149a000
munmap(0x7f671149a000, 44854) = 0
close(3) = 0
open("/var/log/nagios/objects.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=27257674, ...}) = 0
mmap(NULL, 27257674, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f670966b000
brk(0x1d12000) = 0x1d12000
brk(0x1d33000) = 0x1d33000
brk(0x1d31000) = 0x1d31000
brk(0x1d53000) = 0x1d53000
brk(0x1d74000) = 0x1d74000
brk(0x1d95000) = 0x1d95000
brk(0x1db6000) = 0x1db6000
brk(0x1dd7000) = 0x1dd7000
brk(0x1df8000) = 0x1df8000
brk(0x1e19000) = 0x1e19000
brk(0x1e3a000) = 0x1e3a000
brk(0x1e39000) = 0x1e39000
brk(0x1e5a000) = 0x1e5a000
brk(0x1e59000) = 0x1e59000
brk(0x1e7a000) = 0x1e7a000
brk(0x1e9b000) = 0x1e9b000
brk(0x1e9a000) = 0x1e9a000
brk(0x1ebb000) = 0x1ebb000
brk(0x1edc000) = 0x1edc000
brk(0x1efd000) = 0x1efd000
brk(0x1f1e000) = 0x1f1e000
brk(0x1f3f000) = 0x1f3f000
brk(0x1f60000) = 0x1f60000
brk(0x1f81000) = 0x1f81000
brk(0x1fa2000) = 0x1fa2000
brk(0x1fc3000) = 0x1fc3000
brk(0x1fe4000) = 0x1fe4000
brk(0x2005000) = 0x2005000
brk(0x2004000) = 0x2004000
brk(0x2025000) = 0x2025000
brk(0x2046000) = 0x2046000
brk(0x2045000) = 0x2045000
brk(0x2066000) = 0x2066000
brk(0x2065000) = 0x2065000
brk(0x2086000) = 0x2086000
brk(0x20a7000) = 0x20a7000
brk(0x20c8000) = 0x20c8000
brk(0x20e9000) = 0x20e9000
brk(0x210a000) = 0x210a000
brk(0x212b000) = 0x212b000
brk(0x214c000) = 0x214c000
brk(0x216d000) = 0x216d000
brk(0x216c000) = 0x216c000
brk(0x218d000) = 0x218d000
brk(0x218c000) = 0x218c000
brk(0x21ad000) = 0x21ad000
brk(0x21ce000) = 0x21ce000
brk(0x21ef000) = 0x21ef000
brk(0x2210000) = 0x2210000
brk(0x220f000) = 0x220f000
brk(0x2230000) = 0x2230000
brk(0x2251000) = 0x2251000
brk(0x2272000) = 0x2272000
brk(0x2293000) = 0x2293000
brk(0x22b4000) = 0x22b4000
brk(0x22d5000) = 0x22d5000
brk(0x22f6000) = 0x22f6000
brk(0x2317000) = 0x2317000
brk(0x2338000) = 0x2338000
brk(0x2359000) = 0x2359000
brk(0x237a000) = 0x237a000
brk(0x239b000) = 0x239b000
brk(0x239a000) = 0x239a000
brk(0x23bb000) = 0x23bb000
brk(0x23ba000) = 0x23ba000
brk(0x23db000) = 0x23db000
brk(0x23fc000) = 0x23fc000
brk(0x241d000) = 0x241d000
brk(0x243e000) = 0x243e000
brk(0x245f000) = 0x245f000
brk(0x2480000) = 0x2480000
brk(0x24a1000) = 0x24a1000
brk(0x24a0000) = 0x24a0000
brk(0x24c1000) = 0x24c1000
brk(0x24c0000) = 0x24c0000
brk(0x24e1000) = 0x24e1000
brk(0x24e0000) = 0x24e0000
brk(0x2501000) = 0x2501000
brk(0x2522000) = 0x2522000
brk(0x2521000) = 0x2521000
brk(0x2542000) = 0x2542000
brk(0x2563000) = 0x2563000
brk(0x2584000) = 0x2584000
brk(0x2583000) = 0x2583000
brk(0x25a4000) = 0x25a4000
brk(0x25c5000) = 0x25c5000
brk(0x25e6000) = 0x25e6000
brk(0x2607000) = 0x2607000
brk(0x2628000) = 0x2628000
brk(0x2649000) = 0x2649000
brk(0x266a000) = 0x266a000
brk(0x268b000) = 0x268b000
brk(0x26ac000) = 0x26ac000
brk(0x26cd000) = 0x26cd000
brk(0x26cc000) = 0x26cc000
brk(0x26ed000) = 0x26ed000
brk(0x270e000) = 0x270e000
brk(0x270d000) = 0x270d000
brk(0x272e000) = 0x272e000
brk(0x274f000) = 0x274f000
brk(0x2770000) = 0x2770000
brk(0x2791000) = 0x2791000
brk(0x27b2000) = 0x27b2000
brk(0x27d3000) = 0x27d3000
brk(0x27f4000) = 0x27f4000
brk(0x2815000) = 0x2815000
brk(0x2836000) = 0x2836000
brk(0x2857000) = 0x2857000
brk(0x2856000) = 0x2856000
brk(0x2877000) = 0x2877000
brk(0x2898000) = 0x2898000
brk(0x28b9000) = 0x28b9000
brk(0x28da000) = 0x28da000
brk(0x28fb000) = 0x28fb000
brk(0x291c000) = 0x291c000
brk(0x293d000) = 0x293d000
brk(0x293c000) = 0x293c000
brk(0x295d000) = 0x295d000
brk(0x297e000) = 0x297e000
brk(0x297d000) = 0x297d000
brk(0x299e000) = 0x299e000
brk(0x29bf000) = 0x29bf000
brk(0x29be000) = 0x29be000
brk(0x29df000) = 0x29df000
brk(0x2a00000) = 0x2a00000
brk(0x29ff000) = 0x29ff000
brk(0x2a20000) = 0x2a20000
brk(0x2a1f000) = 0x2a1f000
brk(0x2a40000) = 0x2a40000
brk(0x2a61000) = 0x2a61000
brk(0x2a60000) = 0x2a60000
brk(0x2a81000) = 0x2a81000
brk(0x2aa2000) = 0x2aa2000
brk(0x2ac3000) = 0x2ac3000
brk(0x2ae4000) = 0x2ae4000
brk(0x2ae3000) = 0x2ae3000
brk(0x2b04000) = 0x2b04000
brk(0x2b25000) = 0x2b25000
brk(0x2b46000) = 0x2b46000
brk(0x2b67000) = 0x2b67000
brk(0x2b66000) = 0x2b66000
brk(0x2b87000) = 0x2b87000
brk(0x2ba8000) = 0x2ba8000
brk(0x2bc9000) = 0x2bc9000
brk(0x2bea000) = 0x2bea000
brk(0x2c0b000) = 0x2c0b000
brk(0x2c0a000) = 0x2c0a000
brk(0x2c2b000) = 0x2c2b000
brk(0x2c4c000) = 0x2c4c000
brk(0x2c6d000) = 0x2c6d000
brk(0x2c8e000) = 0x2c8e000
brk(0x2caf000) = 0x2caf000
brk(0x2cd0000) = 0x2cd0000
brk(0x2cf1000) = 0x2cf1000
brk(0x2d12000) = 0x2d12000
brk(0x2d33000) = 0x2d33000
brk(0x2d32000) = 0x2d32000
brk(0x2d53000) = 0x2d53000
brk(0x2d74000) = 0x2d74000
brk(0x2d95000) = 0x2d95000
brk(0x2db6000) = 0x2db6000
brk(0x2dd7000) = 0x2dd7000
brk(0x2df8000) = 0x2df8000
brk(0x2e19000) = 0x2e19000
brk(0x2e3a000) = 0x2e3a000
brk(0x2e5b000) = 0x2e5b000
brk(0x2e7c000) = 0x2e7c000
brk(0x2e9d000) = 0x2e9d000
brk(0x2ebe000) = 0x2ebe000
brk(0x2edf000) = 0x2edf000
brk(0x2f00000) = 0x2f00000
brk(0x2f21000) = 0x2f21000
brk(0x2f42000) = 0x2f42000
brk(0x2f41000) = 0x2f41000
brk(0x2f62000) = 0x2f62000
brk(0x2f83000) = 0x2f83000
brk(0x2fa4000) = 0x2fa4000
brk(0x2fc5000) = 0x2fc5000
brk(0x2fe6000) = 0x2fe6000
brk(0x3007000) = 0x3007000
brk(0x3006000) = 0x3006000
brk(0x3027000) = 0x3027000
munmap(0x7f670966b000, 27257674) = 0
close(3) = 0
brk(0x3048000) = 0x3048000
brk(0x3069000) = 0x3069000
brk(0x308a000) = 0x308a000
mmap(NULL, 389120, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f670b00b000
mmap(NULL, 258048, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f670afcc000
brk(0x30ab000) = 0x30ab000
brk(0x30cc000) = 0x30cc000
brk(0x30ed000) = 0x30ed000
brk(0x310e000) = 0x310e000
brk(0x312f000) = 0x312f000
brk(0x3150000) = 0x3150000
brk(0x3171000) = 0x3171000
brk(0x3192000) = 0x3192000
brk(0x31b3000) = 0x31b3000
brk(0x31d4000) = 0x31d4000
brk(0x31f5000) = 0x31f5000
brk(0x3216000) = 0x3216000
brk(0x3237000) = 0x3237000
brk(0x3258000) = 0x3258000
brk(0x3279000) = 0x3279000
brk(0x329a000) = 0x329a000
brk(0x32bb000) = 0x32bb000
brk(0x32dc000) = 0x32dc000
brk(0x32fd000) = 0x32fd000
brk(0x331e000) = 0x331e000
brk(0x333f000) = 0x333f000
brk(0x3360000) = 0x3360000
brk(0x3381000) = 0x3381000
brk(0x33a2000) = 0x33a2000
brk(0x33c3000) = 0x33c3000
brk(0x33e4000) = 0x33e4000
brk(0x3405000) = 0x3405000
brk(0x3426000) = 0x3426000
brk(0x3447000) = 0x3447000
brk(0x3468000) = 0x3468000
brk(0x3489000) = 0x3489000
brk(0x34aa000) = 0x34aa000
brk(0x34cb000) = 0x34cb000
brk(0x34ec000) = 0x34ec000
brk(0x350d000) = 0x350d000
brk(0x352e000) = 0x352e000
brk(0x354f000) = 0x354f000
brk(0x3570000) = 0x3570000
brk(0x3591000) = 0x3591000
brk(0x35b2000) = 0x35b2000
brk(0x35d3000) = 0x35d3000
brk(0x35f4000) = 0x35f4000
brk(0x3615000) = 0x3615000
brk(0x3636000) = 0x3636000
brk(0x3657000) = 0x3657000
brk(0x3678000) = 0x3678000
brk(0x3699000) = 0x3699000
brk(0x36ba000) = 0x36ba000
brk(0x36db000) = 0x36db000
brk(0x36fc000) = 0x36fc000
brk(0x371d000) = 0x371d000
brk(0x373e000) = 0x373e000
brk(0x375f000) = 0x375f000
brk(0x3780000) = 0x3780000
brk(0x37a1000) = 0x37a1000
brk(0x37c2000) = 0x37c2000
brk(0x37e3000) = 0x37e3000
brk(0x3804000) = 0x3804000
brk(0x3825000) = 0x3825000
brk(0x3846000) = 0x3846000
brk(0x3867000) = 0x3867000
brk(0x3888000) = 0x3888000
brk(0x38a9000) = 0x38a9000
brk(0x38ca000) = 0x38ca000
brk(0x38eb000) = 0x38eb000
brk(0x390c000) = 0x390c000
brk(0x392d000) = 0x392d000
brk(0x394e000) = 0x394e000
brk(0x396f000) = 0x396f000
brk(0x3990000) = 0x3990000
brk(0x39b1000) = 0x39b1000
brk(0x39d2000) = 0x39d2000
brk(0x39f3000) = 0x39f3000
brk(0x3a14000) = 0x3a14000
brk(0x3a35000) = 0x3a35000
brk(0x3a56000) = 0x3a56000
brk(0x3a77000) = 0x3a77000
brk(0x3a98000) = 0x3a98000
brk(0x3ab9000) = 0x3ab9000
brk(0x3ada000) = 0x3ada000
brk(0x3afb000) = 0x3afb000
brk(0x3b1c000) = 0x3b1c000
brk(0x3b3d000) = 0x3b3d000
brk(0x3b5e000) = 0x3b5e000
brk(0x3b7f000) = 0x3b7f000
brk(0x3ba0000) = 0x3ba0000
brk(0x3bc1000) = 0x3bc1000
brk(0x3be2000) = 0x3be2000
brk(0x3c03000) = 0x3c03000
brk(0x3c24000) = 0x3c24000
brk(0x3c45000) = 0x3c45000
brk(0x3c66000) = 0x3c66000
brk(0x3c87000) = 0x3c87000
brk(0x3ca8000) = 0x3ca8000
brk(0x3cc9000) = 0x3cc9000
brk(0x3cea000) = 0x3cea000
brk(0x3d0b000) = 0x3d0b000
brk(0x3d2c000) = 0x3d2c000
brk(0x3d4d000) = 0x3d4d000
brk(0x3d6e000) = 0x3d6e000
brk(0x3d8f000) = 0x3d8f000
brk(0x3db0000) = 0x3db0000
brk(0x3dd1000) = 0x3dd1000
brk(0x3df2000) = 0x3df2000
brk(0x3e13000) = 0x3e13000
brk(0x3e34000) = 0x3e34000
brk(0x3e55000) = 0x3e55000
brk(0x3e76000) = 0x3e76000
brk(0x3e97000) = 0x3e97000
brk(0x3eb8000) = 0x3eb8000
brk(0x3ed9000) = 0x3ed9000
brk(0x3efa000) = 0x3efa000
brk(0x3f1b000) = 0x3f1b000
brk(0x3f3c000) = 0x3f3c000
brk(0x3f5d000) = 0x3f5d000
brk(0x3f7e000) = 0x3f7e000
brk(0x3f9f000) = 0x3f9f000
brk(0x3fc0000) = 0x3fc0000
brk(0x3fe1000) = 0x3fe1000
brk(0x4002000) = 0x4002000
brk(0x4023000) = 0x4023000
brk(0x4044000) = 0x4044000
brk(0x4065000) = 0x4065000
brk(0x4086000) = 0x4086000
brk(0x40a7000) = 0x40a7000
brk(0x40c8000) = 0x40c8000
brk(0x40e9000) = 0x40e9000
brk(0x410a000) = 0x410a000
brk(0x412b000) = 0x412b000
brk(0x414c000) = 0x414c000
brk(0x416d000) = 0x416d000
brk(0x418e000) = 0x418e000
brk(0x41af000) = 0x41af000
brk(0x41d0000) = 0x41d0000
brk(0x41f1000) = 0x41f1000
brk(0x4212000) = 0x4212000
brk(0x4233000) = 0x4233000
brk(0x4254000) = 0x4254000
brk(0x4275000) = 0x4275000
brk(0x4296000) = 0x4296000
brk(0x42b7000) = 0x42b7000
brk(0x42d8000) = 0x42d8000
brk(0x42f9000) = 0x42f9000
brk(0x431a000) = 0x431a000
brk(0x433b000) = 0x433b000
brk(0x435c000) = 0x435c000
brk(0x437d000) = 0x437d000
brk(0x439e000) = 0x439e000
brk(0x43bf000) = 0x43bf000
brk(0x43e0000) = 0x43e0000
brk(0x4401000) = 0x4401000
brk(0x4422000) = 0x4422000
brk(0x4443000) = 0x4443000
brk(0x4464000) = 0x4464000
brk(0x4485000) = 0x4485000
brk(0x44a6000) = 0x44a6000
brk(0x44c7000) = 0x44c7000
brk(0x44e8000) = 0x44e8000
brk(0x4509000) = 0x4509000
brk(0x452a000) = 0x452a000
brk(0x454b000) = 0x454b000
brk(0x456c000) = 0x456c000
brk(0x458d000) = 0x458d000
brk(0x45ae000) = 0x45ae000
brk(0x45cf000) = 0x45cf000
brk(0x45f0000) = 0x45f0000
brk(0x4611000) = 0x4611000
brk(0x4632000) = 0x4632000
brk(0x4653000) = 0x4653000
open("/var/log/nagios/status.log", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0664, st_size=42557765, ...}) = 0
mmap(NULL, 42557765, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6708735000
munmap(0x7f6708735000, 42557765) = 0
close(3) = 0
open("/etc/nagios/cgi.cfg", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=10648, ...}) = 0
mmap(NULL, 10648, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f670afc9000
munmap(0x7f670afc9000, 10648) = 0
close(3) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/var/log/nagios/nagios.log", {st_mode=S_IFREG|0644, st_size=135000602, ...}) = 0
open("/var/log/nagios/nagios.log", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=135000602, ...}) = 0
mmap(NULL, 135000602, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6702f0c000
open("/proc/meminfo", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f67114ab000
read(4, "MemTotal: 16330072 kB\nMemF"..., 1024) = 1024
close(4) = 0
munmap(0x7f67114ab000, 4096) = 0
munmap(0x7f6702f0c000, 135000602) = 0
close(3) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/var/log/nagios/archives/nagios-03-03-2015-00.log", {st_mode=S_IFREG|0644, st_size=329771134, ...}) = 0
open("/var/log/nagios/archives/nagios-03-03-2015-00.log", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=329771134, ...}) = 0
mmap(NULL, 329771134, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f66f754d000
munmap(0x7f66f754d000, 329771134) = 0
close(3) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/var/log/nagios/archives/nagios-03-02-2015-00.log", {st_mode=S_IFREG|0644, st_size=328447154, ...}) = 0
open("/var/log/nagios/archives/nagios-03-02-2015-00.log", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=328447154, ...}) = 0
mmap(NULL, 328447154, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f66f7690000
munmap(0x7f66f7690000, 328447154) = 0
close(3) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/var/log/nagios/archives/nagios-03-01-2015-00.log", {st_mode=S_IFREG|0644, st_size=328719993, ...}) = 0
open("/var/log/nagios/archives/nagios-03-01-2015-00.log", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=328719993, ...}) = 0
mmap(NULL, 328719993, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f66f764e000
munmap(0x7f66f764e000, 328719993) = 0
close(3) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/var/log/nagios/archives/nagios-02-28-2015-00.log", {st_mode=S_IFREG|0644, st_size=344787881, ...}) = 0
open("/var/log/nagios/archives/nagios-02-28-2015-00.log", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=344787881, ...}) = 0
mmap(NULL, 344787881, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f66f66fb000
munmap(0x7f66f66fb000, 344787881) = 0
close(3) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
stat("/var/log/nagios/archives/nagios-02-27-2015-00.log", {st_mode=S_IFREG|0644, st_size=359170343, ...}) = 0
open("/var/log/nagios/archives/nagios-02-27-2015-00.log", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=359170343, ...}) = 0
mmap(NULL, 359170343, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f66f5943000
munmap(0x7f66f5943000, 359170343) = 0
close(3) = 0
open("/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=26060, ...}) = 0
mmap(NULL, 26060, PROT_READ, MAP_SHARED, 3, 0) = 0x7f671149e000
close(3) = 0
write(1, "{\n", 2{
) = 2
write(1, " \"format_version\": 0,\n", 23 "format_version": 0,
) = 23
write(1, " \"result\": {\n", 14 "result": {
) = 14
write(1, " \"query_time\": 1425336069000,"..., 33 "query_time": 1425336069000,
) = 33
write(1, " \"cgi\": \"archivejson.cgi\",\n", 30 "cgi": "archivejson.cgi",
) = 30
write(1, " \"user\": \"\",\n", 16 "user": "",
) = 16
write(1, " \"query\": \"availability\",\n", 29 "query": "availability",
) = 29
write(1, " \"query_status\": \"released\",\n", 32 "query_status": "released",
) = 32
write(1, " \"program_start\": 14252659380"..., 36 "program_start": 1425265938000,
) = 36
write(1, " \"last_data_update\": 14253360"..., 39 "last_data_update": 1425336071000,
) = 39
write(1, " \"type_code\": 0,\n", 20 "type_code": 0,
) = 20
write(1, " \"type_text\": \"Success\",\n", 28 "type_text": "Success",
) = 28
write(1, " \"message\": \"\"\n", 18 "message": ""
) = 18
write(1, " },\n", 5 },
) = 5
write(1, " \"data\": {\n", 12 "data": {
) = 12
write(1, " \"selectors\": {\n", 19 "selectors": {
) = 19
write(1, " \"availabilityobjecttype\": "..., 35 "availabilityobjecttype": 1,
) = 35
write(1, " \"starttime\": 1425248380000"..., 34 "starttime": 1425248380000,
) = 34
write(1, " \"endtime\": 1425334781000,\n", 32 "endtime": 1425334781000,
) = 32
write(1, " \"hostname\": \"mybox.net\","..., 33 "hostname": "mybox.net",
) = 33
write(1, " \"assumeinitialstate\": true"..., 34 "assumeinitialstate": true,
) = 34
write(1, " \"assumestateretention\": tr"..., 36 "assumestateretention": true,
) = 36
write(1, " \"assumestateduringnagiosdo"..., 46 "assumestateduringnagiosdowntime": true
) = 46
write(1, " }\n", 6 }
) = 6
write(1, " }\n", 4 }
) = 4
write(1, "}\n", 2}
) = 2
munmap(0x7f670b00b000, 389120) = 0
munmap(0x7f670afcc000, 258048) = 0
brk(0x304b000) = 0x304b000
exit_group(0)
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: archivejson.cgi time out

Post by jolson »

I appreciate that you reported back with the fix. I will lock this case out - please feel free to open another if you have further questions or issues. Thank you!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked