Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. edit agent's configuration file not enabled

edit agent's configuration file not enabled

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 12.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y
    Y
    yordi
    wrote on last edited by
    #1

    Hello,

    i want to check ssl certificate expiration date of some websites. (nodes that i added in netxms)
    in a post i have found to add a "externalparametershellexec"

    ExternalParameterShellExec = HTTPS.CertificateExpireDate(*):echo | openssl s_client -showcerts -servername netxms.org -connect netxms.org:443 2>/dev/null | openssl x509 -inform pem -noout -enddate | cut -d = -f 2
    

    when i open de netxms agent (on windows pc version 2.2.17 ) and right click on a node "edit agent's configuration file" i get the error "The chosen operation is not enabled".
    then this option got "grayed out".
    i am logged in with a LDAP user member of the default "Admins" group with full access.

    1:How do i accomplish this ? Netxms is running on linux server, and there is no update available.
    2: Can I use a variable in this external command to replace "netxms.org" with the node "primary host name" (is url)

    so i can create a data collection configuration template for the container containing the url's to monitor the certificates expiration warning?
    So for the node (website) i can see the expiration time of the ssl certificate, and use Thresholds to create a alarm when close to expiring or expired, and create a summary table.

    1 Reply Last reply
    0
    • F
      F
      Filipp Sudanov
      wrote on last edited by
      #2
      1. The chosen operation is not enabled - how's the server is specified in agent config? Is it MasterServer, ControlServer or Server? Should be MasterServer to be able to edit config file remotely.
        If this is not the reason, I suggest to upgrade to a current version - current one is 3.7. Could be that there were some issues with that on 2.2.

      2. As for automatically including primary host name into config, all necessary functionality is available starting from v.3.6:

      First of all, you need to use configuration policy for that. Configuration policy is configured in a template (right click on a template -> Agent policies).
      Configuration policy allows to specify a part of agent config. These parts are uploaded to agent system and merged together on agent start.
      Changes in configuration policies require agent restart to get applied (except for lines in [ENV] section of config - this is applied on the fly). You can collect agent parameter Agent.IsRestartPending to determine, if agent received new configuration policy and execute agent restart action from EPP.
      In configuration policy there's checkbox "Expand macro". If it's set, the macros are expanded (see https://www.netxms.org/documentation/adminguide/event-processing.html?highlight=macros event processing#macros-for-event-processing)

      1 Reply Last reply
      0
      • Y
        Y
        yordi
        wrote on last edited by
        #3

        Hello,

        for years, the netxms server (only have one) is running on linux debian.
        there is no update anymore, just for windows servers.. so i can no update the netxms server.
        these are the sources used on the linux server

        # deb http://packages.netxms.org/debian wheezy beta
        deb http://packages.netxms.org/debian jessie main

        we have tons of nodes, and dci templates .. i do not know ho "easy" a server migration to windows will be ??

        1 Reply Last reply
        0
        • F
          F
          Filipp Sudanov
          wrote on last edited by
          #4

          Netxms updates on linux are available, only support for jessie was dropped, that's why it's stuck on 2.2.

          Currently supported are Debian 9 (Stretch) and 10 (Buster) so you might need to upgrade the OS.

          Upgrade of NetXMS most probably will happen automatically, but it's strongly recommended to do it first in testing environment and have DB backup/snapshot prior to upgrading.

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups