export server list as PDF
Posted: Thu Jun 18, 2020 2:16 pm
is there a way i could export a list of all the servers monitored to an excel shit or pdf?
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
yum install jq -y
curl -k -L -XGET "http://X.X.X.X/nagiosxi/api/v1/objects/hoststatus?apikey=XXXXXXXXXXXXXXXXX&pretty=1" | jq -r '.hoststatus[] | [.[] | tostring] | @csv' > /path/to/your/file.csvCode: Select all
http://YOURXISERVER/nagiosxi/help/api-object-reference.php#objects-hoststatus