8000 ngxtop is not working at all · Issue #87 · lebinh/ngxtop · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
ngxtop is not working at all #87
Open
@manas86

Description

@manas86

hi all,

As, I stated above ngxtop doesn't work other than ngxtop info.
can anyone have similar issue, if so then how did they solve it( i have python 2.7.5).
Or i'm doing something silly here?

sh-4.2$ ngxtop info
nginx configuration file:
/etc/nginx/nginx.conf
access log file:
/var/log/nginx/access.log
access log format:
$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for"
available variables:
body_bytes_sent, http_referer, http_user_agent, http_x_forwarded_for, remote_addr, remote_user, request, status, time_local
sh-4.2$ ngxtop top remote_addr
Traceback (most recent call last):
File "/usr/bin/ngxtop", line 11, in
sys.exit(main())
File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 385, in main
process(args)
File "/usr/lib/python2.7/site-packa
ges/ngxtop/ngxtop.py", line 370, in process
process_log(source, pattern, processor, arguments)
File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 267, in process_log
processor.process(records)
File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 215, in process for r in records:
File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 148, in add_field for item in dict_sequence:
File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 135, in map_field for item in dict_sequence:
File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 135, in map_field for item in dict_sequence:
File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 148, in add_field for item in dict_sequence:
File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 148, in add_field for item in dict_sequence: File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 135, in map_field
for item in dict_sequence:File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 187, in
records = (m.groupdict() for m in matches if m is not None) File "/usr/lib/python2.7
/site-packages/ngxtop/ngxtop.py", line 186, in matches = (pattern.match(l) for l in lines) File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 121, in follow
f.seek(0, 2) # seek to eof IOError: [Errno 29
] Illegal seek sh-4.2$ ngxtop top remote_addr
Traceback (most recent call last):
File "/usr/bin/ngxtop", line 11, in
sys.exit(main())
File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 385, in main
process(args)
File "/usr/lib/python2.7/site-packa
ges/ngxtop/ngxtop.py", line 370, in process
process_log(source, pattern, processor, arguments)
File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 267, in process_log
processor.process(records)
File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 215, in process for r in records:
File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 148, in add_field for item in dict_sequence:
File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 135, in map_field for item in dict_sequence:
File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 135, in map_field for item in dict_sequence:
File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 148, in add_field for item in dict_sequence:
File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 148, in add_field for item in dict_sequence: File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 135, in map_field
for item in dict_sequence:File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 187, in
records = (m.groupdict() for m in matches if m is not None) File "/usr/lib/python2.7
/site-packages/ngxtop/ngxtop.py", line 186, in matches = (pattern.match(l) for l in lines) File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 121, in follow
f.seek(0, 2) # seek to eof IOError: [Errno 29
] Illegal seek

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0