Page 1 of 1

menu "view config"

Posted: Fri Feb 17, 2017 4:00 am
by matteo.dalfonso
Sometimes in Nagios Core I found very useful the menu:
Configuration --> View Config

There is the same, or similar, menu on Nagios XI?

Thanks,
M.

Re: menu "view config"

Posted: Fri Feb 17, 2017 3:00 pm
by dwhitfield
Yes.

Go to http://YOURIP/nagiosxi/includes/compone ... -index.php and click on the middle icon under "Actions." It's the one that looks like a floppy disk.

Re: menu "view config"

Posted: Mon Feb 20, 2017 3:57 am
by matteo.dalfonso
Thanks for the replay, could help but is not the original question.

The menu that I'm looking for in Nagios XI is:
http://<IP of nagios CORE>/nagios/cgi-bin/config.cgi?type=hosts

The view text config action in NagiosXI show me the CFG syntax, that cold be useful but can not be easy imported in excel.

Nagios CORE: 3.0.6
Nagios XI Version : 2014R2.7
Nagios CCM: 2.3.3

One note: I did not found the "floppy disk" action in the "[...]/ccm/xi-index.php" page, but the the sub menu "hosts/services/etc."

Thanks,

Re: menu "view config"

Posted: Mon Feb 20, 2017 1:52 pm
by dwhitfield
So, it's possible I misunderstood your inquiry, but for the sake of clarity, http://YOURNAGIOSXIIP/nagios/cgi-bin/co ... type=hosts is available in Nagios XI. If you use nagios instead of nagiosxi you'll get all the Core views you know and love. Obviously, there are some things you can't do from the Core interface, but if you do things like schedule downtime in the Core interface, then the XI interface will also show that.

Indeed, I could have given you http://192.168.4.156/nagiosxi/includes/ ... &type=host . That info doesn't automatically populate the browser URL unless you open in a new tab. I apologize for the confusion.

You could use something like the following if you are looking for something other than the Core interface:

Code: Select all

echo "use nagiosql; select host_name,address from tbl_host into outfile '/tmp/hosts.csv' fields terminated by ',' enclosed by '\"' lines terminated by '\n'" | mysql -u root -pnagiosxi

Re: menu "view config"

Posted: Tue Feb 21, 2017 6:23 am
by Francesco
dwhitfield wrote:So, it's possible I misunderstood your inquiry, but for the sake of clarity, http://YOURNAGIOSXIIP/nagios/cgi-bin/co ... type=hosts is available in Nagios XI.
BINGO!

Many thanks!

P.S. We use "[...]/nagios/cgi-bin/config.cgi" to verify the final result of complex template tree, on environment not administrated by me.

Re: menu "view config"

Posted: Tue Feb 21, 2017 10:04 am
by dwhitfield
It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!

Re: menu "view config"

Posted: Wed May 31, 2017 9:07 am
by Francesco
Yes, this can be locked.