Installation: chkconfig --add nagios does not work

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
cranberryark
Posts: 6
Joined: Tue Feb 12, 2019 1:52 pm

Installation: chkconfig --add nagios does not work

Post by cranberryark »

I am new to Nagios and a beginner in general, please pardon me for any newbie questions or concepts that I am not getting right.

I am trying to install Nagios on an AWS instance (running Amazon Linux) to monitor another AWS instance (my school project running Amazon Linux, with Nginx web server and Python) by following this tutorial - https://sysadminxpert.com/step-by-step- ... zon-linux/ , however I am facing some issues.

1) I'm stuck at step 8 that is to "add Nagios to the list of system services and have it automatically start when the system boots".
When I run this line: sudo chkconfig --add nagios it outputs as: "error reading information on service nagios: No such file or directory". I checked /etc/init.d and I don't see Nagios anywhere in the folder. The sudo make install-init line from an earlier step creates a nagios.conf file in etc/init which I think doesnt work with chkconfig. What should I do to make the command work?

2) Is it possible to have Nagios server run on the same instance as the host(the other instance it is monitoring)?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Installation: chkconfig --add nagios does not work

Post by scottwilkerson »

This may not be available on your system version

I would highly recommend using the official install buide, for Amazon Linux I would recommend Following the CentOS instructions
https://support.nagios.com/kb/article/n ... ce-96.html
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked