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. Centos 6.3: Some quick tips & Init script

Centos 6.3: Some quick tips & Init script

Scheduled Pinned Locked Moved Support
1 Posts 1 Posters 10.7k 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.
  • javiersJ
    javiersJ
    javiers
    wrote on last edited by
    #1

    Hi,

    Does anybody here have a sysV iniscript for running the agent as a daemon on startup, and allowing interaction with it using chkconfig?.

    I managed to install the agent on Linux, juts some easy tips:

    1. Install make, gcc and  gcc-c++: #yum update && yum install make gcc gcc-c++

    2. Follow the manual for UNIX here: http://goo.gl/9EmNd

    3. Add an iptables Exception:
      a) vi /etc/sysconfig/iptables.
      b) Add the following line just after the SNMP exception: -A INPUT --protocol tcp --dport 4700 -j ACCEPT

      This is a dump of my iptables' config file first few lines:

      # Firewall configuration written by system-config-firewall
      # Manual customization of this file is not recommended.
      *filter
      :INPUT ACCEPT [0:0]
      :FORWARD ACCEPT [0:0]
      :OUTPUT ACCEPT [0:0]
      -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
      -A INPUT -p icmp -j ACCEPT
      -A INPUT -i lo -j ACCEPT
      -A INPUT --protocol udp --dport 161 -j ACCEPT
      -A INPUT --protocol tcp --dport 4700 -j ACCEPT

    4. Add startup services (courtesy of Victor): http://goo.gl/9LoVq

      here are startup files in source tree under contrib/startup/redhat. Copy netxmsd and nxagentd to /etc/init.d, and run

      chkconfig --add nxagentd
      chkconfig --add netxmsd

      [li]
      Run the service:
      #service nxagentd start

    Regards.

    EDIT: So I found it in the forum...lazy me. Added this and iptables exception.

    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