Hello! First of all, thanks for this script!
I found a little mistake on 117th line. Here you're trying to return an error from $e variable which is not caught yet.
|
try{ |
|
$responce = curl_exec($ch); |
|
|
|
if(curl_error($ch) != "") { |
|
returnNagios("UNKNOWN", $e->getMessage()); |
|
} |
|
|
|
} catch(Exception $e) { |
Hello! First of all, thanks for this script!
I found a little mistake on 117th line. Here you're trying to return an error from
$evariable which is not caught yet.check_p2000_api/check_p2000_api.php
Lines 113 to 120 in 0adacc5