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

"Ostock,David J." <[email protected]> Tue, 27 Nov 2018 20:58:44 +0000
Newsgroups gmane.network.opennms.general
Message-ID <SN6PR07MB443118D00FA4D625FC4B90AED6D00@SN6PR07MB4431.namprd07.prod.outlook.com>
--===============2378339980586416571==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_SN6PR07MB443118D00FA4D625FC4B90AED6D00SN6PR07MB4431namp_"

--_000_SN6PR07MB443118D00FA4D625FC4B90AED6D00SN6PR07MB4431namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

David,

That does exactly what I need.  Now I need to figure out how to automate th=
e process using the REST API.

Thanks,
Dave


From: David Hustace <[email protected]>
Sent: Tuesday, November 27, 2018 12:19 PM
To: DiscussionList List <[email protected]>
Subject: [External] Re: [opennms-discuss] Is there a recommended way to res=
et a monitor and clear an outage?


This email is from an external source. Please exercise caution in opening a=
ttachments or links.



On Nov 27, 2018, at 10:37, Ostock,David J. <[email protected]<mailto=
:[email protected]>> wrote:

Anyone have any idea how to do this?

I think if you:

1) go to the Node's Admin page
2) select Manage and Unmanage Interfaces and Services
3) "uncheck" the service with the outage
4) click Apply.

It will clear the outage.

You can then repeat the process and recheck (select) the service.

You should see the service on the node page go from "Manged" to "Forced Unm=
anaged" and back to "Managed" as well as the outage being removed.  You sho=
uld also see events:

- Polling will be discontinued for XYZ service on interface 123
- Polling will begin/resume for XYZ service on interface 123

There is probably a way to do this via the ReST API, too.



David


David Hustace
The OpenNMS Group, Inc.

--_000_SN6PR07MB443118D00FA4D625FC4B90AED6D00SN6PR07MB4431namp_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
	{mso-style-name:msonormal;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">David,<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">That does exactly what I need.&nbsp; Now I need to f=
igure out how to automate the process using the REST API.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Thanks,<o:p></o:p></p>
<p class=3D"MsoNormal">Dave<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div style=3D"border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in =
0in 0in">
<p class=3D"MsoNormal"><b>From:</b> David Hustace &lt;[email protected]&gt;=
 <br>
<b>Sent:</b> Tuesday, November 27, 2018 12:19 PM<br>
<b>To:</b> DiscussionList List &lt;[email protected]&gt=
;<br>
<b>Subject:</b> [External] Re: [opennms-discuss] Is there a recommended way=
 to reset a monitor and clear an outage?<o:p></o:p></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p><i>This email is from an external source. Please exercise caution in ope=
ning attachments or links.</i><o:p></o:p></p>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class=3D"MsoNormal"><br>
<br>
<o:p></o:p></p>
<blockquote style=3D"margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class=3D"MsoNormal">On Nov 27, 2018, at 10:37, Ostock,David J. &lt;<a hr=
ef=3D"mailto:[email protected]">[email protected]</a>&gt; wro=
te:<o:p></o:p></p>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class=3D"MsoNormal">Anyone have any idea how to do this?<o:p></o:p></p>
</div>
</blockquote>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class=3D"MsoNormal">I think if you:<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">1) go to the Node's Admin page<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal">2) select&nbsp;Manage and Unmanage Interfaces and Se=
rvices<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal">3) &quot;uncheck&quot; the service with the outage<o=
:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal">4) click Apply.<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">It will clear the outage.<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">You can then repeat the process and recheck (select)=
 the service.<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">You should see the service on the node page go from =
&quot;Manged&quot; to &quot;Forced Unmanaged&quot; and back to &quot;Manage=
d&quot; as well as the outage being removed. &nbsp;You should also see even=
ts:&nbsp;<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">- Polling will be discontinued for XYZ service on in=
terface 123<o:p></o:p></p>
</div>
<div>
<div>
<p class=3D"MsoNormal">- Polling will begin/resume&nbsp;for XYZ service on =
interface 123<o:p></o:p></p>
</div>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">There is probably a way to do this via the ReST API,=
 too.<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">David<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><o:p>&nbsp;</o:p></p>
<div>
<div>
<div>
<p class=3D"MsoNormal"><span style=3D"color:black">David Hustace<br>
The OpenNMS Group, Inc.<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>

--_000_SN6PR07MB443118D00FA4D625FC4B90AED6D00SN6PR07MB4431namp_--


--===============2378339980586416571==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============2378339980586416571==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
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
--===============2378339980586416571==--