From 0bba5cdbcee9b4e9cba0f59be20c187516312af1 Mon Sep 17 00:00:00 2001 From: Jack-Benny Persson Date: Sat, 16 Aug 2014 12:00:23 +0200 Subject: [PATCH] Added shebang and a message when failover is active --- failover.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) mode change 100644 => 100755 failover.php diff --git a/failover.php b/failover.php old mode 100644 new mode 100755 index ab4a85e..15d979c --- a/failover.php +++ b/failover.php @@ -1,3 +1,4 @@ +#!/usr/bin/php @@ -21,7 +22,7 @@ Simple script to turn on/off Nagios notification/checks etc for use with Nagios failover hosts. Default is to turn on/off notifications. - Version 0.1 + Version 0.2 */ // Variables to set for your environment @@ -60,7 +61,9 @@ else // If it has, enable the local Nagios and check if that command did run if ((runCmd($enableCmd)) == 0) { - // If we were successful in enabling the local Nagios, then quit + // If we were successful in enabling the local Nagios, then print + // a message about it and quit + print "Failover Nagios is now active!\n"; exit(0); } else