This is a Go client for the Nagios Core API that can communicate with the Nagios Core JSON CGIs.
It's the programmatic equivalent of the <nagios>/nagios/jsonquery.html
.
go get -u github.com/ulumuri/go-nagios/[email protected]
- Archive JSON CGI
- alertcount
- alertlist
- notificationcount
- notificationlist
- statechangelist
- availability
- Object JSON CGI
- hostcount
- hostlist
- host
- hostgroupcount
- hostgrouplist
- hostgroup
- servicecount
- servicelist
- service
- servicegroupcount
- servicegrouplist
- servicegroup
- contactcount
- contactlist
- contact
- contactgroupcount
- contactgrouplist
- contactgroup
- timeperiodcount
- timeperiodlist
- timeperiod
- commandcount
- commandlist
- command
- servicedependencycount
- servicedependencylist
- serviceescalationcount
- serviceescalationlist
- hostdependencycount
- hostdependencylist
- hostescalationcount
- hostescalationlist
- Status JSON CGI
- hostcount
- hostlist
- host
- servicecount
- servicelist
- service
- commentcount
- commentlist
- comment
- downtimecount
- downtimelist
- downtime
- programstatus
- performancedata
Tested with Nagios Core 4.4.x