Centos 6.3: Some quick tips & Init script
-
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:
-
Install make, gcc and gcc-c++: #yum update && yum install make gcc gcc-c++
-
Follow the manual for UNIX here: http://goo.gl/9EmNd
-
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 ACCEPTThis 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 -
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.
-
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