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. Restart Agent 3.9.334 on CentOS 7

Restart Agent 3.9.334 on CentOS 7

Scheduled Pinned Locked Moved Support
4 Posts 3 Posters 20.9k 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.
  • T
    T
    twenrich
    wrote on last edited by
    #1

    During the last days, I upgraded our 2.2.12 NetXMS to 3.9.334 (mostly painless).
    I also upgraded the agents on most of our servers (with the exception of some CentOS6 machines).

    However, I was used to restart the agent from the console (Node=>Tools=>Restart agent).
    With the 3.9 agent, this works only on the Windows servers.

    On CentOS7, this stops the agent (and requires manual restart on the target machine).

    Do I miss some configuration option ?

    Regards,

    Thomas

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

      How the agent is actually started? Is there some startup script?
      if you do

      ps fax | grep nxagentd
      

      what commang line parameters are visible there?

      1 Reply Last reply
      0
      • T
        T
        twenrich
        wrote on last edited by
        #3

        ps fax returns

        /3086 ?        Ssl   27:08 /opt/netxms/bin/nxagentd -d -c /etc/nxagentd.conf
        

        On system startup, I use a script in /etc/rc.d/init.d/nxagentd (attached).
        However, the restart usually worked with a few 2.2 versions and the same startup configuration.

        With Agent 2.2.10, I get in the log

        2021.11.16 10:08:19.108 *D* RestartAgent() called
        2021.11.16 10:08:19.108 *D* Restarting agent with command line '"/opt/netxms/bin/nxagentd" -c "/etc/nxagentd.conf" -d -D 1 -G CORE -X 29246'
        2021.11.16 10:08:19.112 *D* Trap sender thread terminated
        2021.11.16 10:08:20.113 *D* Session Watchdog thread terminated
        2021.11.16 10:08:20.113 *D* Listener thread terminated
        2021.11.16 10:08:20.114 *D* [threads.pool       ] Thread pool COMM destroyed
        2021.11.16 10:08:20.592 *I* NetXMS Agent stopped
        
        2021.11.16 10:08:21.116 Log file opened (rotation policy 2, max size 4194304)
        2021.11.16 10:08:21.116 *D* Log rotation policy set to 2 (size=16777216, count=4)
        2021.11.16 10:08:21.116 *I* Core agent version 2.2.10
        2021.11.16 10:08:21.116 *I* Additional configs was loaded from /etc/nxagentd.conf.d
        2021.11.16 10:08:21.116 *I* Debug level set to 1
        2021.11.16 10:08:21.117 *I* Data directory: /opt/netxms/var/lib/netxms
        2021.11.16 10:08:21.117 *I* File store: /opt/var/nxagentd
        

        With Agent 3.9.334 (installed with package manager from the NPI on the NetXMS Download page), on the same machine, I get in the logs

        2021.11.16 10:11:33.315 *D* [                   ] RestartAgent() called
        2021.11.16 10:11:33.316 *D* [                   ] Restarting agent with command line '"/opt/netxms/bin/nxagentd" -c "/etc/nxagentd.conf" -p "/var/run/nxagentd.pid" -G CORE -d -X 2641'
        2021.11.16 10:11:33.375 *D* [dc                 ] Data reconciliation thread stopped
        2021.11.16 10:11:33.376 *D* [threads.pool       ] Thread pool DATACOLL destroyed
        2021.11.16 10:11:33.376 *D* [dc                 ] Data collection scheduler thread stopped
        2021.11.16 10:11:33.376 *D* [dc                 ] Data sender thread stopped
        2021.11.16 10:11:33.377 *D* [dc                 ] Database writer thread stopped
        2021.11.16 10:11:34.377 *D* [                   ] Session Watchdog thread terminated
        2021.11.16 10:11:34.377 *D* [                   ] Listener thread terminated
        2021.11.16 10:11:34.377 *D* [notifications      ] Notification processor stopped
        2021.11.16 10:11:34.378 *D* [threads.pool       ] Thread pool COMM destroyed
        2021.11.16 10:11:34.378 *D* [threads.pool       ] Thread pool WEBSVC destroyed
        2021.11.16 10:11:34.378 *D* [threads.pool       ] Thread pool PROCEXEC destroyed
        2021.11.16 10:11:34.703 *I* [                   ] NetXMS Agent stopped
        

        Regards,
        Thomas


        nxagentd

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          Hi,

          looks like bug in new agent. I will try to reproduce it on my CentOS 7 test system.

          Best regards,
          Victor

          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