Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Nagios2JSON
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
Allows you to get information about Nagios Status etc using JSON format. This project provide CGIs source code to retreive and export Nagios status data through JSON format.
Reviews (4)
byskipper, August 11, 2016
cd ./nagios-3.2.3/
./configure
make all
cd ./cgi
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -o status-json.cgi status-json.c getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o
./configure
make all
cd ./cgi
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -o status-json.cgi status-json.c getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o
byBefaro, March 3, 2014
Hi,
I tryed to compile statusjson.c using Nagios 3.5.1, but I get the follow errors:
../cgi# gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -o statusjson.cgi statusjson.c
statusjson.c: In function ‘display_hostgroups’:
statusjson.c:169:2: error: unknown type name ‘hostgroupmember’
statusjson.c:174:24: warning: assignment from incompatible pointer type [enabled by default]
statusjson.c:174:102: error: request for member ‘next’ in something not a structure or union
statusjson.c:178:49: error: request for member ‘host_name’ in something not a structure or union
statusjson.c:179:24: error: request for member ‘next’ in something not a structure or union
statusjson.c: In function ‘display_servicegroups’:
statusjson.c:207:2: error: unknown type name ‘servicegroupmember’
statusjson.c:211:13: warning: assignment from incompatible pointer type [enabled by default]
statusjson.c:212:43: error: request for member ‘next’ in something not a structure or union
statusjson.c:213:79: error: request for member ‘host_name’ in something not a structure or union
statusjson.c:213:114: error: request for member ‘service_description’ in something not a structure or union
statusjson.c:214:16: error: request for member ‘next’ in something not a structure or union
Could someone help me?
Thanks in advance!
I tryed to compile statusjson.c using Nagios 3.5.1, but I get the follow errors:
../cgi# gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -o statusjson.cgi statusjson.c
statusjson.c: In function ‘display_hostgroups’:
statusjson.c:169:2: error: unknown type name ‘hostgroupmember’
statusjson.c:174:24: warning: assignment from incompatible pointer type [enabled by default]
statusjson.c:174:102: error: request for member ‘next’ in something not a structure or union
statusjson.c:178:49: error: request for member ‘host_name’ in something not a structure or union
statusjson.c:179:24: error: request for member ‘next’ in something not a structure or union
statusjson.c: In function ‘display_servicegroups’:
statusjson.c:207:2: error: unknown type name ‘servicegroupmember’
statusjson.c:211:13: warning: assignment from incompatible pointer type [enabled by default]
statusjson.c:212:43: error: request for member ‘next’ in something not a structure or union
statusjson.c:213:79: error: request for member ‘host_name’ in something not a structure or union
statusjson.c:213:114: error: request for member ‘service_description’ in something not a structure or union
statusjson.c:214:16: error: request for member ‘next’ in something not a structure or union
Could someone help me?
Thanks in advance!
Seems the sight was updated to Drupal and left at that...anyway, found the page:
http://www.yannj.fr/?q=node/3
http://www.yannj.fr/?q=node/3
bydjengineerllc, January 18, 2011
0 of 1 people found this review helpful
Thank very much! I compiled this with Nagios 3.2.1 and it worked like a charm! :)