You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./ngxtop.py
Traceback (most recent call last):
File "./ngxtop.py", line 440, in <module>
main(args)
File "./ngxtop.py", line 402, in main
config = get_nginx_conf_path()
File "./ngxtop.py", line 117, in get_nginx_conf_path
proc = subprocess.Popen(['nginx', '-V'], stderr=subprocess.PIPE)
File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
errread, errwrite)
File "/usr/lib64/python2.6/subprocess.py", line 1234, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
The text was updated successfully, but these errors were encountered:
Yes, it looks like the script does not check if nginx config is there before opening it. Adding --config option helps, but a more helpful error message would definitely be more friendly anyways.
This is because nginx is not available in your PATH, so ngxtop cannot check to find config file location. But yah, the error message is not so helpful in this case, I'll try to fix that.
Centos 6.5
Python 2.6.6 (r266:84292, Nov 22 2013, 12:16:22)
The text was updated successfully, but these errors were encountered: