mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added a few missing characters
This commit is contained in:
@@ -38,7 +38,7 @@ foreach( $opts as $method=>$apis ) {
|
||||
$ret = curl_exec($curl);
|
||||
$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
|
||||
if( $code != 200 ) {
|
||||
var_dump("API '$host' returnd Error"); //FIXME: propper debuging
|
||||
var_dump("API '$host' returned Error"); //FIXME: propper debuging
|
||||
var_dump("Params: ".$api); //FIXME: propper debuging
|
||||
var_dump("Return: ".$ret); //FIXME: propper debuging
|
||||
return false;
|
||||
|
@@ -46,7 +46,7 @@ foreach($opts as $option) {
|
||||
|
||||
$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
|
||||
if($code != 200) {
|
||||
var_dump("API '$url' returnd Error");
|
||||
var_dump("API '$url' returned Error");
|
||||
var_dump("Params: " . $message);
|
||||
var_dump("Return: " . $ret);
|
||||
return false;
|
||||
|
@@ -45,7 +45,7 @@ curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($protocol));
|
||||
$ret = curl_exec($curl);
|
||||
$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
|
||||
if( $code != 200 ) {
|
||||
var_dump("PagerDuty returnd Error, retry later"); //FIXME: propper debuging
|
||||
var_dump("PagerDuty returned Error, retry later"); //FIXME: propper debuging
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
@@ -42,7 +42,7 @@ foreach( $opts as $tmp_api ) {
|
||||
$ret = curl_exec($curl);
|
||||
$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
|
||||
if( $code != 200 ) {
|
||||
var_dump("API '$host' returnd Error"); //FIXME: propper debuging
|
||||
var_dump("API '$host' returned Error"); //FIXME: propper debuging
|
||||
var_dump("Params: ".$alert_message); //FIXME: propper debuging
|
||||
var_dump("Return: ".$ret); //FIXME: propper debuging
|
||||
return false;
|
||||
|
@@ -98,7 +98,7 @@ if ($space_check < 1) {
|
||||
$bins = array('fping');
|
||||
foreach ($bins as $bin) {
|
||||
if (!is_file($config[$bin])) {
|
||||
print_fail("$bin location is incorrect orbin not installed");
|
||||
print_fail("$bin location is incorrect or bin not installed");
|
||||
} else {
|
||||
print_ok("$bin has been found");
|
||||
}
|
||||
|
Reference in New Issue
Block a user