NDSD Process Monitor

0 Likes
NDSD Process Monitor is an automated tool to collect the NDSD process statistics like the number of connections on ports (389, 636, 524), Total Memory, Virtual Memory, Thread and CPU Usage by NDSD process on a Novell eDirectory Server. This is a Cross-Platform (Linux, AIX, SunOS) tool based on BASH Scripting.

Steps to run the tool.


  1. Just download the "NDSD_PROCESS_Monitor.tar.gz"

  • Extract it (#tar -zxvf NDSD_PROCESS_Monitor.tar.gz)

  • Just Do!




# ./NDSD_PROCESS_Monitor

usage: ./NDSD_PROCESS_Monitor options

This script will get defined process statistics.

Mandatory OPTIONS:

-o Os Name or Platform :: Linux / SunOS / AIX :: Default: Mandatory from out of three
-H IP of the HOST :: Default: Mandatory
-m e-Mail ID for sending alert massages

OPTIONS:
-f Log file name with path :: Default: /var/tmp/YYYYMMDD_HHMM.log
-h To show this message
-i Interval between two different stat of Process :: Must be in Second :: Default: 30
-c Check for ndsd core at every given interval on given location :: default: /var/opt/novell/eDirectory/data/dib

Examples:

./NDSD_PROCESS_Monitor -h

To show this message

$0 -o Linux -H XXX.XXX.XXX.XXX -m your@email.com

To get "ndsd" pocess statistics

$0 -o AIX -H XXX.XXX.XXX.XXX -m your@email.com -i 60 -f /root/tmp/ndsd_process_stat.log
.
To get "ndsd" process statistics on AIX platform for every 60 seconds

#



Note: Tool has been tested with all SLES version, Solaris 10, AIX 5.3. Please comment for any Support / BUG related to tool.


 
 
 

Labels:

Collateral
Comment List
Anonymous
Parents
  • You say, that you tested it with all SLES versions, but my SLES 9 and 10 return, when I issue command hostname, an alias, which is hostname without domain. But when you test actual hostname against IP address which was in command line, you read second column from /etc/hosts :


    local ACT_HOSTNAME=`hostname`
    ### locate the hostname from /etc/hosts file using supplied IP ###
    local GET_HOSTNAME_FILE=`cat /etc/hosts | grep $IP | awk '{print $2}'`


    where isn't alias, but whole hostname with domain name. Your code should be :


    local ACT_HOSTNAME=`hostname`
    ### locate the hostname from /etc/hosts file using supplied IP ###
    local GET_HOSTNAME_FILE=`cat /etc/hosts | grep $IP | awk '{print $3}'`


    or


    local ACT_HOSTNAME=`hostname -f`
    ### locate the hostname from /etc/hosts file using supplied IP ###
    local GET_HOSTNAME_FILE=`cat /etc/hosts | grep $IP | awk '{print $2}'`


    Second code snippet check FQDN with hostname -f against second column, where is placed FQDN record for servers hostname.
Comment
  • You say, that you tested it with all SLES versions, but my SLES 9 and 10 return, when I issue command hostname, an alias, which is hostname without domain. But when you test actual hostname against IP address which was in command line, you read second column from /etc/hosts :


    local ACT_HOSTNAME=`hostname`
    ### locate the hostname from /etc/hosts file using supplied IP ###
    local GET_HOSTNAME_FILE=`cat /etc/hosts | grep $IP | awk '{print $2}'`


    where isn't alias, but whole hostname with domain name. Your code should be :


    local ACT_HOSTNAME=`hostname`
    ### locate the hostname from /etc/hosts file using supplied IP ###
    local GET_HOSTNAME_FILE=`cat /etc/hosts | grep $IP | awk '{print $3}'`


    or


    local ACT_HOSTNAME=`hostname -f`
    ### locate the hostname from /etc/hosts file using supplied IP ###
    local GET_HOSTNAME_FILE=`cat /etc/hosts | grep $IP | awk '{print $2}'`


    Second code snippet check FQDN with hostname -f against second column, where is placed FQDN record for servers hostname.
Children
No Data
Related Discussions
Recommended