Nagios Service Not Starting

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: Nagios Service Not Starting

Post 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..
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Service Not Starting

Post by scottwilkerson »

What OS and version are you running?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Service Not Starting

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: Nagios Service Not Starting

Post by amitgupta19 »

yes i have followed all the steps.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Service Not Starting

Post by scottwilkerson »

Can you show the output of the following

Code: Select all

ll /etc/yum.repos.d/mysql-community*
yum repolist
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: Nagios Service Not Starting

Post 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
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: Nagios Service Not Starting

Post by amitgupta19 »

Attaching the output in a file in case the previous one is not clear..
Attachments
Nagios.docx
(36.96 KiB) Downloaded 221 times
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Service Not Starting

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked