How can you monitor replication?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I use a script like this:


#! /bin/bash
# Script para verificar el estado de la replicacion del directorio
# Ivan Ferreira - Enero 2007

MAILTO=iferreir at domain.com.py
STATUSFILE=/var/log/DSLastUpdateStatus.log

ldapsearch -x -D "uid=replmon,ou=Special
Users,dc=sis,dc=personal,dc=net,dc=py" \
  -b 'cn=replica,cn="dc=sis,dc=personal,dc=net,dc=py",cn=mapping
tree,cn=config' \
  -w <password> objectClass=nsDS5ReplicationAgreement \
  nsds5replicaLastUpdateStatus nsds5replicaLastUpdateStart | grep -E \
  "^nsds5replicaLastUpdateStatus|^nsds5replicaLastUpdateStart" >
$STATUSFILE 2>&1

STATUS=`grep "^nsds5replicaLastUpdateStatus" $STATUSFILE |awk '{ print $2
}'`
DETAIL=`grep "^nsds5replicaLastUpdateStatus" $STATUSFILE | awk '{ for (i=3;
i<=NF; i++) printf "%s ", $i }'`
if [ $STATUS -ne 0 ]
then
 echo "ALERT!! Directory replication failed with status: $DETAIL" | mail \
  -s "Directory replication failed" $MAILTO
fi
# echo $STATUS $DETAIL






                                                                           
                                                                           
                                                                           
                                                                      Para 
                                          "General discussion list for the 
                                          Fedora Directory server          
       "Ian Meyer"                        project."                        
       <ianmmeyer at gmail.com>              <fedora-directory-users at redhat.c 
       Enviado por:                       om>                              
       fedora-directory-users-b                                         cc 
       ounces at redhat.com                                                   
                                                                    Asunto 
       27/09/2007 11:28 a.m.              How can 
                                          you monitor replication?         
                                                             Clasificaci?n 
                                         Uso Interno                       
        Por favor, responda a                                              
       "General discussion list                                            
       for the Fedora Directory                                            
           server project."                                                
       <fedora-directory-users@                                            
             redhat.com>                                                   
                                                                           
                                                                           




Hello,

We have a decent sized env. (1 master, 16 slaves in different
datacenters across the world) and we're trying to find a way to
effectively monitor the status of replication. When was the last
update? How many changes were made? How long did it take from start to
finish? I know you can get most of this information from the gui, but
we need to tie it in to our monitoring application. Is this
information stored in a db anywhere? In ldap itself? Any insight would
be appreciated.

Thanks in advance!
- Ian

--
Fedora-directory-users mailing list
Fedora-directory-users at redhat.com
https://www.redhat.com/mailman/listinfo/fedora-directory-users


========================================================================================
AVISO LEGAL: Esta informaci?n es privada y confidencial y est? dirigida
?nicamente a su destinatario. Si usted no es el destinatario original de
este mensaje y por este medio pudo  acceder a dicha informaci?n por favor
elimine el mensaje. La distribuci?n o copia de este mensaje est?
estrictamente prohibida. Esta comunicaci?n es s?lo para  prop?sitos de
informaci?n y no debe ser considerada como propuesta, aceptaci?n ni como
una declaraci?n de voluntad oficial de NUCLEO S.A.  La transmisi?n de
e-mails no garantiza que el correo electr?nico sea seguro o libre de error.
Por consiguiente, no manifestamos que esta informaci?n sea completa o
precisa.  Toda informaci?n est? sujeta a alterarse sin previo aviso.

 This information is private and confidential and intended for the
recipient only. If you are not the intended recipient of this message you
are hereby notified that any review,  dissemination, distribution or
copying of this message is strictly prohibited. This communication is for
information purposes only and shall not be regarded neither as a proposal,
acceptance nor as a statement of will or official statement from NUCLEO
S.A. . Email transmission cannot be guaranteed to be secure or error-free.
Therefore,  we do not represent that this information is complete or
accurate and it should not be relied upon as such. All information is
subject to change without notice.




[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux