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/nagios@v1.0.0
- 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