Search found 7 matches

by Zeedinstein
Wed Jul 20, 2016 1:21 am
Forum: Open Source Nagios Projects
Topic: Connecting to Nagios API via a Website
Replies: 12
Views: 15316

Re: Connecting to Nagios API via a Website

Hi thank you so much for the help it work and I'm receiving the correct information!
by Zeedinstein
Tue Jul 19, 2016 1:47 am
Forum: Open Source Nagios Projects
Topic: Connecting to Nagios API via a Website
Replies: 12
Views: 15316

Re: Connecting to Nagios API via a Website

Is there maybe something I have to do on the server-side?
by Zeedinstein
Tue Jul 19, 2016 1:32 am
Forum: Open Source Nagios Projects
Topic: Connecting to Nagios API via a Website
Replies: 12
Views: 15316

Re: Connecting to Nagios API via a Website

I have changed the password to contain no symbols now, The curl command is giving back a json response as shown in the previous response. I'm not sure what's wrong.
by Zeedinstein
Mon Jul 18, 2016 2:23 am
Forum: Open Source Nagios Projects
Topic: Connecting to Nagios API via a Website
Replies: 12
Views: 15316

Re: Connecting to Nagios API via a Website

Okay so I replaced nagiosadmin:welcome@192.168.3.141 that I put my credentials and server but now I'm still getting the 401 unauthorized. jquery-3.1.0.js:9392 GET http://41.87.218.55/nagios/cgi-bin/objectjson.cgi?query=hostlist&parenthost=none&childhost=none 401 (Unauthorized) send @ jquery-...
by Zeedinstein
Fri Jul 15, 2016 3:37 am
Forum: Open Source Nagios Projects
Topic: Connecting to Nagios API via a Website
Replies: 12
Views: 15316

Re: Connecting to Nagios API via a Website

Okay there was a symbol in the password conflicting with the curl command. So the curl command output is: * Hostname was NOT found in DNS cache * Trying 41.87.218.55... * Connected to 41.87.218.55 (41.87.218.55) port 80 (#0) * Server auth using Basic with user 'test_admin' > GET /nagios/cgi-bin/stat...
by Zeedinstein
Thu Jul 14, 2016 2:37 am
Forum: Open Source Nagios Projects
Topic: Connecting to Nagios API via a Website
Replies: 12
Views: 15316

Re: Connecting to Nagios API via a Website

Yes I have been using the /jsonquery.html , It's very useful thanks. My problems is I can't seem to get the Authorization to work, I've tried putting the username and password in the url, but that's not working, I'm still getting an empty object. I've never really used JQuery before so I don't reall...
by Zeedinstein
Mon Jul 11, 2016 9:12 am
Forum: Open Source Nagios Projects
Topic: Connecting to Nagios API via a Website
Replies: 12
Views: 15316

Connecting to Nagios API via a Website

Hi, I'm busying building an application that monitors a few servers and other websites via API's. I need help in getting json info from our nagios server to display the info on the web app that I am developing. Can you help me in figuring out how to do this? I am using Jquery to get the json data vi...