Here is the answer I was looking for.
curl -XPUT "http://(ip)/nagiosxi/api/v1/config/contactgroup/(contactgroupname)?apikey=(apikey)&pretty=1&members=(membername)&applyconfig=1"
Search found 42 matches
- Fri May 05, 2023 11:38 am
- Forum: Nagios XI
- Topic: Create and Rotate users in Contactgroup programatically.
- Replies: 1
- Views: 424
- Fri May 05, 2023 10:55 am
- Forum: Nagios XI
- Topic: Create and Rotate users in Contactgroup programatically.
- Replies: 1
- Views: 424
Create and Rotate users in Contactgroup programatically.
All, We want to create a contact group through the Nagios REST API but I've been struggling to find a doc about this task online. I need your help here. The below text is what I have so far (not working). curl -XGET "http:// (IP) /nagiosxi/api/v1/system/status?apikey= (API KEY) &pretty=1&qu...
- Mon Oct 04, 2021 7:28 am
- Forum: Nagios XI
- Topic: Storage Sizes not Updating CHECK_VMWARE_API
- Replies: 9
- Views: 183
- Thu Sep 30, 2021 11:05 am
- Forum: Nagios XI
- Topic: Intermittent Segmentation Fault with check_vmware_api
- Replies: 20
- Views: 346
Re: Intermittent Segmentation Fault with check_vmware_api
The ticket has been made
- Thu Sep 30, 2021 10:51 am
- Forum: Nagios XI
- Topic: Storage Sizes not Updating CHECK_VMWARE_API
- Replies: 9
- Views: 183
Re: Storage Sizes not Updating CHECK_VMWARE_API
VMWare said that it is an issue with the CHECK_VMWARE_API code, which is not theirs and they do not support. They verified that the sizes are correct from the VMWare side and told me that you should support me to a resolution. I reran the command again.. /usr/local/nagios/libexec/check_vmware_api.pl...
- Wed Sep 29, 2021 2:21 pm
- Forum: Nagios XI
- Topic: Intermittent Segmentation Fault with check_vmware_api
- Replies: 20
- Views: 346
Re: Intermittent Segmentation Fault with check_vmware_api
It may but not reliably, also we have multiple checks that we would like to run so it may be incredibly hard to run all these checks reliably with the space gaps.
- Wed Sep 29, 2021 2:16 pm
- Forum: Nagios XI
- Topic: Storage Sizes not Updating CHECK_VMWARE_API
- Replies: 9
- Views: 183
- Tue Sep 28, 2021 1:04 pm
- Forum: Nagios XI
- Topic: Intermittent Segmentation Fault with check_vmware_api
- Replies: 20
- Views: 346
Re: Intermittent Segmentation Fault with check_vmware_api
Here is the output. $ cpan -l | grep -i ssleay Net::SSLeay 1.55 Net::SSLeay::Handle 0.61 Crypt::SSLeay 0.64 Crypt::SSLeay::CTX undef Crypt::SSLeay::Conn undef Crypt::SSLeay::Err undef Crypt::SSLeay::MainContext undef Crypt::SSLeay::X509 undef vendor_perl::Net::SSLeay 1.55 vendor_perl::Net::SSLeay::H...
- Tue Sep 28, 2021 12:50 pm
- Forum: Nagios XI
- Topic: Storage Sizes not Updating CHECK_VMWARE_API
- Replies: 9
- Views: 183
Re: Storage Sizes not Updating CHECK_VMWARE_API
When I ran this check we still got "CRITICAL" though the device in question is no longer at critical levels. This is occurring almost a week after the size was reclaimed.
- Thu Sep 23, 2021 10:52 am
- Forum: Nagios XI
- Topic: Intermittent Segmentation Fault with check_vmware_api
- Replies: 20
- Views: 346
Re: Intermittent Segmentation Fault with check_vmware_api
Ah............ So that's not good. I ran it with trace and it worked once and then segmentation faulted the next time... Here is the seg fault /usr/local/nagios/libexec/check_vmware_api.pl -f /file/path -l cpu -w 80 -c 90 -H hostnameomitted -vvv --trace=4 [extra-opts] check_vmware_api.pl -f /file/pa...