problem using epel nagios 4.3.4 on CentOS 6
Posted: Thu Feb 01, 2018 12:45 pm
I'm having the "Unable to get process status" on the web home page
The install seemed to go OK and have disabled SElinux
starting the service seems to work and I see the following when running ps -eaf
So I can see where init started the daemon 1825 and it seems to have forked PID 1837 but the web page just gives that Unable to get process status
Can't see anything obvious in the nagios.log
But having been googling for about an hour (hence the SElinux being disabled) I still can't get it started
Tried running the daemon with -v and got
Have the following epel 6 rpms installed (not sure what plugins we might want so installed all)
Any suggestions ?
The install seemed to go OK and have disabled SElinux
starting the service seems to work and I see the following when running ps -eaf
Code: Select all
[root@prometheus nagios]# ps -eaf | grep nagios
nagios 1825 1 0 17:11 ? 00:00:00 /usr/sbin/nagios -d /etc/nagios/nagios.cfg
nagios 1829 1825 0 17:11 ? 00:00:00 /usr/sbin/nagios --worker /var/spool/nagios/cmd/nagios.qh
nagios 1830 1825 0 17:11 ? 00:00:00 /usr/sbin/nagios --worker /var/spool/nagios/cmd/nagios.qh
nagios 1831 1825 0 17:11 ? 00:00:00 /usr/sbin/nagios --worker /var/spool/nagios/cmd/nagios.qh
nagios 1832 1825 0 17:11 ? 00:00:00 /usr/sbin/nagios --worker /var/spool/nagios/cmd/nagios.qh
nagios 1833 1825 0 17:11 ? 00:00:00 /usr/sbin/nagios --worker /var/spool/nagios/cmd/nagios.qh
nagios 1834 1825 0 17:11 ? 00:00:00 /usr/sbin/nagios --worker /var/spool/nagios/cmd/nagios.qh
nagios 1837 1825 0 17:11 ? 00:00:00 /usr/sbin/nagios -d /etc/nagios/nagios.cfg
root 2135 2043 0 17:23 pts/1 00:00:00 grep nagiosCan't see anything obvious in the nagios.log
Code: Select all
[1517505097] Nagios 4.3.4 starting... (PID=1825)
[1517505097] Local time is Thu Feb 01 17:11:37 GMT 2018
[1517505097] LOG VERSION: 2.0
[1517505097] qh: Socket '/var/spool/nagios/cmd/nagios.qh' successfully initialized
[1517505097] qh: core query handler registered
[1517505097] nerd: Channel hostchecks registered successfully
[1517505097] nerd: Channel servicechecks registered successfully
[1517505097] nerd: Channel opathchecks registered successfully
[1517505097] nerd: Fully initialized and ready to rock!
[1517505097] wproc: Successfully registered manager as @wproc with query handler
[1517505097] wproc: Registry request: name=Core Worker 1829;pid=1829
[1517505097] wproc: Registry request: name=Core Worker 1830;pid=1830
[1517505097] wproc: Registry request: name=Core Worker 1832;pid=1832
[1517505097] wproc: Registry request: name=Core Worker 1831;pid=1831
[1517505097] wproc: Registry request: name=Core Worker 1833;pid=1833
[1517505097] wproc: Registry request: name=Core Worker 1834;pid=1834
[1517505097] Successfully launched command file worker with pid 1837Code: Select all
[root@prometheus nagios]# getenforce
DisabledCode: Select all
[root@prometheus nagios]# /usr/sbin/nagios -v /etc/nagios/nagios.cfg
Nagios Core 4.3.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2017-08-24
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 8 services.
Checked 1 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 24 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 1 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight checkCode: Select all
nagios-common-4.3.4-7.el6.x86_64
nagios-plugins-perl-2.2.1-4git.el6.x86_64
nagios-plugins-ntp-perl-2.2.1-4git.el6.x86_64
nagios-plugins-breeze-2.2.1-4git.el6.x86_64
nagios-plugins-flexlm-2.2.1-4git.el6.x86_64
nagios-plugins-file_age-2.2.1-4git.el6.x86_64
nagios-plugins-mailq-2.2.1-4git.el6.x86_64
nagios-plugins-ups-2.2.1-4git.el6.x86_64
nagios-plugins-dhcp-2.2.1-4git.el6.x86_64
nagios-plugins-cluster-2.2.1-4git.el6.x86_64
nagios-plugins-mrtgtraf-2.2.1-4git.el6.x86_64
nagios-plugins-time-2.2.1-4git.el6.x86_64
nagios-plugins-ldap-2.2.1-4git.el6.x86_64
nagios-plugins-real-2.2.1-4git.el6.x86_64
nagios-plugins-procs-2.2.1-4git.el6.x86_64
nagios-plugins-mysql-2.2.1-4git.el6.x86_64
nagios-plugins-overcr-2.2.1-4git.el6.x86_64
nagios-plugins-oracle-2.2.1-4git.el6.x86_64
nagios-plugins-hpjd-2.2.1-4git.el6.x86_64
nagios-plugins-disk-2.2.1-4git.el6.x86_64
nagios-plugins-ping-2.2.1-4git.el6.x86_64
nagios-plugins-http-2.2.1-4git.el6.x86_64
nagios-plugins-smtp-2.2.1-4git.el6.x86_64
nagios-plugins-sensors-2.2.1-4git.el6.x86_64
nagios-plugins-fping-2.2.1-4git.el6.x86_64
nagios-plugins-game-2.2.1-4git.el6.x86_64
nagios-plugins-pgsql-2.2.1-4git.el6.x86_64
nagios-4.3.4-7.el6.x86_64
nagios-plugins-2.2.1-4git.el6.x86_64
nagios-plugins-snmp-2.2.1-4git.el6.x86_64
nagios-plugins-disk_smb-2.2.1-4git.el6.x86_64
nagios-plugins-wave-2.2.1-4git.el6.x86_64
nagios-plugins-ircd-2.2.1-4git.el6.x86_64
nagios-plugins-rpc-2.2.1-4git.el6.x86_64
nagios-plugins-dummy-2.2.1-4git.el6.x86_64
nagios-plugins-nagios-2.2.1-4git.el6.x86_64
nagios-plugins-ntp-2.2.1-4git.el6.x86_64
nagios-plugins-load-2.2.1-4git.el6.x86_64
nagios-plugins-ssh-2.2.1-4git.el6.x86_64
nagios-plugins-tcp-2.2.1-4git.el6.x86_64
nagios-plugins-mrtg-2.2.1-4git.el6.x86_64
nagios-plugins-by_ssh-2.2.1-4git.el6.x86_64
nagios-plugins-nwstat-2.2.1-4git.el6.x86_64
nagios-plugins-nt-2.2.1-4git.el6.x86_64
nagios-plugins-users-2.2.1-4git.el6.x86_64
nagios-plugins-icmp-2.2.1-4git.el6.x86_64
nagios-plugins-log-2.2.1-4git.el6.x86_64
nagios-plugins-ide_smart-2.2.1-4git.el6.x86_64
nagios-plugins-dns-2.2.1-4git.el6.x86_64
nagios-plugins-dig-2.2.1-4git.el6.x86_64
nagios-plugins-swap-2.2.1-4git.el6.x86_64
nagios-plugins-all-2.2.1-4git.el6.x86_64