Page 2 of 2
Re: Nagios XI report on Recent added Hosts
Posted: Thu Feb 10, 2022 3:52 pm
by ITOMB_IMT
Thanks for the information, but API's doesn't provide what am looking for. I need to grab the numbers that are shown in Host Status Summary and Service Status Summary. Please see the attached pic.
Re: Nagios XI report on Recent added Hosts
Posted: Sun Feb 13, 2022 9:43 am
by gsmith
Hi
If you use the "GET objects/hoststatus" and look at the "output" key in the json response you
can get the numbers you are looking for.
A host that is up will return:
"output": "OK - 127.0.0.1 rta 0.022ms lost 0%"
Please let me know if you need help with this.
Thanks!
Re: Nagios XI report on Recent added Hosts
Posted: Thu Feb 24, 2022 11:57 am
by ITOMB_IMT
gsmith wrote:Hi
The age of entries kept for the audit log are set via Admin, Performance, Databases, NDO Database, Max Log Entries Age.
The default for this is 90 days, I am guessing yours is set for 180 days, so this is the limitation you are running into.
The functionality/data you are looking for does not exist. You would need to come up with a "home-grown" solution
to track the addition/deletion of hosts by date.
Thanks
May i know where can i change the setting to store Max Log Entries Age for more than 180 days or more?
Re: Nagios XI report on Recent added Hosts
Posted: Fri Feb 25, 2022 1:03 pm
by gsmith
Hi
Go to Admin, Performance, Databases, Nagios XI Database, Max Audit Log Age and
Admin, Performance, Databases, NDO Database, Max Log Entries Age
Image008.jpg
Thanks