Page 1 of 1

Disabling Nagios Core Admin

Posted: Fri Sep 16, 2011 5:30 pm
by rchurch
I want to manage nagios core 100% from command line instead of using the web interface built into xi. Can this be done?

Re: Disabling Nagios Core Admin

Posted: Mon Sep 19, 2011 10:47 am
by nscott
Nagios XI and Nagios Core are strung together so what you do to Nagios Core will directly affect Nagios XI. If you wish to solely use the command line that is entirely possible but you can never press the Apply Config or any other functions that trigger Apply Config or your configs will be overwritten with whats in the database.

Re: Disabling Nagios Core Admin

Posted: Mon Sep 19, 2011 2:39 pm
by rchurch
Yeah I went through all of the code this weekend and it looks like it will disable a lot of functionality if I did it this way. Was hoping there was a way to go configs->DB so we could update manually and then update the databases. Since this is no longer an option, I guess we can rephrase the issue.

I'm having a problem updating configs and I can't figure out why.

nagiosxi -> Configure -> Core Config Manager -> [Login] -> Apply Configuration -> [[Submit] Apply Configuration]

Waiting for configuration verification..........................

I can't figure out why this is not updating. We added a single host nothing more. I've eliminated permissions, dns, libraries ( as best I can ). I think their are missing libraries required by nagios causing this but I can't figure it out.

orcxnagios.corporate.#.net. 3600 IN A 10.10.10.26
26.10.10.10.in-addr.arpa. 3600 IN PTR orcxnagios.corporate.#.net.
inet addr:10.10.10.26 Bcast:10.255.255.255 Mask:255.255.255.0

[root@ORCXNAGIOS ~]# sudo -u apache vi /usr/local/nagios/etc/contacts.cfg

__ Change file and write to it, no error __

[root@ORCXNAGIOS ~]#

It does not appear to be permissions as apache can read/write to the files. I've ran the reset_config_perms fix but this did not resolve the issue. It could be a permissions issue somewhere that I am missing but I am skeptical. Nothing appears in the httpd error_log, selinux is disabled, and php.ini has been updated based on documentation. I'm out of ideas and hope maybe someone has encountered this?

Nagios XI 2011R1.7