Re: [External] Re: Is there a recommended way to reset a monitor and clear an outage?

"Ostock,David J." <[email protected]> Fri, 30 Nov 2018 21:54:50 +0000
Newsgroups gmane.network.opennms.general
Message-ID <SN6PR07MB44317642CB59E783124C30BDD6D30@SN6PR07MB4431.namprd07.prod.outlook.com>
Yes, I found that.  The REST API docs are a bit light, but usable.  I'm making pretty good progress automating the process.  

One interesting thing I found when I unmanage a service on an interface that is down via the console, the associated outage record gets deleted from the database, whereas when I set the ifservice to forced unmanaged via the REST API it doesn't delete the outage record.  

From the docs, it doesn't look like there is a delete method available for outages, so I'll probably delete them via SQL.

Thanks,
Dave 

-----Original Message-----
From: David Hustace <[email protected]> 
Sent: Thursday, November 29, 2018 6:09 PM
To: DiscussionList List <[email protected]>
Subject: Re: [opennms-discuss] [External] Re: Is there a recommended way to reset a monitor and clear an outage?

This email is from an external source. Please exercise caution in opening attachments or links.

> On Nov 27, 2018, at 15:58, Ostock,David J. <[email protected]> wrote:
>
> That does exactly what I need.  Now I need to figure out how to automate the process using the REST API.

If found the documentation for the ReST API for services missing.  I did find something referencing it with a use case for Categories even though it's really an API for managing monitored services using categories... OMG.

https://docs.opennms.org/opennms/releases/23.0.1/guide-development/guide-development.html#_categories_2

This is a bug in the documentation.  Instead of the Categories heading it should be Monitored Services.  Though, this documentation is still pretty light.


David



David Hustace
The OpenNMS Group, Inc.


_______________________________________________
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


_______________________________________________
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