Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated email addresses in production monitoring scripts

  • Loading branch information...
commit e8dc348e4cf965bd2230b99df3c6d3f69cd9912e 1 parent 6737d3e
@alansaviolobo alansaviolobo authored
View
2  scripts/master-failure-application-pointing-script.sh
@@ -27,7 +27,7 @@ scp $etchost root@$lb1:$etchost || { echo "Not able to connect to $lb1 frontend"
/usr/sbin/sendmail -oi -t << EOF
From: Production_environment_monitor
-To: kannan.s@nic.in,dpmisra@nic.in,nk.jain@nic.in
+To: nic-ogpl@nic.in,opengovplatform@gmail.com
Subject: Alert,demodata and demodatacms applications pointed to new master server
FYI, Mysql service from master was not accessible. Took necessary action and tried to restart it but could not able to start it so ran mysql promote scripts on slave server and pointed all FEs to new master.
View
12 scripts/mysql-connectivity-check-master.sh
@@ -48,8 +48,8 @@ then
echo "mysql service is really not running, checked 5 times"
ssh $master $START
/usr/sbin/sendmail -oi -t << EOF
-From: Production_NIC_Master
-To: kannan.s@nic.in,dpmisra@nic.in,nk.jain@nic.in
+From: Production_Master
+To: nic-ogpl@nic.in,opengovplatform@gmail.com
Subject: Alert, Mysql master service on $master was down
FYI, Master MySQL services were not accessible. Took necessary action and started service. please check replication on slaves.
@@ -124,8 +124,8 @@ sh /home/master-failure-application-pointing-script.sh > /mnt/scriptslog/master-
##
/usr/sbin/sendmail -oi -t << EOF
-From: Production_NIC_Master
-To: kannan.s@nic.in,dpmisra@nic.in,nk.jain@nic.in
+From: Production_Master
+To: nic-ogpl@nic.in,opengovplatform@gmail.com
Subject: Alert, Master MySQL $master services are not accessible.
Alert, Master MySQL services are not accessible. Took necessary action and made changes in /etc/hosts on all servers.
@@ -202,8 +202,8 @@ echo done
sh /home/master-failure-application-pointing-script.sh > /mnt/scriptslog/master-failure-application-pointing-script.log
/usr/sbin/sendmail -oi -t << EOF
-From: Production_NIC_Master
-To: kannan.s@nic.in,dpmisra@nic.in,nk.jain@nic.in
+From: Production_Master
+To: nic-ogpl@nic.in,opengovplatform@gmail.com
Subject: Alert, Master MySQL $master queries in queue
Alert,Though system showing mysql master is running,we did not get the output of our default query means there are lot of queries in queue. Took necessary action and made changes in /etc/hosts files
View
2  scripts/replication-monitoring-production-slave.sh
@@ -25,7 +25,7 @@ then
/usr/sbin/sendmail -oi -t << EOF
From:Production Slave
-To: kannan.s@nic.in,dpmisra@nic.in,nk.jain@nic.in
+To: to nic-ogpl@nic.in,opengovplatform@gmail.com
Subject: Alert, Replication not working on Production slave
Alert, Replication not working on slave. Please login to the system to check issue.
Please sign in to comment.
Something went wrong with that request. Please try again.