nv-l
[Top] [All Lists]

RE: [nv-l] Daemon checking

To: "Barr, Scott" <Scott_Barr@csgsystems.com>, <nv-l@lists.tivoli.com>
Subject: RE: [nv-l] Daemon checking
From: "Brian Backer" <brian.backer@CenturyTel.com>
Date: Thu, 31 Oct 2002 14:45:48 -0600
Scott,
This isn't nvmon, but we have this job scheduled thru DM to run and I can't 
imagine an ovstatus is much different on Solaris.  Just a perl script... for 
paging DM emails to pager..
Just thought I'd share with you.
brian


&SourceTivEnv;     #Source the Tivoli Environment
$dlist = `/usr/OV/bin/ovstatus`;
&GatherInput;
&PrintInfo;

sub SourceTivEnv {  #Subroutine for sourcing the Tivoli Environment
        $tiv_setup = "/etc/Tivoli/setup_env.sh";
        open(SETUP, ". $tiv_setup; set |") || die "Can't source $tiv_setup: $!";
        while (<SETUP>) {
                chop;
                s/^([^=]+)=//;
                $ENV{$1} = $_;
        }
        close SETUP;
}

sub GatherInput {
        @darray = split('\n\n', $dlist);
        foreach (@darray) {
                /name:\s+(\w+)\n/;
                $daemon = $1;
                /state:\s*(\w+)\n/;
                $state = $1;
                if($state eq "RUNNING") {
                        next;
                }
                else {
                        push(@ddlist, $daemon . "\n");
                }
p
        }
}

sub PrintInfo {
        if(@ddlist) {
                print "Error\n";
                foreach (@ddlist) {
                        chop;
                        print "# $_ not running\n";
                }
        }
        else {
                print "Running\n";
        }
}







-----Original Message-----
From: Barr, Scott [mailto:Scott_Barr@csgsystems.com]
Sent: Wednesday, October 30, 2002 9:31 AM
To: nv-l@lists.tivoli.com
Subject: RE: [nv-l] Daemon checking


Can someone email me a copy of nvmon? I cannot get it cut and paste from the 
pdf or html versions of the Red Book. (well I can but I really don't want to 
have to insert 5 pages of carriage returns where they are supposed to go). 
Also, anyone have  a comment on running this script under solaris? I'm not a 
huge scripting guy so obvious changes are not likely to be obvious to me.

> -----Original Message-----
> From: Davis, Donald [mailto:donald.davis@firstcitizens.com]
> Sent: Monday, October 28, 2002 11:33 AM
> To: Barr, Scott; nv-l@lists.tivoli.com
> Subject: RE: [nv-l] Daemon checking
> 
> 
> Scott,
> Have a look at the RedBook: SG24-6019-00  Tivoli NetView 6.01 
> and Friends.
> There is a script called "nvmon" that monitors the NetView daemons.
> It can probably be massaged to run on Solaris without too 
> much trouble.
> It is not a complete paging solution but it is a great head start.
> 
> Don Davis
> 
> -----Original Message-----
> From: Barr, Scott [mailto:Scott_Barr@csgsystems.com]
> Sent: Monday, October 28, 2002 9:12 AM
> To: nv-l@lists.tivoli.com
> Subject: [nv-l] Daemon checking
> 
> 
> Does anyone have a script for solaris that checks on Daemon 
> status and pages
> for failures?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
> For additional commands, e-mail: nv-l-help@lists.tivoli.com
> 
> *NOTE*
> This is not an Offical Tivoli Support forum. If you need immediate
> assistance from Tivoli please call the IBM Tivoli Software Group
> help line at 1-800-TIVOLI8(848-6548)
> 
> 
> --------------------------------------------------------------
> ----------------
> This electronic mail and any files transmitted with it are 
> confidential and are intended solely for the use of 
> individual or entity to whom they are addressed.  If you are 
> not the intended recipient or the person responsible for 
> delivering the electronic mail to the intended recipient, be 
> advised that you have received this electronic mail in error 
> and that any use, dissemination, forwarding, printing, or 
> copying of this electronic mail is strictly prohibited.  If 
> you have received this electronic mail in error, please 
> immediately notify the sender by return mail.
> 
> ==============================================================
> ================
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
> For additional commands, e-mail: nv-l-help@lists.tivoli.com
> 
> *NOTE*
> This is not an Offical Tivoli Support forum. If you need immediate
> assistance from Tivoli please call the IBM Tivoli Software Group
> help line at 1-800-TIVOLI8(848-6548)
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
For additional commands, e-mail: nv-l-help@lists.tivoli.com

*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)


<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web