Installer stopped working on 5/2/15, I think.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Coldmine
Posts: 9
Joined: Tue May 05, 2015 11:55 pm

Re: Installer stopped working on 5/2/15, I think.

Post by Coldmine »

To do what I was asked, I did this:

Code: Select all

yum-config-manager --enable rhui-REGION-rhel-server-optional
yum repolist all
yum clean all
I got further. Thank you very much. But I still have a problem. Should I open a new posting?

How do I install Nagios? I am running ./fullinstall
It is giving me an error. Here is the tail of the output:

Total download size: 49 k
Installed size: 23 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : iptables-services-1.4.21-13.el7.x86_64 1/1
warning: /etc/sysconfig/iptables created as /etc/sysconfig/iptables.rpmnew
Verifying : iptables-services-1.4.21-13.el7.x86_64 1/1

Installed:
iptables-services.x86_64 0:1.4.21-13.el7

Complete!
Failed to issue method call: Access denied
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.

The script that failed was: './6-firewall'


Here is where the word error appears in install.log

Code: Select all

# cat install.log | grep -i error
ERROR: unable to read system id.
http://mirror.oss.ou.edu/epel/7/x86_64/repodata/dd5cf6a19fbbe585a0dcb7b4dd9e2861d4017cfc5439cf6fc8bef73f646ff19b-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
--> Processing Dependency: perl(Error) for package: nagiosxi-deps-el7-2014r2.6-1.noarch
---> Package perl-Error.noarch 1:0.17020-2.el7 will be installed
Error: Package: rrdtool-1.4.9-1.el7.x86_64 (nagiosxi-deps)
Error: Package: perl-Net-SNMP-6.0.1-7.el7.noarch (epel)
Error: Package: rrdtool-1.4.9-1.el7.x86_64 (nagiosxi-deps)
Error: Package: nagiosxi-deps-el7-2014r2.6-1.noarch (/nagiosxi-deps-el7-2014r2.6-1.noarch)
Error: Package: perl-Mail-IMAPClient-3.34-1.el7.noarch (epel)
Error: Package: nagiosxi-deps-el7-2014r2.6-1.noarch (/nagiosxi-deps-el7-2014r2.6-1.noarch)
Error: Package: nagiosxi-deps-el7-2014r2.6-1.noarch (/nagiosxi-deps-el7-2014r2.6-1.noarch)
--> Processing Dependency: perl(Error) for package: nagiosxi-deps-el7-2014r2.6-1.noarch
---> Package perl-Error.noarch 1:0.17020-2.el7 will be installed
Error: Package: rrdtool-1.4.9-1.el7.x86_64 (nagiosxi-deps)
Error: Package: perl-Net-SNMP-6.0.1-7.el7.noarch (epel)
Error: Package: rrdtool-1.4.9-1.el7.x86_64 (nagiosxi-deps)
Error: Package: nagiosxi-deps-el7-2014r2.6-1.noarch (/nagiosxi-deps-el7-2014r2.6-1.noarch)
Error: Package: perl-Mail-IMAPClient-3.34-1.el7.noarch (epel)
Error: Package: nagiosxi-deps-el7-2014r2.6-1.noarch (/nagiosxi-deps-el7-2014r2.6-1.noarch)
Error: Package: nagiosxi-deps-el7-2014r2.6-1.noarch (/nagiosxi-deps-el7-2014r2.6-1.noarch)
--> Processing Dependency: perl(Error) for package: nagiosxi-deps-el7-2014r2.6-1.noarch
---> Package perl-Error.noarch 1:0.17020-2.el7 will be installed
Error: Package: rrdtool-1.4.9-1.el7.x86_64 (nagiosxi-deps)
Error: Package: perl-Net-SNMP-6.0.1-7.el7.noarch (epel)
Error: Package: rrdtool-1.4.9-1.el7.x86_64 (nagiosxi-deps)
Error: Package: nagiosxi-deps-el7-2014r2.6-1.noarch (/nagiosxi-deps-el7-2014r2.6-1.noarch)
Error: Package: perl-Mail-IMAPClient-3.34-1.el7.noarch (epel)
Error: Package: nagiosxi-deps-el7-2014r2.6-1.noarch (/nagiosxi-deps-el7-2014r2.6-1.noarch)
Error: Package: nagiosxi-deps-el7-2014r2.6-1.noarch (/nagiosxi-deps-el7-2014r2.6-1.noarch)
--> Processing Dependency: perl(Error) for package: nagiosxi-deps-el7-2014r2.6-1.noarch
---> Package perl-Error.noarch 1:0.17020-2.el7 will be installed
Error: Package: rrdtool-1.4.9-1.el7.x86_64 (nagiosxi-deps)
Error: Package: perl-Net-SNMP-6.0.1-7.el7.noarch (epel)
Error: Package: rrdtool-1.4.9-1.el7.x86_64 (nagiosxi-deps)
Error: Package: nagiosxi-deps-el7-2014r2.6-1.noarch (/nagiosxi-deps-el7-2014r2.6-1.noarch)
Error: Package: perl-Mail-IMAPClient-3.34-1.el7.noarch (epel)
Error: Package: nagiosxi-deps-el7-2014r2.6-1.noarch (/nagiosxi-deps-el7-2014r2.6-1.noarch)
Error: Package: nagiosxi-deps-el7-2014r2.6-1.noarch (/nagiosxi-deps-el7-2014r2.6-1.noarch)
--> Processing Dependency: perl(Error) for package: nagiosxi-deps-el7-2014r2.6-1.noarch
---> Package perl-Error.noarch 1:0.17020-2.el7 will be installed
 perl-Error        noarch 1:0.17020-2.el7
  Installing : 1:perl-Error-0.17020-2.el7.noarch                        133/281
  Verifying  : 1:perl-Error-0.17020-2.el7.noarch                        246/281
  perl-Error.noarch 1:0.17020-2.el7

I did this in /etc/
chmod 777 sudoers
I re-ran the install script. But the error was the same. I don't know what access is denied. I am running the install script as root. I reverted the sudoers file to having 440 permissions.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Installer stopped working on 5/2/15, I think.

Post by Box293 »

So on RHEL 7 the steps in "6-firewall" will be executing:

Code: Select all

yum install iptables-services -y
systemctl mask firewalld.service
systemctl enable iptables.service

systemctl stop firewalld.service
iptables-save
systemctl restart iptables.service
I suspect that either systemctl or iptables-save is failing.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Coldmine
Posts: 9
Joined: Tue May 05, 2015 11:55 pm

Re: Installer stopped working on 5/2/15, I think.

Post by Coldmine »

I ran the commands manually.

The two that seemed to fail were these:

Code: Select all

# systemctl mask firewalld.service
Failed to issue method call: Access denied

# systemctl stop firewalld.service
Failed to issue method call: Unit firewalld.service not loaded.
How do I proceed?

I rebooted the server. I ran the ./fullinstall again. It failed again at the 6-firewll. I wonder if I shouldn't uninstall Nagios. The two word command whereis nagios finds this: /usr/bin/nagios
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Installer stopped working on 5/2/15, I think.

Post by jdalrymple »

Enable your firewall and try again - Nagios installer assumes firewalld is up, in your case it doesn't appear to be for 1 reason or another:

Code: Select all

[jdalrymple@localhost ~]$ sudo systemctl enable firewalld.service
ln -s '/usr/lib/systemd/system/firewalld.service' '/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service'
ln -s '/usr/lib/systemd/system/firewalld.service' '/etc/systemd/system/basic.target.wants/firewalld.service'
[jdalrymple@localhost ~]$ sudo systemctl start firewalld.service
Coldmine
Posts: 9
Joined: Tue May 05, 2015 11:55 pm

Re: Installer stopped working on 5/2/15, I think.

Post by Coldmine »

I was root. I tried what you suggested:

Code: Select all

# sudo systemctl enable firewalld.service
Failed to issue method call: Access denied
I tried other commands too:

Code: Select all

# systemctl start firewalld.service
Failed to issue method call: Unit firewalld.service failed to load: No such file or directory.

 systemctl start firewalld
Failed to issue method call: Unit firewalld.service failed to load: No such file or directory.

Code: Select all

 systemctl status firewalld
firewalld.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

Code: Select all

 service iptables status
Redirecting to /bin/systemctl status  iptables.service
iptables.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)
I cannot seem to turn on a firewall (e.g., firewalld) with RedHat 7. What should I do?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Installer stopped working on 5/2/15, I think.

Post by Box293 »

So I suspect that firewalld is not installed which is causing this problem.

Seeing as you're not using a firewall let's comment out the lines that are not needed. In the 6-firewall file:

Code: Select all

#	yum install iptables-services -y
#	systemctl mask firewalld.service
#	systemctl enable iptables.service

#	# Save and start up iptables
#	systemctl stop firewalld.service
#	iptables-save
#	systemctl restart iptables.service
Now try running ./fullinstall
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Coldmine
Posts: 9
Joined: Tue May 05, 2015 11:55 pm

Re: Installer stopped working on 5/2/15, I think.

Post by Coldmine »

Essentially that worked. In the 6-firewall file, I had to comment out other lines related to the if clauses of the stanzas above. Thanks.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Installer stopped working on 5/2/15, I think.

Post by Box293 »

You will need to keep that in mind for the future when performing upgrades.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked