I figured it out. Quite simple actually and works great, Here's my steps:
1.) Download CustomURL <http://customurl.codeplex.com/> 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). 2.) 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): <a href="ping://$HOSTADDRESS$">ping</a> <a href="telnet://$HOSTADDRESS$">telnet</a> <a href="ssh://$HOSTADDRESS$">ssh</a> 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. Example: define host { name critical check_command check-host-alive max_check_attempts 1 check_interval 1 retry_interval 1 check_period 24x7 contact_groups admins notification_interval 30 notification_period 24x7 notification_options d,u,r,f,s notes <a href="ping://$HOSTADDRESS$">ping</a> <a href="telnet://$HOSTADDRESS$">telnet</a> <a href="ssh://$HOSTADDRESS$">ssh</a> register 0 } Maybe this will help someone. Cheers... -Will From: Will Bashlor [mailto:wbash...@atcnetworks.net] Sent: Monday, October 22, 2012 9:20 PM To: Nagios Users List Subject: Re: [Nagios-users] ping, telnet, ssh, from nagios-core website Using CustomURL <http://customurl.codeplex.com/> I can get telnet, ssh, and ping -t working using action_url with no problem. It works great! 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. 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... -Will From: Will Bashlor [mailto:wbash...@atcnetworks.net] Sent: Monday, October 22, 2012 6:14 PM To: mguth...@nagios.com; Nagios Users List Subject: Re: [Nagios-users] ping, telnet, ssh, from nagios-core website Thanks Mike. If macro's can be used in action_urls I think I can get it to work with CustomURL <http://customurl.codeplex.com/> . 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. -Will -----Original Message----- From: Mike Guthrie [mailto:mguth...@nagios.com] Sent: Monday, October 22, 2012 4:40 PM To: Nagios Users List Subject: Re: [Nagios-users] ping, telnet, ssh, from nagios-core website 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. To my knowledge you can't use a browser to access ssh, ping, telnet etc. You'd need some sort of a custom API to be able to run those commands for you from the command line. Nagios XI (commercial version of Nagios) does have some of these quick actions. Image is attached. On 10/22/2012 3:28 PM, Will Bashlor wrote: > Hi List, > > I want to be able to click on an icon or link on the Nagios core website > and ping, telnet, ssh, etc. to each host. What's the easiest way to > accomplish this? I've researched and haven't found much that's solid. > > I've seen the action_url. Seems like that may work if I modify how > windows responds to certain urls, (i.e. CustomURL) like ping://, > telnet:// <telnet://> , ssh://, etc. I'm not sure how it would handle $HOSTADDRESS$, > or I guess that would be translated by Nagios? And I think I'm limited > to 1 action_url? > > Then I read something about using notes...? I'm not sure about that one. > > Someone also mentioned Nagios var? I'm not a programmer. > > I would even be happy with a windows Nagios app is I had to, but would > rather it be within the website. > > This is a basic function of most commercial monitoring tools, hopefully > there's an easy way. > > Thoughts anyone? Thanks in advance. > > -Will > > > ------------------------------------------------------------------------ ------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct <http://p.sf.net/sfu/appdyn_sfd2d_oct> > _______________________________________________ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net <mailto:Nagios-users@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/nagios-users <https://lists.sourceforge.net/lists/listinfo/nagios-users> > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Mike Guthrie Technical Team ___ Nagios Enterprises, LLC Email: mguth...@nagios.com <mailto:mguth...@nagios.com> Web: www.nagios.com <http://www.nagios.com>
<<image001.png>>
------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null