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?
chkconfig --add httpd not working
Re: chkconfig --add httpd not working
Hello sartecat,
Are you sure you ran the make install-init command?
Are you sure you ran the make install-init command?
Re: chkconfig --add httpd not working
I think I did. Can I just rerun it again?
- tacolover101
- Posts: 432
- Joined: Mon Apr 10, 2017 11:55 am
Re: chkconfig --add httpd not working
yes - it should recreate the files.sartecat wrote:I think I did. Can I just rerun it again?
Re: chkconfig --add httpd not working
I just reentered all of the make install commands. It did not work.
- tacolover101
- Posts: 432
- Joined: Mon Apr 10, 2017 11:55 am
Re: chkconfig --add httpd not working
what is the output of ls -al /etc/init.d/ ? (could vary on OS)
is httpd or apache installed?
is httpd or apache installed?
-
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: chkconfig --add httpd not working
@sartecat, What OS are you using? Have you installed the modules?
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.
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
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.