Page 1 of 1

Collect Data Setup

Posted: Wed Dec 08, 2021 2:54 pm
by lucas.shearer
I currently have a running nagiosXI and am trying to simply get it to monitor its own CPU / Usage data. When I run: http://<Myhost>/nagiosxi/api/v1/objects/hoststatus?apikey=<MyAPIKey>&pretty=1 I get 4 records with all sorts of information but when I run: http://<Myhost>/nagiosxi/api/v1/objects/statehistory?apikey=<MyAPIKey>&pretty=1 I get "{
"recordcount": 0,
"stateentry": []
}"

Any idea how to set it up to collect cpu/usage data? so in this statehistory call I can get data of some kind?

Re: Collect Data Setup

Posted: Thu Dec 09, 2021 1:54 pm
by ssax
Does it have to be through the API?

The localhost object should be monitoring those metrics by default if you view the services for it.

You can use Configure > Configuration Wizards > Nagios XI to monitor other metrics as well.

Or you can install NCPA on the system and monitor it with the Linux Server or NCPA wizards.