Nagios Core - Not Running
Posted: Fri Jun 16, 2017 12:05 pm
Hi Folks,
First time poster here. I've been working on a Cacti/Nagios Core server for the last couple days. Cacti is running and graphing for the most part but Nagios has been causing me some issues.
I have tried a few different things to get it running but I have been unsuccesful thus far.
Here it goes.
When i bring up the Nagios page it asks me for the un and pw. Logging in with the nagiosadmin account works fine.
However, the page says NAGIOS CORE x Not Running
If i click on Tactical Overview I get 'Error: Could not read object configuration data!'
Im running
CentOS 7
Nagios Core 4.2.4
NET-SNMP 5.7.2
PHP 5.4.16
Apache 2.4.6
Test on Nagios Cofig shows this:
[root@nms logs]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.3.2
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2017-05-09
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Could not get passwd entry for 'nagios'
Warning: Could not set effective UID=-1
systmctl status shows:
[root@nms logs]# systemctl status nagios.service
● nagios.service - Nagios Network Monitoring
Loaded: loaded (/usr/lib/systemd/system/nagios.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2017-06-16 12:37:56 EDT; 24min ago
Docs: https://www.nagios.org/documentation/
Process: 3737 ExecStartPre=/usr/sbin/nagios -v /etc/nagios/nagios.cfg (code=exited, status=217/USER)
Jun 16 12:37:56 nms.cruickshank.local systemd[1]: Starting Nagios Network Monitoring...
Jun 16 12:37:56 nms.cruickshank.local systemd[1]: nagios.service: control process exited, code=exited status=217
Jun 16 12:37:56 nms.cruickshank.local systemd[1]: Failed to start Nagios Network Monitoring.
Jun 16 12:37:56 nms.cruickshank.local systemd[1]: Unit nagios.service entered failed state.
Jun 16 12:37:56 nms.cruickshank.local systemd[1]: nagios.service failed.
First time poster here. I've been working on a Cacti/Nagios Core server for the last couple days. Cacti is running and graphing for the most part but Nagios has been causing me some issues.
I have tried a few different things to get it running but I have been unsuccesful thus far.
Here it goes.
When i bring up the Nagios page it asks me for the un and pw. Logging in with the nagiosadmin account works fine.
However, the page says NAGIOS CORE x Not Running
If i click on Tactical Overview I get 'Error: Could not read object configuration data!'
Im running
CentOS 7
Nagios Core 4.2.4
NET-SNMP 5.7.2
PHP 5.4.16
Apache 2.4.6
Test on Nagios Cofig shows this:
[root@nms logs]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.3.2
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2017-05-09
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Could not get passwd entry for 'nagios'
Warning: Could not set effective UID=-1
systmctl status shows:
[root@nms logs]# systemctl status nagios.service
● nagios.service - Nagios Network Monitoring
Loaded: loaded (/usr/lib/systemd/system/nagios.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2017-06-16 12:37:56 EDT; 24min ago
Docs: https://www.nagios.org/documentation/
Process: 3737 ExecStartPre=/usr/sbin/nagios -v /etc/nagios/nagios.cfg (code=exited, status=217/USER)
Jun 16 12:37:56 nms.cruickshank.local systemd[1]: Starting Nagios Network Monitoring...
Jun 16 12:37:56 nms.cruickshank.local systemd[1]: nagios.service: control process exited, code=exited status=217
Jun 16 12:37:56 nms.cruickshank.local systemd[1]: Failed to start Nagios Network Monitoring.
Jun 16 12:37:56 nms.cruickshank.local systemd[1]: Unit nagios.service entered failed state.
Jun 16 12:37:56 nms.cruickshank.local systemd[1]: nagios.service failed.