Showing posts with label eDirectory Monitoring. Show all posts
Showing posts with label eDirectory Monitoring. Show all posts

Tuesday, February 17, 2009

Novell eDirectory Server Monitoring

How to monitor Novell eDirectory server and IDM drivers during runtime.

Monitoring Novell eDirectory server

Novell iMonitor can be used to monitor Novell eDirectory server. However, iMonitor does not have runtime notification option. IDM admin can use iMonitor to verify the health of drivers, replicas, replica synchronization and lot more features. Novell iMonitor is a very good tool if used wisely.
While working with couple of Novell Consultants learned a lot on how to use iMonitor. I will be updating my blog with the same.

Also knowing about the internals of eDirectory is also very useful it you are using Novell eDirectory for mission critical applications.

Coming to monitoring software, in addition to iMonitor, Novell Audit is used to check for monitoring drivers and Remote Loader. Notification of events can be configured in novell audit for lot many scenarios. A few of them are mail notification on stopping and starting drivers. On stopping and starting remote loader services, events are notified through email.

Novell eDirectory server can also be monitored using Minichecker software. MiniChecker is designed to run several different types of checks (such as file size, LDAP timestamp, or JDBC query) which return either an Up, Warning, or Down status, and then send an alert (such as email and/or an SNMP trap) when the status changes.  

For example, it can be used to monitor cache files of DirXML drivers, check synchronization between and within LDAP directories, or other custom needs.  MiniChecker can be run in GUI mode (by default) to configure and/or run checkers, or in console mode to run a specified configuration file.

Thursday, January 15, 2009

Monitoring of Novell eDirectory

In order to have a clear idea of the security status of a system, it is necessary to monitor this continually. The aim of such monitoring is to discover any violations of the applicable security provisions, identify any existing security weaknesses and detect any configuration errors which could result in security loopholes. A corresponding monitoring concept should also be viewed as part of the security concept.

Usually it is not feasible these days for complex systems like eDirectory to be monitored by individual administrators, but monitoring must be automated, using appropriate system components or products of third party vendors. The configuration of system monitoring must be regularly adapted to the system as it changes.

eDirectory provides the tool iMonitor for system monitoring. This is a client/server application in which the iMonitor service runs on some (or all) eDirectory servers. The clients can access it via a browser, which has to support HTML Version 3. The client seeking access must authenticate itself to the iMonitor services and, following successful authentication, it is granted access to the iMonitor data, with the rights that have been configured for it.

The information which the iMonitor service provides via an eDirectory server could be used by unauthorised persons to search systematically for security weaknesses in an existing eDirectory installation. For this reason it is recommended only allowing access to the iMonitor service with SSL encryption enabled, especially if access is possible from outside of the organisation's own network. For this purpose the appropriate server certificate must be imported into the browser on the client.

There are two different operational modes for iMonitor access, the direct mode and the proxy mode. In the direct mode, the browser is directly linked to the eDirectory server, whose status data is queried. On the eDirectory server the iMonitor services must be activated. In the proxy mode, a server on which the iMonitor services are available is accessed, but the actual information is retrieved from another server.

Compared with the proxy mode, the direct mode has the advantage that it requires less bandwidth and the server-centred functionality is available in full. From the point of view of IT security, however, the proxy mode is to be preferred so as to keep down the number of eDirectory computers allowing this possibility of direct access. A fixed dial-in address should be used here; this must then be monitored and protected appropriately.
The NDS Trace Utility is used to record eDirectory-specific events in a separate log file. This enables all eDirectory events to be logged. There is also a Novell Advanced Auditing Service (NAAS) additional module, which permits automatic evaluation of eDirectory-specific events.

The following aspects of monitoring should be considered:

The Data Privacy Protection Officer and the staff council and/or works council should be included in the early stages of planning, since monitoring generally also requires the capture of person-related data so that in the event of a security violation it is possible to reliably identify who was responsible.

As well as the eDirectory-specific events, operating system events must also be watched and logged in order to obtain a more complete picture of the system processes. Recommendations and information on logging at operating system level are contained in the existing modules in Chapters 5 and 6.

Third-party products are available which allow a central collection point to be set up for log files with corresponding automated evaluation. If a network and system management tool is used (see also module 6.8 Network and System Management), then, depending on the product, it is possible to import the eDirectory logs directly into this tool.

Depending on the settings, large volumes of data may be generated as a result of monitoring. This must not only be regularly evaluated, but for space reasons it must also be deleted or transferred to other data media at regular intervals as well. At the same time it should be borne in mind that intensive monitoring may have an adverse effect on performance. It is possible for a server to become so overloaded as a result that controlled operation is no longer possible. For this reason the appropriate monitoring parameters must be checked during a test run and, if necessary, modified. It should be noted that modification can also affect the entire monitoring concept as it may no longer be possible for certain monitoring tasks to be carried out. This applies especially where additional products are used which place high demands on logged events. These include, for example, programs which automatically analyse log data for behavioural anomalies that might suggest an attack.

Within the framework of the monitoring of system functions it is also recommended regularly checking the eDirectory replication process, through which configuration changes are propagated. Errors in replication usually have the result that configuration changes are not implemented everywhere, so that, for example, a given user might enjoy more privileges than he is supposed to.

Additional controls:

  • Has a monitoring concept that is tailored to the requirements been drawn up and implemented?
  • Are important system events logged?
  • Have monitoring settings been configured for important system files?

Saturday, January 10, 2009

Novell eDirectory Health Checks -5

Replica State & Ring Consistency Checks

The replica state check lists partitions and the states of the replicas stored in the current Directory Information Base (DIB). Although not likely to happen it is a good idea to periodically check to ensure that replica states have not suddenly changed from ON to some other undesirable state, such as Dying.

You should also occasionally check that each partition replica ring is consistent, that is, the replica ring list on every server holding the same partition should be the same.

To check for ring consistency you run ndsrepair on the server with the master replica, check the ring, then run ndsrepair, on other servers in the ring and check to see if the list and type of replica reported is the same.

For Solaris or Linux execute ndsrepair –P – login as root required – Select Option 6 to check replica state, Select Option 10 to view the replica ring information.

Schema Synchronisation and Status Check

All servers in the eDirectory tree have a copy of the schema, even if the server does not hold any replicas, the schema information must be identical.

When schema changes are made they are applied to the server holding the Master replica of root, from there the changes are propagated down the tree from one server to another. The eDirectory schema synchronisation process is event driven and starts 10 seconds after a schema change is made.

To use ndstrace to check whether the schemas in a tree are in synchronisation:

For Solaris or Linux execute the following:

set ndstrace = on

set ndstrace = nodebug

set ndstrace = +scma (Enables schema sync messages)

set ndstrace = +scmd (Enables detailed schema sync messages)

set ndstrace = *ss (Forces Schema Sync to run)

You can view the trace information in /var/nds/ndstrace.log file, which can be viewed through a text editor. You are looking for “All processed = YES” statement. Or you can use the grep command to interrogate the file for the statement you are looking for.

Novell eDirectory Health Checks -4

External References, Backlink and Obituaries Check

When a server references an object that it does not have locally, an external reference to that object is created, and the object will have a DRL (Distributed Reference Link) to the server that holds its exref. It is a good idea to know how many external references a server holds, if there are many then the server should hold a copy of the replica. This check will also show any obituaries and their state.

For Solaris or Linux execute ndsrepair –C – login as root required Total errors reported should be 0, investigate any errors shown.

To include obits reporting execute ndsrepair –Ad –C

After this has been run the log file shows exrefs that are backlinked (DRL) and lists any obituaries that have not yet completed. Of primary concern are the obituaries that have not completed. For example, problems can emerge if the obituary flag remains in the same state and is never purged. This condition indicates a possible communication problem between servers or that a server may have been removed, or crashed, improperly.

If you suspect backlink, exref and obit problems then use ndstrace to check.

The procedure for doing this is:

set ndstrace = on

set ndstrace = nodebug

set ndstrace = +blnk (Enables backlink messages)

set ndstrace = +bldt (Enables detailed backlink messages)

set ndstrace = +jntr (Enables Janitor messages)

set ndstrace = *b (Forces Backlink to run)

set ndstrace = *f (Forces the Flat Cleaner to run)

The displayed information is saved automatically in the /var/nds/ndstrace.log file, which can be viewed through a text editor.

Novell eDirectory Health Checks -3

Replica Synchronisation – Partition Continuity Check

The replica synchronisation (partition continuity) check helps identify if any of the partition’s replicas are experiencing synchronisation errors. The check displays the time of the last successful synchronisation.

If there has not been a successful synchronisation for more than 12 hours a warning is flagged and should be investigated.

For Solaris or Linux execute ndsrepair –E at the server console – login as root required

Last successful synchronisation values should be close, but no more than 12 hours.

Novell eDirectory Health Checks -2

Server to Server Synchronisation Check

Server to server synchronisation status check ensures that the servers within a given replica ring are communicating correctly. However it does not guarantee that replicas are synchronised, a partition continuity check discussed later is required to verify this.

For Solaris or Linux execute the following commands:

su root

> /var/nds/ndstrace.log (this is the file where the information is saved)

set ndstrace = on

set ndstrace = nodebug

set ndstrace = +sklk (Enables synchronisation messages)

set ndstrace = +sync (Enables inbound synchronisation)

set ndstrace = *h (This initiates a synchronisation heartbeat)

set ndstrace = off (Give enough time to record synchronisation information)

To gather information to check server to server synchronisation use grep on ndstrace.log

grep “All processed = YES” /var/nds/ndstrace.log | wc -l (Will output those servers that are synchronising)

grep “All processed = NO” /var/nds/ndstrace.log | wc -l (Will output those servers that are not synchronising)

NB If you get any “All processed = NO” then investigate further!

Logout of server when finished.

Novell eDirectory Health Checks -1

Check eDirectory version and Time Synchronisation

Correct time synchronisation is important as eDirectory partitions are replicated and need to be concurrent with one another. Each event that occurs is marked with a timestamp; these timestamps are used to order the processing of events and changes that can occur on multiple servers.

The time synchronisation check is performed using the ndsrepair utility and should performed on a server that holds a replica of [Root], not necessary the master. It is carried out on such as server as it will be aware of all the servers in the tree.

For Solaris or Linux execute ndsrepair –T – login as root required This will report the time synchronisation of all the servers in the tree. If not all the servers in the tree are displayed it will be necessary to run this on those missing servers.

As a by product of running this command eDirectory versions are also displayed. The current version reported should be 10552.79.

This check should be run on a regular basis, and certainly before any partition operations are carried out. Recommendation is to run it daily.


Thursday, January 8, 2009

Novell eDirectory Handy Commands

1. netstat
2. ndsconfig upgrade
Upgrade command will fix the certificates.
To remove the non root server from the root before doing a cleanup.
ndsconfig rm -a admin.sup
3. ndsrepair -N
Will fix the network addresses
ndsrepair -T
ndsrepair -P
Show all replicas and perform below operations
1. Repair all replicas
2. Repair selected replica
3. Schedule immediate synchronization
4. Cancel partition operation
5. Designate this server as the new master replica
6. Report Synchronization status of all servers
7. Synchronize the replica on all servers
8. Repair Ring, all replicas
9. Repair Ring, selected replica
10. View Replica Ring
11. View entire partition name
12. Return to Replica List
4. NDSCONFIG COMMAND:
new -i -t profiletree-ivvt2 -n ou=dy.ou=services.ou=profile.o=ccstore -a cn=admin.o=sup -e
-D /var/opt/novell/eDirectory -d /data/nds/dib -P 192.168.100.70 -B 147.149.123.70
ndsconfig rm -a admin.sup
To remove the non root server from the root before doing a cleanup.
5. ndsimonitor
Check for imonitor partitions
6. IManager error codes
601 - UID is wrong.
669 - Passwd is wrong.
626 - Tree name is wrong.
7. cat //etc/init.d/post_ndsd_start
8. snoop -d bge2
9. netstat -r
Routing Table
10. /etc/rc2.d/S98start_logmon
11. /etc/init.d/ndssnmpsa start
12. /etc/rc3.d/S76snmpdx start
13. ldapsearch -h 192.168.100.66 -p 389 -w novell123 -D cn=admin,o=sup,dc=bt cn=admin
14. vi /etc/logevent.conf
15. vi /var/opt/novell/tomcat4/webapps/nps/WEB-INF/configiman.properties
Contains the eDirectory tree name.
16. vi /etc/snmp/conf/_snmpdx.rsrc.JASS.20060504184320
17. vi /etc/snmp/conf/snmpdx.acl
18. arp 147.149.123.66