<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.5659" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Sorry if this in the docs or FAQ - I
didn't see it if it is.</FONT></DIV>
<DIV><FONT face=Arial size=2>I'm running nagios 3.0.6 and 1.4.13
plugins.</FONT></DIV>
<DIV><FONT face=Arial size=2>I want to have a URL in the email host notification
that would allow me to connect to an Avocent KVM switch. This is what I
have for the host definition:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>define
host{<BR> use
generic-host<BR>
host_name
dbtest<BR> alias
dbtest<BR> contact_groups
buildpeople<BR>
action_url <A
href="https://kvmswitch/cgi-bin/kvm.cgi?&file=overview-dsr&userID=1326154034&index=25">https://kvmswitch/cgi-bin/kvm.cgi?&file=overview-dsr&userID=1326154034&index=25</A></FONT></DIV>
<DIV><FONT face=Arial size=2>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This URL works fine if you use it directly in a
browser. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I changed the notify-host-by-email command to
include action_url via $HOSTACTIONURL$:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># 'notify-host-by-email' command
definition<BR>define command{<BR>
command_name
notify-host-by-email<BR>
command_line /usr/bin/printf "%b" "***** Nagios
*****\n\nNotification Type: $NO<BR>TIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
$HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOST<BR>OUTPUT$\n\nDate/Time:
$LONGDATETIME$\nKVM URL: $HOSTACTIONURL$\n" | /bin/mail -s "**
$NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **"
$CONTACTEMAIL$<BR> }<BR></DIV>
<DIV><BR>But the resulting email message seems to have lost all but
the first "&" character, so the URL now looks like:</DIV>
<DIV> </DIV>
<DIV>KVM URL: <A
href="https://kvmswitch/cgi-bin/kvm.cgi?file=overview-dsruserID=1326154034index=25">https://kvmswitch/cgi-bin/kvm.cgi?file=overview-dsruserID=1326154034index=25</A></DIV>
<DIV> </DIV>
<DIV>What am I missing here? I see others posting examples of URLs with
arguements, which implies that they are working for them.</DIV>
<DIV>thanks</DIV>
<DIV>-e</DIV>
<DIV> </DIV></FONT></BODY></HTML>