<!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.2802" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=473145112-05042006><FONT face=Arial 
color=#0000ff size=2>I am using NSClient ...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=473145112-05042006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=473145112-05042006><FONT face=Arial 
color=#0000ff size=2>Marco</FONT></SPAN></DIV><BR>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=it dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>Da:</B> Toto Capuccino [mailto:shoktai@gmail.com] 
  <BR><B>Inviato:</B> mercoledì 5 aprile 2006 12.52<BR><B>A:</B> Marco 
  Borsani<BR><B>Cc:</B> NAGIOS<BR><B>Oggetto:</B> Re: R: [Nagios-users] start a 
  script automatically<BR></FONT><BR></DIV>
  <DIV></DIV>Just write sc4ripts in whenever languages you feel happy with and 
  then use nrpe to execute them on the Win host.<BR><BR>
  <DIV><SPAN class=gmail_quote>2006/4/5, Marco Borsani <<A 
  href="mailto:m.borsani@it.net">m.borsani@it.net </A>>:</SPAN>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Well, 
    now it is working correclty!<BR>There was a network problem between the 
    hosts. <BR><BR>I still have to know how to run a command with the Event 
    Handler on a<BR>Windows 2003 server.<BR>Moreover, will I have any 
    authentication problems?<BR>Any 
    idea?<BR><BR>Regards.<BR>Marco<BR><BR>-}-----Messaggio originale----- 
    <BR>-}Da: <A 
    href="mailto:nagios-users-admin@lists.sourceforge.net">nagios-users-admin@lists.sourceforge.net</A><BR>-}[mailto:<A 
    href="mailto:nagios-users-admin@lists.sourceforge.net">nagios-users-admin@lists.sourceforge.net 
    </A>] Per conto<BR>-}di Marco Borsani<BR>-}Inviato: mercoledì 5 aprile 2006 
    9.59<BR>-}A: 'Marc Powell'<BR>-}Cc: 'NAGIOS'<BR>-}Oggetto: R: [Nagios-users] 
    start a script automatically<BR>-}<BR>-}<BR>-}-}Marc 
    wrote:<BR>-}-}<BR>-}-}Not without the rest of the error that you chopped 
    off.<BR>-}-}What's the '....' part? That's probably the most useful 
    bit<BR>-}-}of information. You've been on the list long enough to 
    know<BR>-}-}we need more information than that 
    <BR>-}-};)<BR>-}<BR>-}Complete message is:<BR>-}Warning: Attempting to 
    execute the 
    command<BR>-}"/usr/local/nagios/libexec/eventhandlers/restart-http<BR>-}$SERVICESTATE$ 
    $STATETYPE$ $SERVICEATTEMPT$"<BR>-}<BR>-}I see restart-http script on the 
    manual (in the "event <BR>-}handlers" chapter) and copy it to test and 
    understand how<BR>-}event handlers work.<BR>-}<BR>-}-}<BR>-}-}Can you run 
    restart-http as the nagios user? Show us the<BR>-}-}command and service 
    definition. Verify that you're using <BR>-}full -}paths for commands used 
    within restart-http. Detail<BR>-}what -}restart-http is doing 
    specifically.<BR>-}-}<BR>-}<BR>-}# 'restart-http' command 
    definition<BR>-}define 
    command{<BR>-}        command_name    restart-http 
    <BR>-}        command_line<BR>-}/usr/local/nagios/libexec/eventhandlers/restart-http<BR>-}$SERVICESTATE$ 
    $STATETYPE$ 
    $SERVICEATTEMPT$<BR>-}        }<BR>-}<BR>-}One 
    problem could be "where" define restart-http command. <BR>-}Yesterday I put 
    it in the checkcommands.cfg file, today I am<BR>-}defined it in the 
    misccommands.cfg.<BR>-}Another one is how to restart the httpd (in this 
    case) like<BR>-}nagios user (the manual mentions this possibility, but no 
    <BR>-}ideas are given to solve it).<BR>-}Again, if I would run a command on 
    a Windows 2003 server, how<BR>-}will I do 
    ?<BR>-}<BR>-}Regards<BR>-}Marco<BR>-}<BR>-}<BR>-}<BR>-}------------------------------------------------------- 
    <BR>-}This SF.Net email is sponsored by xPML, a 
    groundbreaking<BR>-}scripting language that extends applications into web 
    and<BR>-}mobile media. Attend the live webcast and join the 
    prime<BR>-}developer group breaking into this new coding territory! 
    <BR>-}http://sel.as-<A 
    href="http://us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&">us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&</A><BR>-}dat=121642<BR>-}_______________________________________________ 
    <BR>-}Nagios-users mailing list<BR>-}Nagios-<A 
    href="mailto:users@lists.sourceforge.net">users@lists.sourceforge.net</A><BR>-}https://lists.sourceforge.net/lists/listinfo/nagios-users<BR>-}::: 
    Please include Nagios version, plugin version (-v) and OS <BR>-}when 
    reporting any issue.<BR>-}::: Messages without supporting info will risk 
    being sent to 
    /dev/null<BR>-}<BR><BR><BR><BR>-------------------------------------------------------<BR>This 
    SF.Net email is sponsored by xPML, a groundbreaking scripting language 
    <BR>that extends applications into web and mobile media. Attend the live 
    webcast<BR>and join the prime developer group breaking into this new coding 
    territory!<BR><A 
    href="http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642">http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642</A><BR>_______________________________________________<BR>Nagios-users 
    mailing list<BR><A 
    href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net 
    </A><BR><A 
    href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A><BR>::: 
    Please include Nagios version, plugin version (-v) and OS when reporting any 
    issue. <BR>::: Messages without supporting info will risk being sent to 
    /dev/null<BR></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- <BR>Le bon sens est 
  la chose du monde la mieux partagée. </BLOCKQUOTE></BODY></HTML>