Nagios XI Backend API Example Code
Ethan Galstad
If you’d like to integrate host/status information from Nagios XI into a public portal or display of some kind, you’ll likely be interested in our example backend API access code.
The ZIP file below contains some sample code for accessing the backend API. You can modify as needed. The access credentials are invisible to the public, and the information to be displayed can be customized (if you don’t mind diving into some PHP).
Note for Nagios XI 2024 & 2026 Users
Modern versions of Nagios XI now include a REST API, rather than the legacy Backend API.
This document outlines using the REST API to fetch data in JSON format, and to programmatically control your XI system and configurations:




