Skip to content

Commit

Permalink
Update ServerAlarmNotify.php
Browse files Browse the repository at this point in the history
  • Loading branch information
asuknath committed Dec 27, 2016
1 parent 6897ce2 commit ce63dab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ServerAlarmNotify.php
Expand Up @@ -49,13 +49,13 @@


// $argv[1] - Host Name
// $argv[2] - Group Name API Key
// $argv[2] - Group Name (Group API Key)
// $argv[3] - Host or Service Name
// $argv[4] - Hosst or Service Status

$title = urlencode("**".$argv[4]."** ".$argv[1]);
$message = urlencode($argv[3]." - ".$argv[1]." is ".$argv[4]);
$URL = "https://serveralarms.com/fcm/api.php?tag=send&title=$title&groupname=$groupname&mess=$message";
$title = urlencode("::".$argv[4].":: ".$argv[1]);
$message = urlencode($argv[3]." - ".$argv[1]." is ".$argv[4]);
$URL = "https://serveralarms.com/fcm/api.php?tag=send&title=$title&groupname=$argv[2]&mess=$message";
echo $URL;
$data = file($URL);

Expand Down

0 comments on commit ce63dab

Please sign in to comment.