[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: nagios command notify-by-sms non viene eseguito



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alessandro De Zorzi wrote:
> ho però notato che la sigla ePN indica che l'interprete embedded di
> nagios, pensando fosse quello il problema

Prova a definire il tuo commands.cfg in questo modo

command_line /bin/echo "" | /usr/bin/perl /usr/local/bin/sms_send.pl
$CONTACTPAGER$ "$NOTIFICATIONTYPE$: $HOSTNAME$: $SERVICEDESC$ is
$SERVICESTATE$ ($OUTPUT$)"


From:
http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg07202.html

>>> if i run the command manual is
>>> working fine.
>> 
>> Exactly, because what is run by ePN is not what you run.
>> 
>> ePN takes the script and turns it into another script in which the
>> original script is wrapped up as a subroutine (see
>> http://nagios.sourceforge.net/docs/2_0/embeddedperl.html for the gory
>> details).
>> 
>> This subroutine is compiled only once - compared with every time if a
>> shell was forked to run Perl - and the resulting Perl byte code
>> remains in memory as long as Nagios runs (that is why it is such a
>> memory pig).


bye




- --
ɐ-q-ɯ-@-s

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkpBXaQACgkQhRVBzt2pXnz8CwCgjXfbVWSNVlc1N6xfidKc4hg/
rZgAoIfteYjMfVhdUiX3xsvvEgemWzcg
=ueRl
-----END PGP SIGNATURE-----


Reply to: