edirmon - NWMON-like eDirectory monitor for Linux

0 Likes
over 11 years ago

Overview



edirmon is a tool designed to provide nwmon.nlm functionality for eDirectory on linux. It collects information, evaluates eDirectory health based on the information, and places the information in its data logs.

edirmon can be run in interactive mode (with a screen showing data and health) or in daemon mode where it only logs information and health. The data logs are placed in the configured edirmon data directory. Program information and changes in health are sent to the system logger for processing. You can also optionally create an html health screen (edirmon does not contain a web server).

edirmon mimics nwmon in functionality and output.

Installation and Configuration



Install the RPM.

edirmon can pretty much run out of the box if eDirectory is installed using the default paths. The only setup that has to occur after installing the rpm is supplying credentials to use when pulling iMonitor data in /etc/opt/novell/edirmon/conf/secret. You may also want to make changes to /etc/opt/novell/edirmon/conf/edirmon.conf, depending on your setup.

Alerting



All program information is sent to the system logger for processing, so it is possible for the sysadmin to route information based on the syslog configuration. This allows edirmon to integrate with existing infrastructure for centralized logging or alerting.

All messages are sent as LOG_USER facility.
Program debug messages are LOG_DEBUG level.
Health status changes to HEALTHY are LOG_INFO level.
Health status changes to SUSPECT are LOG_WARNING level.
Health status changes to UNHEALTHY are LOG_ERR level.

Screen shots



HEALTHY HEALTHY


SUSPECT SUSPECT


UNHEALTHY UNHEALTHY

Tags:

Labels:

Collateral
Comment List
Anonymous
  • Hi, nice tool. Thanks for all the work. I downloaded and installed novell-edirmon-1.0-12.noarch.rpm and it is working great on OES2 SP3 64-bit.

    I noted that it says v 1.0.11 at the top instead of 1.0.12. Obviously does not change the beauty of the app!
  • OES2SP2 now uses /opt/novell/eDirectory/sbin/post_ndsd_*
    /etc/init.d/ndsd has a section for migrating them out of /etc/init.d (where they should not have been in the first place, IMHO).

    might want to update your README

    Also, to avoid the "openvt: vt 8 is in use; command aborted, use `openvt -f' to force." should we stop and start the edirmon daemon too ?? or do you recommend to leave it in memory during ndsd restarts ???

    p
  • this could be enabled by using the operating system's mail command (/usr/bin/mail in SLES) and perl's system command.

    so
    cat /tmp/file/.txt | mail -s "the subject" recipient@nice.com -r from@server.naughty.com

    should be acceptable to many
    if you have a template for the format of the email, people can fiddle with the format to their hearts content, just provided they leave your variables in place. shouldn't be too much work (honest !!!)

    eg : to replace the server name
    sed -i "s:SERVER_NAME/$HOSTNAME/g" /tmp/file.txt
    might be all that is needed to put the server's name into the template file prior to sending the alert. There is probably a more suitable perl way of doing it.

    (did you like the santa reference ??)
    p
  • Hi,
    getting the following when multiple ip addresses are present.
    "edirmon[19549]: WARNING: Couldn't resolve host '10.251.1.118:8030,10.251.1.99' when getting verb information from iMonitor"


    In the master server's case, it is hard coded in /etc/sysconfig/network/ifcfg-eth0
    other servers use "ifconfig eth0 add ..." and it seems ok on those at the moment.

    eg:
    DEVICE=eth0
    STARTMODE=onboot
    USERCONTROL=no
    BOOTPROTO=static
    NETMASK=255.255.128.0
    IPADDR=10.251.1.118
    IPADDR_time='10.251.1.98'
    NETMASK_time='255.255.128.0'
    LABEL_time='time'
    PREFIXLEN=''
    PREFIXLEN_time=''
    IPADDR_master='10.251.1.99'
    NETMASK_master='255.255.128.0'
    LABEL_master='master'
    PREFIXLEN_master=''
  • I just installed 1.0-12 on a server; upon running, it shows:


    Monitoring Statistics for : SVR1 [32-bit eDir on x86_64] v1.0.11
    05/12/10 12:06:01 PM - (LIVE)


    Yet ndsd is 64-bit:


    [root@svr1 /]# file /opt/novell/eDirectory/sbin/ndsd
    /opt/novell/eDirectory/sbin/ndsd: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), for GNU/Linux 2.6.4, not stripped
  • Cool tool, does it work with Multiple Instances of eDir?
  • I think a lot of people need this - and I am too 'limited' :-) to find the attachment on the coolsolution if it is there. Otherwise I would suggest to up the version count and publish the version built without using lsLzma.
  • Sorry about the IsLzma issue - that was a function of my build host being SLES11 and not a requirement of the rpm. I just repackaged it on a SLES9 host and attached a version which should fix these issues.
  • It can´t be installed there.

    Error message, when trying to install it on SLES9 SP4.

    rpmlib(PayloadIsLzma)

    Thanks a lot.
Related Discussions
Recommended