Nagios XI 5.7 API Documentation Help
Posted: Thu Jun 25, 2020 3:23 pm
I am new to Nagios XI and my group is looking to create an external web site using the API for status of specific hosts/services for specific groups.
I was looking into the API documentation and found I can pull back all the necessary information I need...BUT...I have no real definition to decipher it. I was wondering if there was any thorough documentation for using the new REST API. I looked under HELP > API Docs and it gives me the URL and an example of the return, but it doesn't tell me what the items mean or the possible results for them.
for example:
Host Status --
"current_state":"0"
I've seen before with the old CGI-BIN JSON there was an enumerate format option that could be used to get Up, Down, etc. but I have tried using &formatoptions=enumerate and that does not seem to be a valid option.
Any help would be appreciated.
I was looking into the API documentation and found I can pull back all the necessary information I need...BUT...I have no real definition to decipher it. I was wondering if there was any thorough documentation for using the new REST API. I looked under HELP > API Docs and it gives me the URL and an example of the return, but it doesn't tell me what the items mean or the possible results for them.
for example:
Host Status --
"current_state":"0"
I've seen before with the old CGI-BIN JSON there was an enumerate format option that could be used to get Up, Down, etc. but I have tried using &formatoptions=enumerate and that does not seem to be a valid option.
Any help would be appreciated.