Notify when the script run(hourly)on my jump-box only when there is a failure on my remote-box
Team,
Presently I have a script, which i have set up cron on one of my Jump-boxes,and gives me the output on every hourly basis,fetching the data from the remote machine.Basically it gives me the list of all active users logged and its count once we execute the script.Here the count is mentioned/specified as Total Transaction(column)and users are mentioned as List of users(column).
Currently there are 100 users(different names) and the count is 100
below is the main script details
the ip_remote consist of the remote ip address its going to login
the hourly_details consist of below
Basically, I am looking to execute the script hourly on my jump-box but to notify me only when any of the users(List of users) are down and as per its count(Total Transactions).
Is there any way around ?
Regards
Whizkid
Last edited by Don Cragun; 11-17-2014 at 02:20 AM..
Reason: Fix CODE tags.
No, basically it has to alert us incase any of the users are down and with the count status.. I dont need to manually log into the jumpbox to check the logs size etc..
Between the active.sh consist mix of various shell script calling multiple scripts within...
Between, I do get the below output in my log as below:
As described earlier, i just need to monitor just the Partner_id(column) and the total partners count, and notify me incase the count goes down and any of the users missing from the Partner_id column.
Both the points mentioned by you, is not meeting my goal..Need more inputs as per the points mentioned above.
Please tell us exactly and verbosely WHAT is correct and WHAT is an error. Intercept the result of the remote command and compare it to what you need it to be. If it is OK, don't log it. If it isn't, log it. If, at the end, logs exist, mail them.
Hello Good Day / Guten Tag....
I have to login the server and the user profile contains some scripts which need the inputs to be taken from the keyboard.
So I use the method to conn.authenticateWithKeyboardInteractive(username, new InteractiveCallback() {
public String... (1 Reply)
Hello my dear friends,
Two file are auto generated from mon - fri at different directories on same windows box.Every day i have to copy the file, rename it (specific name)and ftp it to linux box specified directory.
is it possible to automate this process,If yes this has to be done from windows... (1 Reply)
Hi,
How to find remote Linux box login account without login in to that box?
I don't have login account at my remote Linux box. But I need who are all having login account. How do I findout?
Thanks,
--Muthu. (3 Replies)
Hello all !
I'm trying to write a shell script (bash) to ftp a file starting with particular name like "Latest_" that is present on a Windows box to UNIX server. Basically I want to set this script in the cron so that daily the new build that is posted on the Windows box can be downloaded to the... (2 Replies)
I need to send invoke a script that sends out a mail, whenever a box fails (i.e., one or more of the jobs in the box fail). The key point is that this job should start on failure of box, but it should be able to find out the jobs in the box that have failed and pass them to the script.
Please... (1 Reply)
I need to execute a shell script on a remote linux box. But the shell script resides on the local linux box where I am currently logged in. Is there a way to do this? I know rsh <host> <command> can execute a command on the remote host. (6 Replies)
i have a unix script which is available in a box say box1
i want this script to be run in box box2
and put the output file in box2
what is the procedure to execute this script in box2
i will call the script in box1 using cybermation (1 Reply)
Hi all,
i have a perl script one server. I am running a cronjob to execute my perl script.
#! /usr/bin/perl
...
...
...
#call a shell script on another server How can i accomplish #?
Do i have to issue a system (" ssh -l username server | shellscript.sh") in my shell script? or is there a... (1 Reply)
HI All,
I need a script to reboot a linux box from a windows box.
The script needs to run automatically whenever a sitescope alerts with an error message.
Have searched for this in the forums, but could not get something relative.
Pls. let me know the various alternatives we have to do... (2 Replies)
Noob question ..
My Java based application needs to change some user passwords based on some user actions. Since this application can run on Redhat AS2.1 / AS4.0 / Solaris 9 etc, the most safe and portable solution that I could think of was: Use expect.
Now, expect is not available on all... (1 Reply)