Skip to Main Content
HCL Domino Ideas Portal

Welcome to the #dominoforever Product Ideas Forum! The place where you can submit product ideas and enhancement request. We encourage you to participate by voting on, commenting on, and creating new ideas. All new ideas will be evaluated by HCL Product Management & Engineering teams, and the next steps will be communicated. While not all submitted ideas will be executed upon, community feedback will play a key role in influencing which ideas are and when they will be implemented.

For more information and upcoming events around #dominoforever, please visit our Destination Domino Page

Status Assessment
Workspace Domino
Categories Administration
Created by Guest
Created on Jan 16, 2019

Domino on Linux: Updated/additional lnsnmp Start/Stop-Script that is compatible with systemd based Linux OS

Currently, there is only a lnsnmp.sh Script (/opt/ibm/domino/notes/latest/linux/lnsnmp.sh) shipped with Domino that does not work with systemd based Linux OS like CentOS 7 / RHEL 7). 

The Documentation ( https://www.ibm.com/support/knowledgecenter/de/SSKTMJ_10.0.1/admin/admn_configuringthedominosnmpagentforlinux_t.html () works only for SysVinit-based older CentOS / RHEL Releases).

  • Attach files
  • Guest
    Reply
    |
    Nov 12, 2023

    Does SNMP work for you outside the container in Domino 12.0.2?
    I can't get it working on current servers. I even used strace to trace the lnsnmp process.


    The SNMP server on the host is running and I get this back before the process terminates.

    Even if we solve it, it's not clear if we can get it working in combination.

    We need lnsnmp probably running inside the container. Or maybe it would be OK to run it on the host?

    I tried right now on a normal server and failed. Does it need to be installed inside the container?
    Could it run on the container host and the Domino servertasks communicate with it on the host?

    Still you would need a systemd service - which would not be too complicated to build.

    But I don't get it working even I traced it with strace. Any tip what might be missing?

    It was trying to read a lnsnmp.ini file in various places. but that's just optional. Even with debug enabled -D 255 I see only the output below and no errors.


    Constructing Instigator
    Constructing EESA EndPoint
    HCL Domino SNMP Agent (Version 8.0)
    Copyright (c) HCL Technologies 1994, 2019. All Rights Reserved.
    Server list read from lnsnmp.ini:
    Constructing Instigator
    Constructing CSIPC
    Attaching to local SNMP agent
    Allocating instigator attributes
    Opening SMUX session
    Registering a local MIB with EESAEndPoint
    Trying to add the mib, calling AddMib()
    Registering / unregistering a MIB with SMUX
    Sending registration request to SMUX
    Waiting for response to registration request
    Waiting for SMUX message
    Got an SNMP request, processing it now
    Processing a SMUX message
    Closing SMUX session

  • Guest
    Reply
    |
    Jan 22, 2020

    It's simple to make systemd service, but the lnsnmp.sh script does not work with systemd based Linux OS.

    systemd[1]: Starting LNSNMP(SNMP) Daemon....
    lnsnmp.sh[36098]: Don't know how to start/stop lnsnmp on this version of Linux.
    systemd[1]: lnsnmp.service: Control process exited, code=exited status=1
    systemd[1]: Failed to start LNSNMP(SNMP) Daemon..
    systemd[1]: lnsnmp.service: Unit entered failed state.
    systemd[1]: lnsnmp.service: Failed with result 'exit-code'.

    Also the lnsnmp.sh contains old default path which hasn’t been used in many years.

  • Guest
    Reply
    |
    Jul 30, 2019

    maybe Daniel Nashed start script is worth including in standard Domino install packege?

  • Guest
    Reply
    |
    Feb 16, 2019

    Daniel Nashed created such a tool for UNIX/Linux.  See:

    http://www.nashcom.de/nshweb/pages/startscript.htm

    Very simple to set up and use. It just works!!  I have it on all my Linux Domino servers.

  • Guest
    Reply
    |
    Jan 17, 2019

    As discussed on https://atnotes.de/index.php/topic,61967.0.html Ulrich Krause posted an service-Definition for lnsnmp that could be used directly (or as a base) for Shipping with Domino:

     

    [Unit]
    Description=LNSNMP
    After=network.target

    [Service]
    Type=simple
    User=root
    LimitNOFILE=infinity
    LimitNPROC=infinity
    LimitCORE=infinity
    Environment=PATH=/usr/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
    PIDFile=/var/run/lnsnmp.pid

    ExecStart=/opt/ibm/domino/notes/latest/linux/lnsnmp

    [Install]
    WantedBy=multi-user.target

15 MERGED

Domino 10/11 SNMP systemd support

Merged
Domino SNMP consists of servertasks in combination with a Linux deamon. The script to start the Linux component still use init.d! Domino 10 is only supported on RHEL/CentOS 7.4 and higher and SLES 12 and higher. Both switched from init.d to system...
over 4 years ago in Domino / Administration 0 Assessment