<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Hi,<div>Have a look at phantomjs. I used it in the past to script interaction with a website - login, navigate to a tab, evaluate whether certain html element was present ( an element generated by javascript).</div><div><br></div><div>An example of login here: <a href="http://code-epicenter.com/how-to-login-amazon-using-phantomjs-working-example/">http://code-epicenter.com/how-to-login-amazon-using-phantomjs-working-example/</a></div><div><br></div><div>You can set it to return different exit codes and have a bash script wrapper to call phantomjs and send status messages to xymon server.<br><br><div id="AppleMailSignature">Martin</div><div><br>On 9 Oct 2018, at 21:43, Ralph Mitchell <<a href="mailto:ralphmitchell@gmail.com">ralphmitchell@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div>I used to do that kind of thing about 8 years ago.  I used bash scripts and curl to post to the servers I was watching.  There's an extension for Firefox called LiveHTTPHeaders that does a pretty good job of capturing what gets sent so you can replicate it.  The tricky part is processing anything that uses javascript in the browser.</div><div><br></div><div>I never had to deal with any kind of JSON or REST or whatever protocols, though...</div><div><br></div><div>Ralph Mitchell</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 9, 2018 at 11:02 AM Scot Kreienkamp <<a href="mailto:Scot.Kreienkamp@la-z-boy.com">Scot.Kreienkamp@la-z-boy.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_-4619439788736218160WordSection1">
<p class="MsoNormal">Hi everyone,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Does anyone know how or have any experience with scripting a modern browser and possibly interfacing that with Xymon?<br>
<br>
I have a requirement to monitor our ERP system, and it has to be a login to the app via a modern web browser, which means java, etc.  Is there any way that anyone has come across for simulating those calls and replaying them, and interfacing that with Xymon? 
 I’ve been trying to copy session calls with CURL and not having much success yet.  I’ve also found Selenium but haven’t done more than look at the front page of the site yet.  Any info about using that would be appreciated too. 
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks for any suggestions.<u></u><u></u></p>
</div>
<p style="FONT-FAMILY:'Arial Narrow';LINE-HEIGHT:14px" id="m_-4619439788736218160c1-id-6"><strong id="m_-4619439788736218160c1-id-7"><span style="FONT-SIZE:9pt" id="m_-4619439788736218160c1-id-8">Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate</span></strong><br id="m_-4619439788736218160c1-id-9">
<span style="font-family:Calibri" id="m_-4619439788736218160c1-id-10"><span style="FONT-SIZE:8pt" id="m_-4619439788736218160c1-id-11">One La-Z-Boy Drive | Monroe, Michigan 48162  |<span style="FONT-SIZE:10pt" id="m_-4619439788736218160c1-id-12"><span style="FONT-SIZE:8pt" id="m_-4619439788736218160c1-id-13"></span> </span></span><span style="FONT-SIZE:8pt" id="m_-4619439788736218160c1-id-14"><span style="FONT-SIZE:10pt" id="m_-4619439788736218160c1-id-15"><span style="FONT-SIZE:10pt;FONT-FAMILY:Wingdings;COLOR:black" id="m_-4619439788736218160c1-id-16">(</span></span><span style="FONT-SIZE:10pt" id="m_-4619439788736218160c1-id-17"> 734-384-6403</span></span><span style="FONT-SIZE:8pt" id="m_-4619439788736218160c1-id-18"><span style="FONT-SIZE:10pt" id="m_-4619439788736218160c1-id-19"><span style="FONT-SIZE:8pt" id="m_-4619439788736218160c1-id-20"></span>
 | <font face="Tahoma" id="m_-4619439788736218160c1-id-21">|</font><span style="FONT-SIZE:8pt" id="m_-4619439788736218160c1-id-22"><span style="FONT-FAMILY:Calibri" id="m_-4619439788736218160c1-id-23"></span></span><font face="Tahoma" id="m_-4619439788736218160c1-id-24">
</font><span style="FONT-SIZE:9pt;FONT-FAMILY:Wingdings;COLOR:black" id="m_-4619439788736218160c1-id-25">)</span><span style="FONT-SIZE:8pt" id="m_-4619439788736218160c1-id-26"> <span style="FONT-SIZE:9pt" id="m_-4619439788736218160c1-id-27">7349151444</span></span><span style="FONT-SIZE:8pt" id="m_-4619439788736218160c1-id-28"></span></span></span></span><span style="FONT-SIZE:8pt" id="m_-4619439788736218160c1-id-29"><span style="font-family:Calibri" id="m_-4619439788736218160c1-id-30"> </span>| <span style="FONT-FAMILY:Calibri" id="m_-4619439788736218160c1-id-31"><span style="FONT-SIZE:10pt;FONT-FAMILY:Wingdings;COLOR:black" id="m_-4619439788736218160c1-id-32">*</span></span>  </span><span style="FONT-SIZE:8pt;FONT-FAMILY:Calibri" id="m_-4619439788736218160c1-id-33"><a href="mailto:%7BE-mail%7D" id="m_-4619439788736218160c1-id-34" target="_blank">Scot.Kreienkamp@la-z-boy.com</a><br id="m_-4619439788736218160c1-id-35">
</span><span style="FONT-SIZE:8pt" id="m_-4619439788736218160c1-id-36"><a href="http://www.la-z-boy.com/" id="m_-4619439788736218160c1-id-37" target="_blank">www</a></span><span style="FONT-FAMILY:Calibri" id="m_-4619439788736218160c1-id-38"><span style="FONT-SIZE:8pt;FONT-FAMILY:'Arial Narrow'" id="m_-4619439788736218160c1-id-39"><a href="http://www.la-z-boy.com/" id="m_-4619439788736218160c1-id-40" target="_blank">.la-z-boy.com</a>
 | <a href="https://www.facebook.com/lazboy" id="m_-4619439788736218160c1-id-41" target="_blank">facebook.</a></span></span><span style="FONT-SIZE:8pt" id="m_-4619439788736218160c1-id-42"><a href="https://www.facebook.com/lazboy" id="m_-4619439788736218160c1-id-43" target="_blank">com</a></span><span style="FONT-FAMILY:Calibri" id="m_-4619439788736218160c1-id-44"><span style="FONT-SIZE:8pt;FONT-FAMILY:'Arial Narrow'" id="m_-4619439788736218160c1-id-45"><a href="https://www.facebook.com/lazboy" id="m_-4619439788736218160c1-id-46" target="_blank">/</a></span><span style="FONT-SIZE:8pt" id="m_-4619439788736218160c1-id-47"><a href="http://facebook.com/lazboy" id="m_-4619439788736218160c1-id-48" target="_blank">lazboy</a></span><span style="FONT-SIZE:8pt;FONT-FAMILY:'Arial Narrow'" id="m_-4619439788736218160c1-id-49"> | </span><span style="FONT-SIZE:8pt" id="m_-4619439788736218160c1-id-50"><a href="https://twitter.com/lazboy" id="m_-4619439788736218160c1-id-51" target="_blank">twitter.com/lazboy</a>
 | <a href="https://www.youtube.com/user/lazboy" id="m_-4619439788736218160c1-id-52" target="_blank">youtube.com/</a></span><span style="FONT-SIZE:8pt" id="m_-4619439788736218160c1-id-53"><a href="https://www.youtube.com/user/lazboy" id="m_-4619439788736218160c1-id-54" target="_blank">lazboy</a><br id="m_-4619439788736218160c1-id-55">
<br id="m_-4619439788736218160c1-id-56">
</span></span><img alt="" src="cid:lzbVertical_hres.jpg" id="m_-4619439788736218160c1-id-57">  </p>
<p style="FONT-FAMILY:'Arial Narrow';LINE-HEIGHT:14px" id="m_-4619439788736218160c1-id-58"> </p>
<p id="m_-4619439788736218160c1-id-58" style="FONT-FAMILY:'Arial Narrow';LINE-HEIGHT:14px"><span id="m_-4619439788736218160c1-id-59" style="FONT-SIZE:8pt;FONT-FAMILY:'Arial Narrow'"><span id="m_-4619439788736218160c1-id-60" style="FONT-SIZE:8pt;FONT-FAMILY:'Arial Narrow'">This
</span></span><span id="m_-4619439788736218160c1-id-61" style="FONT-SIZE:8pt"><span id="m_-4619439788736218160c1-id-62" style="FONT-SIZE:8pt">message</span><span id="m_-4619439788736218160c1-id-63" style="FONT-SIZE:8pt"> is intended
</span></span><span id="m_-4619439788736218160c1-id-64" style="FONT-SIZE:8pt"><span id="m_-4619439788736218160c1-id-65" style="FONT-SIZE:8pt">only</span></span><span id="m_-4619439788736218160c1-id-66" style="FONT-SIZE:8pt"><span id="m_-4619439788736218160c1-id-67" style="FONT-SIZE:8pt"> for t</span></span><span id="m_-4619439788736218160c1-id-68" style="FONT-SIZE:8pt;FONT-FAMILY:'Arial Narrow'"><span id="m_-4619439788736218160c1-id-69" style="FONT-SIZE:8pt;FONT-FAMILY:'Arial Narrow'">he
 individual or entity to which it is addressed.  It may contain privileged, confidential information which is exempt from disclosure under applicable laws.  If you are not the intended recipient, you are strictly prohibited from disseminating or distributing
 this information (other than to the intended recipient) or copying this information.  If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.</span></span></p>
</div>

_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</blockquote></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Xymon mailing list</span><br><span><a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a></span><br><span><a href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a></span><br></div></blockquote></div></body></html>