<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 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.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Consolas;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.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;}
/* List Definitions */
@list l0
        {mso-list-id:1311010599;
        mso-list-type:hybrid;
        mso-list-template-ids:1348381506 -279161074 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-text:"%1\.\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1
        {mso-list-id:1601328057;
        mso-list-type:hybrid;
        mso-list-template-ids:1348381506 -279161074 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l1:level1
        {mso-level-text:"%1\.\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>I figured it out. Quite simple actually and works great, Here’s my steps:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l1 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>1.)<span style='font:7.0pt "Times New Roman"'>    </span></span><![endif]>Download <a href="http://customurl.codeplex.com/">CustomURL</a> and install in system folder (it will ask you). Setup each url protocol you desire. Overwrite telnet if you want. You can test in Firefox or whatever browser you use (i.e. by entering telnet://x.x.x.x replacing the x’s with the IP you want to telnet to).<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:#1F497D'><img border=0 width=396 height=236 id="Picture_x0020_1" src="cid:image001.png@01CDB0A7.30A79B10"></span><span style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l1 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>2.)<span style='font:7.0pt "Times New Roman"'>    </span></span><![endif]>Go into the Nagios host template that you are using for hosts you need ping –t, telnet, and ssh for and enter this in the notes field (not notes_url):<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoListParagraph><span style='color:#1F497D'><a href="ping://$HOSTADDRESS$">ping</a>     <a href="telnet://$HOSTADDRESS$">telnet</a>     <a href="ssh://$HOSTADDRESS$">ssh</a><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>To my surprise the notes field supports html code. Once you add this code, restart Nagios and now in the extended info are of the host you will find the 3 links for all hosts using that template. I may even add some cool mini icons later, but for now the simple text links work fine.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Example:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>define host {<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>                name                                    critical<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>                check_command                             check-host-alive<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>                max_check_attempts                    1<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>                check_interval                  1<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>                retry_interval                    1<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>                check_period                    24x7<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>                contact_groups                                admins<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>                notification_interval                       30<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>                notification_period                         24x7<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>                notification_options                       d,u,r,f,s<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>                notes                                    <a href="ping://$HOSTADDRESS$">ping</a>     <a href="telnet://$HOSTADDRESS$">telnet</a>     <a href="ssh://$HOSTADDRESS$">ssh</a><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>                register                                0<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>}<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Maybe this will help someone. Cheers…<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>-Will<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Will Bashlor [mailto:wbashlor@atcnetworks.net] <br><b>Sent:</b> Monday, October 22, 2012 9:20 PM<br><b>To:</b> Nagios Users List<br><b>Subject:</b> Re: [Nagios-users] ping, telnet, ssh, from nagios-core website<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:#1F497D'>Using </span><a href="http://customurl.codeplex.com/">CustomURL</a> I can get telnet, ssh, and ping -t working using action_url with no problem. It works great!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>One problem though, the hosts I have in multiple groups only show the IP when hovering over the star in 1 group only. For example “Test Switch” will show “ssh://192.168.1.200” in 1 group but the other group the same host shows “ssh://”. Not sure how to fix that yet.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>If I can get that worked out and find a way for multiple action_urls or another way to slide a link in there using a macro that will be great! Stay tuned…<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>-Will<span style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Will Bashlor [<a href="mailto:wbashlor@atcnetworks.net">mailto:wbashlor@atcnetworks.net</a>] <br><b>Sent:</b> Monday, October 22, 2012 6:14 PM<br><b>To:</b> <a href="mailto:mguthrie@nagios.com">mguthrie@nagios.com</a>; Nagios Users List<br><b>Subject:</b> Re: [Nagios-users] ping, telnet, ssh, from nagios-core website<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoPlainText>Thanks Mike. If macro's can be used in action_urls I think I can get it to work with <a href="http://customurl.codeplex.com/">CustomURL</a>. Would you happen to have the link to the patch allowing multiple URLs? I can't find it but will look more when I get home.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>-Will<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>-----Original Message-----<br>From: Mike Guthrie [<a href="mailto:mguthrie@nagios.com">mailto:mguthrie@nagios.com</a>] <br>Sent: Monday, October 22, 2012 4:40 PM<br>To: Nagios Users List<br>Subject: Re: [Nagios-users] ping, telnet, ssh, from nagios-core website<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Looks like someone did come up with a patch for the CGI's that would allow multiple action URL's, but it may take some playing around to get it to do what you want it to do. Although there may be other addon projects that do this already that I'm unaware of.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>To my knowledge you can't use a browser to access ssh, ping, telnet etc. <o:p></o:p></p><p class=MsoPlainText>You'd need some sort of a custom API to be able to run those commands for you from the command line.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Nagios XI (commercial version of Nagios) does have some of these quick actions. Image is attached.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>On 10/22/2012 3:28 PM, Will Bashlor wrote:<o:p></o:p></p><p class=MsoPlainText>> Hi List,<o:p></o:p></p><p class=MsoPlainText>><o:p> </o:p></p><p class=MsoPlainText>> I want to be able to click on an icon or link on the Nagios core website<o:p></o:p></p><p class=MsoPlainText>> and ping, telnet, ssh, etc. to each host. What's the easiest way to<o:p></o:p></p><p class=MsoPlainText>> accomplish this? I've researched and haven't found much that's solid.<o:p></o:p></p><p class=MsoPlainText>><o:p> </o:p></p><p class=MsoPlainText>> I've seen the action_url. Seems like that may work if I modify how<o:p></o:p></p><p class=MsoPlainText>> windows responds to certain urls, (i.e. CustomURL) like ping://,<o:p></o:p></p><p class=MsoPlainText>> <a href="telnet://"><span style='color:windowtext;text-decoration:none'>telnet://</span></a>, ssh://, etc. I'm not sure how it would handle $HOSTADDRESS$,<o:p></o:p></p><p class=MsoPlainText>> or I guess that would be translated by Nagios? And I think I'm limited<o:p></o:p></p><p class=MsoPlainText>> to 1 action_url?<o:p></o:p></p><p class=MsoPlainText>><o:p> </o:p></p><p class=MsoPlainText>> Then I read something about using notes...? I'm not sure about that one.<o:p></o:p></p><p class=MsoPlainText>><o:p> </o:p></p><p class=MsoPlainText>> Someone also mentioned Nagios var? I'm not a programmer.<o:p></o:p></p><p class=MsoPlainText>><o:p> </o:p></p><p class=MsoPlainText>> I would even be happy with a windows Nagios app is I had to, but would<o:p></o:p></p><p class=MsoPlainText>> rather it be within the website.<o:p></o:p></p><p class=MsoPlainText>><o:p> </o:p></p><p class=MsoPlainText>> This is a basic function of most commercial monitoring tools, hopefully<o:p></o:p></p><p class=MsoPlainText>> there's an easy way.<o:p></o:p></p><p class=MsoPlainText>><o:p> </o:p></p><p class=MsoPlainText>> Thoughts anyone? Thanks in advance.<o:p></o:p></p><p class=MsoPlainText>><o:p> </o:p></p><p class=MsoPlainText>> -Will<o:p></o:p></p><p class=MsoPlainText>><o:p> </o:p></p><p class=MsoPlainText>><o:p> </o:p></p><p class=MsoPlainText>> ------------------------------------------------------------------------------<o:p></o:p></p><p class=MsoPlainText>> Everyone hates slow websites. So do we.<o:p></o:p></p><p class=MsoPlainText>> Make your web apps faster with AppDynamics<o:p></o:p></p><p class=MsoPlainText>> Download AppDynamics Lite for free today:<o:p></o:p></p><p class=MsoPlainText>> <a href="http://p.sf.net/sfu/appdyn_sfd2d_oct"><span style='color:windowtext;text-decoration:none'>http://p.sf.net/sfu/appdyn_sfd2d_oct</span></a><o:p></o:p></p><p class=MsoPlainText>> _______________________________________________<o:p></o:p></p><p class=MsoPlainText>> Nagios-users mailing list<o:p></o:p></p><p class=MsoPlainText>> <a href="mailto:Nagios-users@lists.sourceforge.net"><span style='color:windowtext;text-decoration:none'>Nagios-users@lists.sourceforge.net</span></a><o:p></o:p></p><p class=MsoPlainText>> <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users"><span style='color:windowtext;text-decoration:none'>https://lists.sourceforge.net/lists/listinfo/nagios-users</span></a><o:p></o:p></p><p class=MsoPlainText>> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<o:p></o:p></p><p class=MsoPlainText>> ::: Messages without supporting info will risk being sent to /dev/null<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>-- <o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Mike Guthrie<o:p></o:p></p><p class=MsoPlainText>Technical Team<o:p></o:p></p><p class=MsoPlainText>___<o:p></o:p></p><p class=MsoPlainText>Nagios Enterprises, LLC<o:p></o:p></p><p class=MsoPlainText>Email:  <a href="mailto:mguthrie@nagios.com"><span style='color:windowtext;text-decoration:none'>mguthrie@nagios.com</span></a><o:p></o:p></p><p class=MsoPlainText>Web:    <a href="http://www.nagios.com"><span style='color:windowtext;text-decoration:none'>www.nagios.com</span></a><o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p></div></body></html>