dduenasd / check_tomcat.py

This is a nagios plugin to monitorize tomcat servers
Other
9 stars 18 forks source link

Error forbidden in tomcat 7 #10

Open R00T88 opened 5 years ago

R00T88 commented 5 years ago

hi, my user is configured in tomcat 7 as manager-gui but not able to get app status from script says forbidden

[root@xx plugins]# ./check_tomcat.py -H xx.xx.it -p 8080 -u manager -a xxx -m app -w 80 -c 90 -n test3 -vvv verbosity level = 3

Arguments: Namespace(URL='/manager', authentication='xxx', connector=None, critical='90', expire_time='0', host='xx.xx.it', mode='app', nameapp='test3', port='8080', timeout='5', user='manager', verbosity=3, warning='80') connection url: http://xx.xx.it:8080/manager/serverinfo

page http://xx.xx.it:8080/manager/serverinfo content: ERROR: The server couldn't fulfill the request. HTTP Error 404: Not Found

serverinfo: ERROR: The server couldn't fulfill the request. HTTP Error 404: Not Found connection url: http://xx.xx.it:8080/manager/text/serverinfo

page http://xx.xx.it:8080/manager/text/serverinfo content: ERROR: Forbidden, yours credentials are not correct. HTTP Error 403: Forbidden

Traceback (most recent call last): File "./check_tomcat.py", line 580, in if not error_expire: NameError: name 'error_expire' is not defined

R00T88 commented 5 years ago

it search for manager/text/serverinfo but should not manager/html/serverinfo?