<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Centos 6.3: Some quick tips & Init script]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Does anybody here have a sysV iniscript for running the agent as a daemon on startup, and allowing interaction with it using chkconfig?.</p>
<p dir="auto">I managed to install the agent on Linux, juts some easy tips:</p>
<ol>
<li>
<p dir="auto">Install make, gcc and  gcc-c++: <em>#yum update &amp;&amp; yum install make gcc gcc-c++</em></p>
</li>
<li>
<p dir="auto">Follow the manual for UNIX here: <a href="http://goo.gl/9EmNd" rel="nofollow ugc">http://goo.gl/9EmNd</a></p>
</li>
<li>
<p dir="auto">Add an iptables Exception:<br />
a) <em>vi /etc/sysconfig/iptables</em>.<br />
b) Add the following line just after the SNMP exception: -A INPUT --protocol tcp --dport 4700 -j ACCEPT</p>
<p dir="auto">This is a dump of my iptables' config file first few lines:</p>
<p dir="auto"><em># Firewall configuration written by system-config-firewall<br />
# Manual customization of this file is not recommended.<br />
*filter<br />
:INPUT ACCEPT [0:0]<br />
:FORWARD ACCEPT [0:0]<br />
:OUTPUT ACCEPT [0:0]<br />
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT<br />
-A INPUT -p icmp -j ACCEPT<br />
-A INPUT -i lo -j ACCEPT<br />
-A INPUT --protocol udp --dport 161 -j ACCEPT<br />
-A INPUT --protocol tcp --dport 4700 -j ACCEPT</em></p>
</li>
<li>
<p dir="auto">Add startup services (courtesy of Victor): <a href="http://goo.gl/9LoVq" rel="nofollow ugc">http://goo.gl/9LoVq</a></p>
<p dir="auto">here are startup files in source tree under contrib/startup/redhat. Copy netxmsd and nxagentd to /etc/init.d, and run</p>
<p dir="auto">chkconfig --add nxagentd<br />
chkconfig --add netxmsd</p>
<p dir="auto">[li]<br />
Run the service:<br />
<em>#service nxagentd start</em></p>
</li>
</ol>
<p dir="auto">Regards.</p>
<p dir="auto">EDIT: So I found it in the forum...lazy me. Added this and iptables exception.</p>
]]></description><link>https://forum.netxms.org/topic/2068/centos-6.3-some-quick-tips-init-script</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 11:49:25 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/2068.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 11 Dec 2012 23:19:42 GMT</pubDate><ttl>60</ttl></channel></rss>