<!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.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I've written a perl script that, when called by
nagios like a normal notification command, access to a remote mssql server
updating a database. In the miscommands.cfg I have the following lines for
command definition:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># 'master_host'<BR>define
command{<BR>
command_name
master_host<BR>
command_line /usr/lib/nagios/plugins/master_notify_host.pl
$HOSTNAME$ $HOSTSTATE$ $HOSTADDRESS$ $CONTACTEMAIL$ $NOTIFICATIONTYPE$
"$OUTPUT$" "$DATETIME$"<BR>
}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Everything works fine if I call the
master_notify_host.pl script by hand, even from user "nagios" in a scheduled
cronjob. In nagios.log, it appears that the script has been executed, but it
seems not true :) Plus: I'm not using the nagios embedded perl interpreter, just
normal perl.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Some ideas? This thing is making me become old very
quickly :)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks guys,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Francesco Albrizio<BR>E-mail: <A
href="mailto:francesco.albrizio@init.it">francesco.albrizio@init.it</A><BR>Network
& Security Manager<BR>UNITEAM INIT<BR>InterNetworking & Information
Technology<BR>via Imperia, 2<BR>20142 MILANO<BR>Tel. 02-89546000<BR>Fax.
02-8467832</FONT></DIV></BODY></HTML>