Search found 34 matches
- Fri Sep 17, 2021 10:02 am
- Forum: Nagios XI
- Topic: Can I update Nagios active service status using Rest API
- Replies: 13
- Views: 454
Re: Can I update Nagios active service status using Rest API
Hi ssax, What we have tried and still make the update/reset service status not as fast as we hoped. This make me wondering is it possible to combine multiple service status reset into one post request, this will reduce the http connections and database connections. for example, instead of using the ...
- Tue Aug 31, 2021 10:08 am
- Forum: Nagios XI
- Topic: Can I update Nagios active service status using Rest API
- Replies: 13
- Views: 454
Re: Can I update Nagios active service status using Rest API
I have over 9000 services for different hosts and using the following command (actually converted to use httpClient) to update the status of all the services in a giving time interval. curl -k -L -XPOST "https://X.X.X.X/nagiosxi/api/v1/system/corecommand?apikey=YYYYY" -d 'cmd=PROCESS_SERVI...
- Mon Aug 30, 2021 11:56 am
- Forum: Nagios XI
- Topic: Can I update Nagios active service status using Rest API
- Replies: 13
- Views: 454
Re: Can I update Nagios active service status using Rest API
No. I am not using the apply configuration at all for this API call. Looks like it is not needed.
- Fri Aug 27, 2021 3:34 pm
- Forum: Nagios XI
- Topic: Can I update Nagios active service status using Rest API
- Replies: 13
- Views: 454
Re: Can I update Nagios active service status using Rest API
Hi ssax, One more question: Is there a rate limit we should consider when posting commands to the the Core Command API? I have about 10000 services to update using the core command API you mentioned, it took me about 20 minutes to get updated in Nagios. in the rate of 500 posting command per minutes...
- Tue Aug 24, 2021 7:04 am
- Forum: Nagios XI
- Topic: Can I update Nagios active service status using Rest API
- Replies: 13
- Views: 454
Re: Can I update Nagios active service status using Rest API
it worked. Thank you!
- Mon Aug 23, 2021 9:54 am
- Forum: Nagios XI
- Topic: Can I update Nagios active service status using Rest API
- Replies: 13
- Views: 454
Re: Can I update Nagios active service status using Rest API
Hi ssax, Thank you so much for the info. It works. One more thing, how do I pass the performance data (perfdata, format or position)? PROCESS_SERVICE_CHECK_RESULT;<host_name>;<service_description>;<return_code>;<plugin_output> The "plugin_output" field contains text output from the service...
- Thu Aug 19, 2021 10:25 am
- Forum: Nagios XI
- Topic: Can I update Nagios active service status using Rest API
- Replies: 13
- Views: 454
Can I update Nagios active service status using Rest API
Hi, I am using Nagios XI 5.8.1. I know that we can use rest API to add/update service configuration into Nagios XI. Just wonder is it possible to update defined active service status information using API? Like set the current_state, output, perfdata etc. of the defined active check service in Nagio...
- Thu Jan 21, 2021 10:07 am
- Forum: Nagios XI
- Topic: Can I remove host from service group using API
- Replies: 4
- Views: 136
Re: Can I remove host from service group using API
Hi ssax, Thank you for your post. You are right that I can remove host from service group using API. What I found out later is this: when you look at the host configuration, click the action column relationships icon, then you will see Object relationships Dependent relationships denoted by %, look ...
- Tue Jan 19, 2021 3:16 pm
- Forum: Nagios XI
- Topic: Can I remove host from service group using API
- Replies: 4
- Views: 136
Can I remove host from service group using API
I am using Nagios XI 5.7.4.
Looks like there will be an issue if I remove a host using API without checking if this host is a member of servicegroup. How can I remove this host from a servicegroup using API? or Is there a work around to complete the task programmatically using API?
Thanks
Looks like there will be an issue if I remove a host using API without checking if this host is a member of servicegroup. How can I remove this host from a servicegroup using API? or Is there a work around to complete the task programmatically using API?
Thanks
- Tue Aug 18, 2020 10:22 am
- Forum: Nagios XI
- Topic: Host or Service using Manage Free Variables
- Replies: 3
- Views: 866
Re: Host or Service using Manage Free Variables
Hi Ben,
Yes, I can get the free variable by adding customvars=1 to the API.
As for the number of free variables, currently not many, maybe around 10.
On the other hand, can I set the free variables through API?
Thank you very much!
Joseph
Yes, I can get the free variable by adding customvars=1 to the API.
As for the number of free variables, currently not many, maybe around 10.
On the other hand, can I set the free variables through API?
Thank you very much!
Joseph