During NRPE agent (linux-nrpe-agent.tar.gz) installation on a linux client (running RHEL 6.6), the installation failed with the error:
.
.
.
Running './4-firewall'...
iptables: No chain/target/match by that name.
RESULT=1
I looked in the install log, and it did not provide any additional information.
Install steps included below...
tar xzf linux-nrpe-agent.tar.gz
cd linux-nrpe-agent
./fullinstall
The linux machine is on a closed network, with no access to open internet. It does have access to a valid Linux 6 EPEL.
Any help is appreciated.
NRPE agent firewall error during installion on RHEL 6.6
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NRPE agent firewall error during installion on RHEL 6.6
Can you attach the full install.log from the installation directory
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NRPE agent firewall error during installion on RHEL 6.6
Actually if you do not need to configure firewall or iptables you can probably just run this in the installation directory
Code: Select all
touch installed.firewall
./fullinstallRe: NRPE agent firewall error during installion on RHEL 6.6
The commands it runs are:
iptables -L | awk '/^Chain.*INPUT/ {print $2; exit(0)}
iptables -L $CHAIN | wc -l
iptables -I "$CHAIN" "$RULENUM" -m state --state NEW -m tcp -p tcp --dport "5666" -j ACCEPT
Where $CHAIN is the result of the first command and $RULENUM is the output of the second command minus 2. What is the output of these commands if you run them manually? Also, does "iptables -L" show an INPUT table?
iptables -L | awk '/^Chain.*INPUT/ {print $2; exit(0)}
iptables -L $CHAIN | wc -l
iptables -I "$CHAIN" "$RULENUM" -m state --state NEW -m tcp -p tcp --dport "5666" -j ACCEPT
Where $CHAIN is the result of the first command and $RULENUM is the output of the second command minus 2. What is the output of these commands if you run them manually? Also, does "iptables -L" show an INPUT table?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.