How to stop monitoring of servers at the time of reboot through shell scripting?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to stop monitoring of servers at the time of reboot through shell scripting?
# 1  
Old 03-02-2010
How to stop monitoring of servers at the time of reboot through shell scripting?

We have number of servers which belongs to platforms Solaris, AIX,HP-UX and LINUX. Monitoring tool 'Patrol Agent' process run on the servers to check for the server health and communicate with the Patrol server through the port 5181. During scheduled reboot and maintenance of servers we do receive alarms/alerts due to the 'Connection Closed' for the nodes. Patrol agent Stop & Start process is automated through shell script during rebooting of the server. Hence we started receiving multiple requests from the users to bring the monitoring of servers into Maintenance mode which is a repeated process and very much time consuming.
So I am just thinking of trying to implement some automation process for keeping the servers in Maintenance mode throughout the time span while server is DOWN. Is there any process that we can implement on the servers through SHELL scripting so that the communication (through the TCP port) between the Patrol Server & Agent can be stopped just before executing the shutdown command and again resuming it as soon as the server is up and running? If so then we can consolidate and execute the new scripts which will stop FALSE alarming .
# 2  
Old 03-02-2010
you should check with "Patrol Agent" software support first, if they can provide this function.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Run a shell script on all 15 servers at the same time?

We have 15 servers. Hostnames for these 15 servers are stored in a text files and loop through each server to connect to the remote server and run a command, but this loop process runs the command one after another. However, the requirement is to run the same command on all 15 servers at the same... (10 Replies)
Discussion started by: laknar
10 Replies

2. UNIX for Advanced & Expert Users

How to stop a reboot after init 6 is given by mistake?

Hi, I recently had an issue and by mistake a script of mine has initiated init 6 command, Is there a way to stop the reboot manually after init 6 is given, Your response is highly appreciated. Thanks in advance !! (9 Replies)
Discussion started by: nanz143
9 Replies

3. UNIX for Dummies Questions & Answers

Shell Scripting Stop/Start Application

I did a search of these forums but couldnt find a suitable resolution. I am attempting to script a stop and start of an application on AIX. Such as: However it has authentication where username and password prompts will appear after running the above command requiring input from a... (2 Replies)
Discussion started by: Soupy
2 Replies

4. Shell Programming and Scripting

How to stop the process in shell scripting?

Hi all, I have tried the below code to execute. #! /bin/bash date1=`date -d "today 08:00:00" +%s` date2=`date -d "today 08:01:00" +%s` path=/home/user01/red/IDC/sample cd $path java Cspsamp 111.19.5.172 7025 rd1 rd1 "5022=Query|5026=109378|4=627|5=E:VD|5042=$date1|5049=$date2"... (5 Replies)
Discussion started by: aish11
5 Replies

5. Shell Programming and Scripting

C shell scripting, check if link exists on remote servers

Hi, I'm new to C Shell programming. I'm trying to check if a sym link exists on remote server if not send email. I'm not having much luck. Can anyone help? Here is what I have written but it doesn't work. It tells me that my variable was not defined. Here is part of the script, the second... (0 Replies)
Discussion started by: CDi
0 Replies

6. Shell Programming and Scripting

Servers Start and Stop

HI I am using below code to start and stop servers but it is not working ,how to run the script please suggest me ,if any errors in the script please let me know. #!/bin/bash IMS_START="/Webserver/AppServer/bin/startServer.sh" IMS_STOP="/Webserver/AppServer/bin/stopServer.sh" case "$1" in ... (1 Reply)
Discussion started by: RG18173
1 Replies

7. Shell Programming and Scripting

Servers Stop and Start

Hi, Every time i want to stop and start servers using PuTTY,i have to execute 6 to 10 commands every time ,i need shell script(program) for execute those commands in single command.Is it possible plz suggest me. (3 Replies)
Discussion started by: RG18173
3 Replies

8. Solaris

Reboot of Unix servers - recommended?

Hello, Please can anyone tell me - is it true that you should not re-boot Unix Sun Solaris servers on a regular basis, but onyl do it when really required? We want to schedule a reboot on a daily basis, to clear any rogue processes, but have been told this is not a good idea. Can anyone... (13 Replies)
Discussion started by: polly013
13 Replies
Login or Register to Ask a Question