Page 2 of 2

Re: Nagios Service Not Starting

Posted: Wed Feb 12, 2020 9:25 am
by amitgupta19
Thanks Scott for the Update

I was trying to install the NDOUTils... got the following error:

I am following the step mentioned in the URL:
https://support.nagios.com/kb/article/n ... acle_Linux

[amgupta@xxxnagios3 tmp]$ sudo systemctl start mysqld.service
Failed to start mysqld.service: Unit not found.

In the Previous step to the above step:
sudo yum install -y mysql mysql-server mysql-devel perl-DBD-MySQL
it gave the folowing message: No package mysql-server available.


Kindly Suggest..

Re: Nagios Service Not Starting

Posted: Wed Feb 12, 2020 9:31 am
by scottwilkerson
What OS and version are you running?

Re: Nagios Service Not Starting

Posted: Wed Feb 12, 2020 9:36 am
by scottwilkerson
I see you said in the 1st post OEL 7

Did you run the following?

Code: Select all

cd /tmp
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum update

Re: Nagios Service Not Starting

Posted: Wed Feb 12, 2020 10:22 am
by amitgupta19
yes i have followed all the steps.

Re: Nagios Service Not Starting

Posted: Wed Feb 12, 2020 10:28 am
by scottwilkerson
Can you show the output of the following

Code: Select all

ll /etc/yum.repos.d/mysql-community*
yum repolist

Re: Nagios Service Not Starting

Posted: Wed Feb 12, 2020 11:39 am
by amitgupta19
[amgupta@xxnagios3 tmp]$ ll /etc/yum.repos.d/mysql-community*
-rw-r--r--. 1 root root 1209 Jan 29 2014 /etc/yum.repos.d/mysql-community.repo-bkp
-rw-r--r--. 1 root root 1060 Jan 29 2014 /etc/yum.repos.d/mysql-community-source.repo-bkp

=========================================================================================================
[amgupta@xxxnagios3 tmp]$ yum repolist
Loaded plugins: ulninfo
repo id repo name status
GIA-CentOS7-Local GIA CentOS Local 17,216
GIA_LOCAL_ol7_UEK3_latest Latest Unbreakable Enterprise Kernel 3 for Oracle Linux 7Server (x86_64) 119
GIA_LOCAL_ol7_UEK4_latest Latest Unbreakable Enterprise Kernel 4 for Oracle Linux 7Server (x86_64) 35
GIA_LOCAL_ol7_UEK5_latest Latest Unbreakable Enterprise Kernel 5 for Oracle Linux 7Server (x86_64) 80
GIA_LOCAL_ol7_addons Latest Unbreakable Enterprise addon for Oracle Linux 7Server (x86_64) 94
GIA_LOCAL_ol7_latest Oracle Linux 7 Latest (x86_64) 7Server (x86_64) 5,411
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,524
repolist: 36,479

Re: Nagios Service Not Starting

Posted: Wed Feb 12, 2020 12:13 pm
by amitgupta19
Attaching the output in a file in case the previous one is not clear..

Re: Nagios Service Not Starting

Posted: Wed Feb 12, 2020 12:43 pm
by scottwilkerson
Ok, it looks like the RPM didn't instalkl the packages maybe becasause you have an old version from befor

Run the following

Code: Select all

cd /tmp
sudo rpm -Uvh --force mysql-community-release-el7-5.noarch.rpm
sudo yum update
then, provided there are no errors

Code: Select all

sudo yum install -y mysql mysql-server mysql-devel perl-DBD-MySQL