Search found 96 matches
- Fri Apr 28, 2017 4:26 pm
- Forum: Nagios XI
- Topic: API failing with http code 500 on Servicestatus request
- Replies: 26
- Views: 1081
Re: API failing with http code 500 on Servicestatus request
I think this is everything you asked for... ipcs -q ------ Message Queues -------- key msqid owner perms used-bytes messages 0xca020080 5898240 nagios 600 5120 5 0x92020080 7700481 nagios 600 0 0 ps aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 1.5 708872 521632 ? Ss Jan30 11...
- Fri Apr 28, 2017 12:39 pm
- Forum: Nagios XI
- Topic: API failing with http code 500 on Servicestatus request
- Replies: 26
- Views: 1081
Re: API failing with http code 500 on Servicestatus request
Hi. The API seems to have a number of inconsistencies. I'm trying to delete a host. First, I get a list of all the services and load them into an array: Here's the code snippets (from two subroutines): $browser = LWP::UserAgent->new; $url = "http://$xiServer/nagiosxi/api/v1/objects/servicestatu...
- Thu Apr 06, 2017 6:26 pm
- Forum: Nagios XI
- Topic: API failing with http code 500 on Servicestatus request
- Replies: 26
- Views: 1081
Re: API failing with http code 500 on Servicestatus request
I like the limited query concept.
So, what I really want is to get all the servicestatus data for a single host.
This totally did the trick and is quite fast:
Thanks very much!
Rick
So, what I really want is to get all the servicestatus data for a single host.
This totally did the trick and is quite fast:
Code: Select all
&host_name=in:zzzzzzz.att.com&pretty=1
Rick
- Thu Apr 06, 2017 12:43 pm
- Forum: Nagios XI
- Topic: API failing with http code 500 on Servicestatus request
- Replies: 26
- Views: 1081
Re: API failing with http code 500 on Servicestatus request
Tried double (256M). No good. Tried 512M. Still failed. Tried 1024M. That was enough memory, but now the php timed out. Bumped it from 30 secs to 60. That worked, but it took nearly the entire minute. Already a challenge for a user interface. We are planning on tripling the number of servers/service...
- Wed Apr 05, 2017 5:35 pm
- Forum: Nagios XI
- Topic: API failing with http code 500 on Servicestatus request
- Replies: 26
- Views: 1081
Re: API failing with http code 500 on Servicestatus request
yep...
[Wed Apr 05 18:33:52.314577 2017] [:error] [pid 82718] [client xxx.xx.xx.xxx:57309] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2 bytes) in /opt/app/nagiosxi/html/backend/includes/xml2json.php on line 243
- Wed Apr 05, 2017 4:03 pm
- Forum: Nagios XI
- Topic: API failing with http code 500 on Servicestatus request
- Replies: 26
- Views: 1081
API failing with http code 500 on Servicestatus request
Hi. All of a sudden, on two of our production XI servers, the objects/servicestatus api is failing. When called through the XI (Help) gui, nothing is returned. When I call it through a script, I'm getting "500 Internal Server Error" objects/hoststatus is working fine so it's not an api key...
- Fri Mar 10, 2017 7:22 pm
- Forum: Nagios XI
- Topic: XI 5 API doc
- Replies: 3
- Views: 98
Re: XI 5 API doc
It seems that the API may not be working properly. One of the documented interfaces is to be able to delete a host. Here's the URL I used: curl -XDELETE "http://xxxxxxx.xxxx.att.com/nagiosxi/api/v1/config/host?apikey=myApiKey&pretty=1&host_name=my.host.att.com&applyconfig=1" He...
- Tue Mar 07, 2017 7:11 pm
- Forum: Nagios XI
- Topic: XI 5 API doc
- Replies: 3
- Views: 98
XI 5 API doc
Hi. I am starting to code up some cleanup routines for services on XI. I love the new RESTful API. Is there any exhaustive doc available? The doc in the help menu is a great start but is, by no means, complete. For example, when I try to delete a service that was previously deleted, I get this: &quo...
- Tue Feb 14, 2017 5:31 pm
- Forum: Nagios XI
- Topic: Setting the REST API Key
- Replies: 4
- Views: 186
Re: Setting the REST API Key
That worked great!
Thanks very much!
Rick
Thanks very much!
Rick
- Tue Feb 14, 2017 1:29 pm
- Forum: Nagios XI
- Topic: Setting the REST API Key
- Replies: 4
- Views: 186
Setting the REST API Key
Hi.
I want to use the REST api to get and delete objects.
It works great in my testing.
At buildout, we will have hundreds of XI servers so keeping track of the individual api keys is prohibitive.
Is there a way to set the key on each XI?
Thanks,
Rick
I want to use the REST api to get and delete objects.
It works great in my testing.
At buildout, we will have hundreds of XI servers so keeping track of the individual api keys is prohibitive.
Is there a way to set the key on each XI?
Thanks,
Rick