Pandora FMS community forums

Full Version: Checking Succesful Login
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to check website login from https website.
After succesfull login, i'm trying to checkĀ  if there is a string following the login process. When using goodword string, it's not possible to get the green OK when changing the string word for another one. Is this script ok?

Regards,

task_begin
post https://www.URL.com/LOGIN
variable_name USER
variable_value [email protected]
variable_name PASSWORD
variable_value PASSW0RD
cookie 1
resource 1
task_end

task_begin
get http://www.URL.com
cookie 1
resource 1
check_string goodword
task_end
Hello

Which version of Pandora FMS do you have? (open or enterprise)

Regards
Ivo
Hi!

Version 5.0
Even If I just leave the following section and I change the password to wrong password, the module keeps - OK (GREEN).

task_begin
post https://www.URL.com/LOGIN
variable_name USER
variable_value [email protected]
variable_name PASSWORD
variable_value PASSW0RD
cookie 1
resource 1
task_end
Are you using the paid (Enterprise) version?
[quote='futurist71 link' pid='8484' dateline='1406796993']
Even If I just leave the following section and I change the password to wrong password, the module keeps - OK (GREEN).

task_begin
post https://www.URL.com/LOGIN
variable_name USER
variable_value [email protected]
variable_name PASSWORD
variable_value PASSW0RD
cookie 1
resource 1
task_end
[/quote]


That will report always OK, you need to check a return string to see if post response is ok.
Using Pandora 5.0 SP1, this doesn't work correctly.
First at all, you should ask this in customer (enterprise) support, not here, but anyway: I see you're using HTTPS. In Webchecks using goliat you must be aware you need a specific version of OpenSSL to do some checks, checkout the documentation about the specific OpenSSL version you need and the server logs to see if you have any tip/hint about problems with SSL version. This check was introduced in 5.0 but I dont remeber exactly if was in SP1 or later. Anyway, check if installed OpenSSL library version is the correct one,