#!/bin/bash for i in 1 2 3 4 5 6 7 8 9 10 11 12 do # ssh gazelle@ehealthsuisse$i.ihe-europe.net "sudo sed -i 's/ehealthsuisse$i.ihe-europe.net/localhost/g' /etc/nagios3/conf.d/gazelle-cats.cfg" ssh gazelle@ehealthsuisse$i.ihe-europe.net "sudo sed -i 's/conformity-assessment-vm/ehealthsuisse$i.ihe-europe.net/g' /etc/nagios3/conf.d/gazelle-cats.cfg" ssh gazelle@ehealthsuisse$i.ihe-europe.net "sudo sed -i 's/conformity-assessment-vm/ehealthsuisse$i.ihe-europe.net/g' /etc/nagios3/conf.d/services_http_generated.cfg" ssh gazelle@ehealthsuisse$i.ihe-europe.net "sudo sed -i 's/conformity-assessment-vm/ehealthsuisse$i.ihe-europe.net/g' /etc/nagios3/conf.d/services_portgresql_generated.cfg" ssh gazelle@ehealthsuisse$i.ihe-europe.net "sudo /etc/init.d/nagios3 restart" done