Installation Error-Requires: perl-Net-SNMP, php-imap etc...

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
titien104
Posts: 14
Joined: Fri Mar 20, 2020 11:12 am

Installation Error-Requires: perl-Net-SNMP, php-imap etc...

Post by titien104 »

Please look at the install.log file. I had tried and clean my VM but keep hitting different kind of errors. I am installing RHEL7 (3.10.0-1062.12.1.el7.x86_64).
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Installation Error-Requires: perl-Net-SNMP, php-imap etc

Post by lmiltchev »

I am installing RHEL7 (3.10.0-1062.12.1.el7.x86_64).
In the install log it says that you are using RHEL 6...

Code: Select all

DISTRO INFO:
RedHatEnterpriseServer
6.10
x86_64
Can you elaborate?

Is this a clean system (minimal, "vanilla" install)? If seems like you had mysql already installed on this server...

Is your server connected to the Internet? Are you using a proxy? Are you using custom/local repos?

What is the output of the command below?

Code: Select all

yum repolist -v
Be sure to check out our Knowledgebase for helpful articles and solutions!
titien104
Posts: 14
Joined: Fri Mar 20, 2020 11:12 am

Re: Installation Error-Requires: perl-Net-SNMP, php-imap etc

Post by titien104 »

Here is the output for yum -repolist -v
[root@1098502-tlnag01 ~]# yum repolist -v
Loading "rhnplugin" plugin
Config time: 0.048
This system is receiving updates from RHN Classic or Red Hat Satellite.
Looking for repo options for [main]
Looking for repo options for [rhel-x86_64-server-7]
Repo 'rhel-x86_64-server-7' setting option 'enabled' = '1'
Repo 'rhel-x86_64-server-7' setting option 'gpgcheck' = '1'
Repo 'rhel-x86_64-server-7' setting option 'timeout' = '120'
Looking for repo options for [main]
Looking for repo options for [rhel-x86_64-server-optional-7]
Repo 'rhel-x86_64-server-optional-7' setting option 'enabled' = '1'
Repo 'rhel-x86_64-server-optional-7' setting option 'gpgcheck' = '1'
Repo 'rhel-x86_64-server-optional-7' setting option 'timeout' = '120'
Looking for repo options for [main]
Looking for repo options for [rackspace-rhel-x86_64-server-7-common]
Repo 'rackspace-rhel-x86_64-server-7-common' setting option 'enabled' = '1'
Repo 'rackspace-rhel-x86_64-server-7-common' setting option 'gpgcheck' = '1'
Repo 'rackspace-rhel-x86_64-server-7-common' setting option 'timeout' = '120'
Looking for repo options for [main]
Looking for repo options for [rhn-tools-rhel-x86_64-server-7]
Repo 'rhn-tools-rhel-x86_64-server-7' setting option 'enabled' = '1'
Repo 'rhn-tools-rhel-x86_64-server-7' setting option 'gpgcheck' = '1'
Repo 'rhn-tools-rhel-x86_64-server-7' setting option 'timeout' = '120'
Yum version: 3.4.3
Setting up Package Sacks
pkgsack time: 0.032
Repo-id : rackspace-rhel-x86_64-server-7-common
Repo-name : Rackspace - RHEL x86_64 Server 7 - Common
Repo-updated : Fri Mar 13 22:19:01 2020
Repo-pkgs : 104
Repo-size : 15 M
Repo-baseurl : https://iadproxy.rhn.rackspace.com/XMLR ... r-7-common
Repo-expire : 21,600 second(s) (last: Wed Mar 25 14:22:02 2020)
Filter : read-only:present
Repo-exclude : kmod-mlnx-ofa*, mlnx-ofa*

Repo-id : rhel-x86_64-server-7
Repo-name : Red Hat Enterprise Linux Server (v. 7 for 64-bit x86_64)
Repo-updated : Mon Mar 23 19:16:46 2020
Repo-pkgs : 27,216
Repo-size : 42 G
Repo-baseurl : https://iadproxy.rhn.rackspace.com/XMLR ... 4-server-7
Repo-expire : 21,600 second(s) (last: Wed Mar 25 10:22:02 2020)
Filter : read-only:present
Repo-exclude : kmod-mlnx-ofa*, mlnx-ofa*

Repo-id : rhel-x86_64-server-optional-7
Repo-name : RHEL Server Optional (v. 7 64-bit x86_64)
Repo-updated : Mon Mar 23 18:58:30 2020
Repo-pkgs : 19,764
Repo-size : 52 G
Repo-baseurl : https://iadproxy.rhn.rackspace.com/XMLR ... optional-7
Repo-expire : 21,600 second(s) (last: Wed Mar 25 10:22:02 2020)
Filter : read-only:present
Repo-exclude : kmod-mlnx-ofa*, mlnx-ofa*

Repo-id : rhn-tools-rhel-x86_64-server-7
Repo-name : RHN Tools for RHEL Server (v. 7 for x86_64)
Repo-updated : Sun Mar 8 18:59:34 2020
Repo-pkgs : 138
Repo-size : 37 M
Repo-baseurl : https://iadproxy.rhn.rackspace.com/XMLR ... 4-server-7
Repo-expire : 21,600 second(s) (last: Wed Mar 25 10:22:02 2020)
Filter : read-only:present
Repo-exclude : kmod-mlnx-ofa*, mlnx-ofa*
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Installation Error-Requires: perl-Net-SNMP, php-imap etc

Post by lmiltchev »

You are using rackspace repos, so it's possible there's special sets of packages in there. The installer is tested against a clean, minimal install CentOS system. What you can do is try running the installer on a clean system with no other programs installed, e.g. mysql, apache, etc.

Why are you trying to install Nagios XI 5.6.4? The latest version is 5.6.12... There are many bug fixes and enhancements since 5.6.4. See the changelog here:

https://www.nagios.com/downloads/nagios-xi/change-log/
Be sure to check out our Knowledgebase for helpful articles and solutions!
titien104
Posts: 14
Joined: Fri Mar 20, 2020 11:12 am

Re: Installation Error-Requires: perl-Net-SNMP, php-imap etc

Post by titien104 »

I am not sure it trying to install Nagios XI 5.6.4 as you said when I just run the ./fullinstall. Please see the rpm from ll command. I aslo have rackspace disable their repo and run the installation again. I will keep you post.
-rw-r--r--. 1 root root 3097 Mar 18 11:47 nagiosxi-deps-5.6.12-1.noarch.rpm
-rw-r--r--. 1 root root 3161 Mar 18 11:47 nagiosxi-deps-el7-5.6.12-1.noarch.rpm
-rw-r--r--. 1 root root 2917 Mar 18 11:47 nagiosxi-deps-el8-5.6.12-1.noarch.rpm
-rw-r--r--. 1 root root 2921 Mar 18 11:47 nagiosxi-deps-suse11-5.6.12-1.noarch.rpm
-rw-r--r--. 1 root root 2921 Mar 18 11:47 nagiosxi-deps-suse12-5.6.12-1.noarch.rpm
drwxr-xr-x. 2 root root 4096 Mar 20 12:52 packages
-rwxr-xr-x. 1 root root 5664 Mar 18 11:47 rpminstall
-rwxr-xr-x. 1 root root 18438 Mar 18 11:47 rpmupgrade
drwxr-xr-x. 2 root root 115 Mar 18 11:47 sourceguardian
drwxr-xr-x. 19 root root 4096 Mar 18 11:47 subcomponents
-rwxr-xr-x. 1 root root 445 Mar 18 11:47 susemods
drwxr-xr-x. 2 root root 80 Mar 18 11:47 tools
-rwxr-xr-x. 1 root root 11 Mar 18 11:47 ubuntumods
-rwxr-xr-x. 1 root root 674 Mar 18 11:47 uninstall-crontab-nagios
-rwxr-xr-x. 1 root root 701 Mar 18 11:47 uninstall-crontab-root
-rwxr-xr-x. 1 root root 51826 Mar 18 11:47 upgrade
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Installation Error-Requires: perl-Net-SNMP, php-imap etc

Post by lmiltchev »

Is this a clean system (minimal, "vanilla" install) with nothing else installed on it? Run the following command and show the output:

Code: Select all

yum list installed | grep 'mariadb\|mysql\|httpd'
Is this an offline install (is your server connected to the Internet)? Are you using a proxy?
Be sure to check out our Knowledgebase for helpful articles and solutions!
titien104
Posts: 14
Joined: Fri Mar 20, 2020 11:12 am

Re: Installation Error-Requires: perl-Net-SNMP, php-imap etc

Post by titien104 »

After I rekicked my VMs clean start. Here is the new error: SNMP failed to start. Please see attach install.log Thanks.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Installation Error-Requires: perl-Net-SNMP, php-imap etc

Post by lmiltchev »

Can you run the command below and show the output?

Code: Select all

systemctl status snmptrapd.service
journalctl -xe
yum repolist
Be sure to check out our Knowledgebase for helpful articles and solutions!
titien104
Posts: 14
Joined: Fri Mar 20, 2020 11:12 am

Re: Installation Error-Requires: perl-Net-SNMP, php-imap etc

Post by titien104 »

Hi There,
Here are the output:
● snmptrapd.service - Simple Network Management Protocol (SNMP) Trap Daemon.
Loaded: loaded (/usr/lib/systemd/system/snmptrapd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2020-04-03 11:02:33 EDT; 2 days ago
Process: 6315 ExecStart=/usr/sbin/snmptrapd $OPTIONS -f (code=exited, status=1/FAILURE)
Main PID: 6315 (code=exited, status=1/FAILURE)

Apr 03 11:02:33 1098502-tlnag01 systemd[1]: Starting Simple Network Management Protocol (SNMP) Trap Daemon....
Apr 03 11:02:33 1098502-tlnag01 systemd[1]: snmptrapd.service: main process exited, code=exited, status=1/FAILURE
Apr 03 11:02:33 1098502-tlnag01 systemd[1]: Failed to start Simple Network Management Protocol (SNMP) Trap Daemon..
Apr 03 11:02:33 1098502-tlnag01 systemd[1]: Unit snmptrapd.service entered failed state.
Apr 03 11:02:33 1098502-tlnag01 systemd[1]: snmptrapd.service failed.
[root@1098502-tlnag01 ~]# journalctl -xe
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit user-0.slice has finished starting up.
--
-- The start-up result is done.
Apr 06 10:50:01 1098502-tlnag01 systemd[1]: Started Session 4245 of user root.
-- Subject: Unit session-4245.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-4245.scope has finished starting up.
--
-- The start-up result is done.
Apr 06 10:50:01 1098502-tlnag01 systemd[1]: Started Session 4246 of user root.
-- Subject: Unit session-4246.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-4246.scope has finished starting up.
--
-- The start-up result is done.
Apr 06 10:50:01 1098502-tlnag01 systemd[1]: Started Session 4247 of user root.
-- Subject: Unit session-4247.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-4247.scope has finished starting up.
--
-- The start-up result is done.
Apr 06 10:50:01 1098502-tlnag01 CROND[52991]: (root) CMD (LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-fil
Apr 06 10:50:01 1098502-tlnag01 CROND[52992]: (root) CMD (timeout 5m "${BINDIR}"/recap)
Apr 06 10:50:01 1098502-tlnag01 CROND[52993]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Apr 06 10:50:01 1098502-tlnag01 dbus[1369]: [system] Activating via systemd: service name='org.freedesktop.hostname1'
Apr 06 10:50:01 1098502-tlnag01 systemd[1]: Starting Hostname Service...
-- Subject: Unit systemd-hostnamed.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit systemd-hostnamed.service has begun starting up.
Apr 06 10:50:01 1098502-tlnag01 dbus[1369]: [system] Successfully activated service 'org.freedesktop.hostname1'
Apr 06 10:50:01 1098502-tlnag01 systemd[1]: Started Hostname Service.
-- Subject: Unit systemd-hostnamed.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit systemd-hostnamed.service has finished starting up.
--
-- The start-up result is done.
Apr 06 10:50:12 1098502-tlnag01 systemd[1]: Removed slice User Slice of root.
-- Subject: Unit user-0.slice has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit user-0.slice has finished shutting down.
Apr 06 10:50:19 1098502-tlnag01 sshd[53205]: Did not receive identification string from 50.57.61.22 port 54429
Apr 06 10:50:41 1098502-tlnag01 sshd[53934]: Did not receive identification string from 69.20.52.197 port 58964
Apr 06 10:50:53 1098502-tlnag01 sshd[54829]: Did not receive identification string from 50.56.142.172 port 56374
Apr 06 10:51:19 1098502-tlnag01 sshd[54929]: Did not receive identification string from 50.57.61.22 port 63087
Apr 06 10:51:41 1098502-tlnag01 sshd[55643]: Did not receive identification string from 69.20.52.197 port 45760
Apr 06 10:51:53 1098502-tlnag01 sshd[56568]: Did not receive identification string from 50.56.142.172 port 63315
Apr 06 10:52:19 1098502-tlnag01 sshd[56671]: Did not receive identification string from 50.57.61.22 port 51101
[root@1098502-tlnag01 ~]# yum repolist
Loaded plugins: rhnplugin
This system is receiving updates from RHN Classic or Red Hat Satellite.
repo id repo name status
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,229
nagios-base Nagios 96
nagiosxi-deps Nagios XI Dependencies 31
rackspace-rhel-x86_64-server-7-epel Rackspace - RHEL (v. 7 for 64-bit x86_64) - EPEL 46,998
rhel-x86_64-server-7 Red Hat Enterprise Linux Server (v. 7 for 64-bit x86_64) 28,753
rhel-x86_64-server-optional-7 RHEL Server Optional (v. 7 64-bit x86_64) 21,017
rhn-tools-rhel-x86_64-server-7 RHN Tools for RHEL Server (v. 7 for x86_64) 138
repolist: 110,262
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Installation Error-Requires: perl-Net-SNMP, php-imap etc

Post by lmiltchev »

Hmm, it's strange that the snmptrapd service wouldn't start. Is there anything else listening on port 162? Can you run the following command and show the output?

Code: Select all

netstat -nlp|grep 162
Also, have you modified by chance the service from the "default"? What is the output of the command below?

Code: Select all

cat /usr/lib/systemd/system/snmptrapd.service
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked