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?
Killed my Nagios install!
Re: Killed my Nagios install!
Did you run service httpd restart after removing the RPM apache file? It will be needed in order to reload the configuration.
To add to this, you may need to remove the package it installed as well, but this could lead to issues with other files that may have been modified. Is spinning up a new fresh machine and moving your configuration files over possible?
To add to this, you may need to remove the package it installed as well, but this could lead to issues with other files that may have been modified. Is spinning up a new fresh machine and moving your configuration files over possible?
Former Nagios Employee
Re: Killed my Nagios install!
Lol, that's what I'm doing right now. I did a yum history rollback, got to access denied in the cgi-bin, and finally went home and to sleep. I just finished the reinstall, from boot to Nagios admin login was about an hour. Luckily I snagged all the .cfg's out of objects first. Back up and running.
What is the "normal" and non-system-destroying way to get graphs working?
What is the "normal" and non-system-destroying way to get graphs working?
Re: Killed my Nagios install!
This video will show you how to do it:
https://www.youtube.com/watch?v=5xC-hM3scPk
Let us know if that works for you.
https://www.youtube.com/watch?v=5xC-hM3scPk
Let us know if that works for you.