Re: Website monitoring
Posted: Tue Jan 12, 2021 6:56 am
Hello,
We have noticed that it is giving "OK" message even with wrong password.
Output with correct password:
[root@HO1-NAGIOSXI ~]# /usr/local/nagios/libexec/check_http -H 10.44.3.8 -s 'Login' -f follow -I 10.44.3.8 -u '/nagiosxi/login.php' -a 'nagiosadmin:[email protected]' -p 80 HTTP OK: HTTP/1.1 200 OK - 26118 bytes in 0.626 second response time |time=0.626287s;;;0.000000 size=26118B;;;0
[root@HO1-NAGIOSXI ~]#
Output with wrong password:
[root@HO1-NAGIOSXI ~]# /usr/local/nagios/libexec/check_http -H 10.44.3.8 -s 'Login' -f follow -I 10.44.3.8 -u '/nagiosxi/login.php' -a 'nagiosadmin:welcome' -p 80
HTTP OK: HTTP/1.1 200 OK - 26118 bytes in 0.633 second response time |time=0.632924s;;;0.000000 size=26118B;;;0
[root@HO1-NAGIOSXI ~]#
How come this is possible?
We have noticed that it is giving "OK" message even with wrong password.
Output with correct password:
[root@HO1-NAGIOSXI ~]# /usr/local/nagios/libexec/check_http -H 10.44.3.8 -s 'Login' -f follow -I 10.44.3.8 -u '/nagiosxi/login.php' -a 'nagiosadmin:[email protected]' -p 80 HTTP OK: HTTP/1.1 200 OK - 26118 bytes in 0.626 second response time |time=0.626287s;;;0.000000 size=26118B;;;0
[root@HO1-NAGIOSXI ~]#
Output with wrong password:
[root@HO1-NAGIOSXI ~]# /usr/local/nagios/libexec/check_http -H 10.44.3.8 -s 'Login' -f follow -I 10.44.3.8 -u '/nagiosxi/login.php' -a 'nagiosadmin:welcome' -p 80
HTTP OK: HTTP/1.1 200 OK - 26118 bytes in 0.633 second response time |time=0.632924s;;;0.000000 size=26118B;;;0
[root@HO1-NAGIOSXI ~]#
How come this is possible?