Description |
[20:49 www dvl ~] % echo /usr/local/etc/snmp/phpfpm-sp | sudo su -fm snmpd
</html>nter>nginx/1.24.0</center></h1></center>d>
[20:49 www dvl ~] % echo /usr/local/etc/snmp/nginx-python3.py | sudo su -fm snmpd
Traceback (most recent call last):
File "/usr/local/etc/snmp/nginx-python3.py", line 5, in <module>
data = urlopen('http://localhost/nginx-status').read()
File "/usr/local/lib/python3.9/urllib/request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/lib/python3.9/urllib/request.py", line 523, in open
response = meth(req, response)
File "/usr/local/lib/python3.9/urllib/request.py", line 632, in http_response
response = self.parent.error(
File "/usr/local/lib/python3.9/urllib/request.py", line 561, in error
return self._call_chain(*args)
File "/usr/local/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.9/urllib/request.py", line 641, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
[20:50 www dvl ~] %
|
---|