Killed my Nagios install!
Posted: Tue Aug 30, 2016 8:08 pm
I had everything working, but I wanted graphing in Core. I was following this:
https://www.openscript.ch/en/articles/h ... n-centos-7
but I only yum -y pnp4nagios but saw it installed:
Package nagios.x86_64 0:4.0.8-2.el7 will be installed
Which then threw this error in the yum:
Running transaction
Installing : nagios-4.0.8-2.el7.x86_64 1/4
warning: /etc/httpd/conf.d/nagios.conf created as /etc/httpd/conf.d/nagios.conf.rpmnew 2/4
I backed out of the graph install, changed all the .cfg's back, and nagios claims to run (from /var/log/nagios):
[1472604196] Local time is Tue Aug 30 19:43:16 CDT 2016
[1472604196] LOG VERSION: 2.0
[1472604196] qh: Socket '/var/spool/nagios/cmd/nagios.qh' successfully initialized
[1472604196] qh: core query handler registered
[1472604196] nerd: Channel hostchecks registered successfully
[1472604196] nerd: Channel servicechecks registered successfully
[1472604196] nerd: Channel opathchecks registered successfully
[1472604196] nerd: Fully initialized and ready to rock!
[1472604196] wproc: Successfully registered manager as @wproc with query handler
[1472604196] wproc: Registry request: name=Core Worker 22745;pid=22745
[1472604196] wproc: Registry request: name=Core Worker 22743;pid=22743
[1472604196] wproc: Registry request: name=Core Worker 22748;pid=22748
[1472604196] wproc: Registry request: name=Core Worker 22747;pid=22747
[1472604196] wproc: Registry request: name=Core Worker 22749;pid=22749
[1472604196] wproc: Registry request: name=Core Worker 22744;pid=22744
[1472604196] Successfully launched command file worker with pid 22761
yet it is giving the "standard error": Whoops!
Error: Could not read host and service status information!
etc etc.
There are two nagios.conf in /etc/httpd/conf.d now! one is just nagios.conf, the other is nagios.conf.rpmnew and there are major differences. The rpmnew has a script alias //usr/lib64/nagios/cgi-bin/" and just the conf is set to /usr/local/nagios/sbin BOTH of which seem valid. I tried moving the .rpmnew out of httpd...I restarted apache and nagios, but still have the same issue. I see the side menu, but there is no data/hosts/etc in the middle.
Any suggestions?
https://www.openscript.ch/en/articles/h ... n-centos-7
but I only yum -y pnp4nagios but saw it installed:
Package nagios.x86_64 0:4.0.8-2.el7 will be installed
Which then threw this error in the yum:
Running transaction
Installing : nagios-4.0.8-2.el7.x86_64 1/4
warning: /etc/httpd/conf.d/nagios.conf created as /etc/httpd/conf.d/nagios.conf.rpmnew 2/4
I backed out of the graph install, changed all the .cfg's back, and nagios claims to run (from /var/log/nagios):
[1472604196] Local time is Tue Aug 30 19:43:16 CDT 2016
[1472604196] LOG VERSION: 2.0
[1472604196] qh: Socket '/var/spool/nagios/cmd/nagios.qh' successfully initialized
[1472604196] qh: core query handler registered
[1472604196] nerd: Channel hostchecks registered successfully
[1472604196] nerd: Channel servicechecks registered successfully
[1472604196] nerd: Channel opathchecks registered successfully
[1472604196] nerd: Fully initialized and ready to rock!
[1472604196] wproc: Successfully registered manager as @wproc with query handler
[1472604196] wproc: Registry request: name=Core Worker 22745;pid=22745
[1472604196] wproc: Registry request: name=Core Worker 22743;pid=22743
[1472604196] wproc: Registry request: name=Core Worker 22748;pid=22748
[1472604196] wproc: Registry request: name=Core Worker 22747;pid=22747
[1472604196] wproc: Registry request: name=Core Worker 22749;pid=22749
[1472604196] wproc: Registry request: name=Core Worker 22744;pid=22744
[1472604196] Successfully launched command file worker with pid 22761
yet it is giving the "standard error": Whoops!
Error: Could not read host and service status information!
etc etc.
There are two nagios.conf in /etc/httpd/conf.d now! one is just nagios.conf, the other is nagios.conf.rpmnew and there are major differences. The rpmnew has a script alias //usr/lib64/nagios/cgi-bin/" and just the conf is set to /usr/local/nagios/sbin BOTH of which seem valid. I tried moving the .rpmnew out of httpd...I restarted apache and nagios, but still have the same issue. I see the side menu, but there is no data/hosts/etc in the middle.
Any suggestions?