Nagios Core Error
Nagios Core Error
Hi Friends,
I have installed Nagios core on CentOS 7 and web page is opening with error "Nagios core not running"and also when I click on Hosts, getting "Error: Could not read object configuration data!" Can some one help me how to fix it.
Thanks,
Venkat
I have installed Nagios core on CentOS 7 and web page is opening with error "Nagios core not running"and also when I click on Hosts, getting "Error: Could not read object configuration data!" Can some one help me how to fix it.
Thanks,
Venkat
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Nagios Core Error
When you installed, did you disable selinux as a first step?
Post the output of the following 2 commands:
Post the output of the following 2 commands:
Code: Select all
[jdalrymple@localhost ~]$ ls -l /usr/local/nagios/var
[jdalrymple@localhost ~]$ ls -l /usr/local/nagios/var/rwRe: Nagios Core Error
I have installed it today.
Please refer the attachment.
Please reach me @ *** DO NOT POST PERSONAL EMAIL ADDRESSES *** for more information.
Thank you for support.
Please refer the attachment.
Please reach me @ *** DO NOT POST PERSONAL EMAIL ADDRESSES *** for more information.
Thank you for support.
- Attachments
-
logs.docx- Logs
- (26.32 KiB) Downloaded 160 times
Last edited by venkatklr on Tue Jun 23, 2015 9:31 am, edited 1 time in total.
Re: Nagios Core Error
It looks like you're missing the 'rw' directory. Unless I'm missing something, this is likely an indication of an improper installation. You will need to disable SELinux and reinstall for a quick resolution.
Please ensure that SELinux is disabled on the target system:
Install all pre-requisite packages:
Download Nagios Core and Nagios Plugins Tarballs
Add Nagios User and Group
Nagios Core Installation
Change to the Nagios Core directory:
Run the configure command to get the source code ready for compilation:
Compile and install:
Complete the installation:
Run the Nagios verification command to ensure the install completed properly, and start Nagios:
Create a Default User for Web Access
Nagios Plugin Installation
Nagios Service Setup
Please ensure that SELinux is disabled on the target system:
Code: Select all
sestatusCode: Select all
yum install -y wget httpd php gcc glibc glibc-common gd gd-devel make net-snmp unzip automakeDownload Nagios Core and Nagios Plugins Tarballs
Code: Select all
cd /tmp
wget https://github.com/NagiosEnterprises/nagioscore/archive/master.tar.gz -O nagioscore.tar.gz
wget https://github.com/nagios-plugins/nagios-plugins/archive/master.tar.gz -O nagiosplugins.tar.gzAdd Nagios User and Group
Code: Select all
useradd nagios
groupadd nagcmd
usermod -a -G nagcmd nagios
usermod -a -G nagcmd apacheNagios Core Installation
Code: Select all
tar xzf nagioscore.tar.gz
tar xzf nagiosplugins.tar.gzCode: Select all
cd nagioscore-masterCode: Select all
./configure --with-command-group=nagcmdCode: Select all
make all
make install
make install-init
make install-config
make install-commandmode
make install-webconfCode: Select all
cp -R contrib/eventhandlers /usr/local/nagios/libexec
chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlersCode: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
/etc/init.d/nagios startCreate a Default User for Web Access
Code: Select all
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
systemctl start httpdNagios Plugin Installation
Code: Select all
cd /tmp/nagios-plugins-master/
./tools/setup
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make installNagios Service Setup
Code: Select all
chkconfig --add nagios
chkconfig --level 35 nagios on
systemctl enable httpdRe: Nagios Core Error
I don't have much knowledge on Linux, please tell me how to disable it and please send me installation steps in doc format Please.
Re: Nagios Core Error
To disable SELinux, type the following command as root on the CLI:
After the above command has been typed, reboot your server. Once the server has been rebooted, simply follow the above instructions line-by-line and that's all you will need to do to have a fully functional core install.
Code: Select all
sed -i s/SELINUX=enforcing/SELINUX=disabled/ /etc/sysconfig/selinux && sed -i s/SELINUX=permissive/SELINUX=disabled/ /etc/sysconfig/selinuxRe: Nagios Core Error
Thanks for the info. I will follow these steps and let you know if I face any issue.
Thanks,
Venkat
Thanks,
Venkat
Re: Nagios Core Error
It is working now. I really appreciate for your time and support to resolve this issue. Now I want to know how to add host in Nagios to monitor, kindly share if any documents available or steps to get this done.
Thanks,
Venkat
Thanks,
Venkat
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Nagios Core Error
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.