Re: Querying scheduled outages via ReST

JohnD Blackburn <[email protected]>
Newsgroups gmane.network.opennms.general
Message-ID <DB6PR0602MB2902E09E2B414718BDFFFCE8CB670@DB6PR0602MB2902.eurprd06.prod.outlook.com>
I was just going through the list of issues targeted for 21.0, and noticed https://issues.opennms.org/browse/NMS-8698

Does NMS-8968  address my issue?  I can see it has subtasks for REST endpoint for poller/threshold/collectd/notifd configuration, which sounds like it might be what I'm looking for.



Regards,
John Blackburn

-----Original Message-----
From: JohnD Blackburn [mailto:[email protected]] 
Sent: Friday, 22 September 2017 11:33 AM
To: General OpenNMS Discussion <[email protected]>
Subject: Re: [opennms-discuss] Querying scheduled outages via ReST

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.


The following is added to notifd-configuration/poller-configuration/etc...

   <outage-calendar>Test-Outage</outage-calendar>
   <outage-calendar>prd-app01 weeky recycle</outage-calendar>
   <outage-calendar>prd-app02 weekly recycle</outage-calendar>
   <outage-calendar>prd-bat01 weekly recycle</outage-calendar>


I can grab that info by mining it directly out of the xml files before I push any updates, but it would be much neater if I could query  the data via ReST.




John Blackburn




-----Original Message-----
From: David Hustace [mailto:[email protected]]
Sent: Wednesday, 20 September 2017 5:51 AM
To: DiscussionList List <[email protected]>
Subject: Re: [opennms-discuss] Querying scheduled outages via ReST



> On Sep 19, 2017, at 02:47, JohnD Blackburn <[email protected]> wrote:
>
> Is there something that isn’t documented?  Or should I be raising an issue for this?

I think that the only way that you'll be able to relate outages to notifications is if the event creating outage is also associated with a notification.  You'd have to get the eventID from the ReST API of the outage and query the notification's API using that eventID... if that works.

Cheers,
David



David Hustace
The OpenNMS Group, Inc.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.