chkconfig --add httpd not working

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.
Locked
sartecat
Posts: 33
Joined: Tue Jun 20, 2017 1:11 pm

chkconfig --add httpd not working

Post by sartecat »

I am following this instructions from nagios. https://assets.nagios.com/downloads/nag ... 1497921073

I have successfully reached towards the end where it says to do the following commands:
chkconfig --add nagios
chkconfig --level 35 nagios on
chkconfig --add httpd
chkconfig --level 35 httpd on

Whenever I do the chkconfig --add httpd, I get "error reading information on service httpd: No such file or directory.
How do I get this to work?
bolson

Re: chkconfig --add httpd not working

Post by bolson »

Hello sartecat,

Are you sure you ran the make install-init command?
sartecat
Posts: 33
Joined: Tue Jun 20, 2017 1:11 pm

Re: chkconfig --add httpd not working

Post by sartecat »

I think I did. Can I just rerun it again?
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: chkconfig --add httpd not working

Post by tacolover101 »

sartecat wrote:I think I did. Can I just rerun it again?
yes - it should recreate the files.
sartecat
Posts: 33
Joined: Tue Jun 20, 2017 1:11 pm

Re: chkconfig --add httpd not working

Post by sartecat »

I just reentered all of the make install commands. It did not work.
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: chkconfig --add httpd not working

Post by tacolover101 »

what is the output of ls -al /etc/init.d/ ? (could vary on OS)

is httpd or apache installed?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: chkconfig --add httpd not working

Post by npolovenko »

@sartecat, What OS are you using? Have you installed the modules?

Code: Select all

For RHEL/CentOS users:
yum install -y wget httpd php gcc glibc glibc-common gd gd-devel make net-snmp unzip
For Ubuntu (15.10 and below) users:
sudo apt-get install wget build-essential apache2 php5 php5-gd libgd-dev unzip
For Ubuntu (16.04 and above) users:
sudo apt-get install wget build-essential apache2 php apache2-mod-php7.0 php-gd libgd-dev unzip
Also, if there's a possibility to start installation with a clean system one more again I'd highly recommend using this tutorial instead:
https://support.nagios.com/kb/article/n ... ource.html
This tutorial is the most updated one.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked