Hello, using simple quotes with the following sentences:

check program checkService_Symantec with path
'/usr/local/KSR/service.sh query "Symantec Antivirus" Rtvscan.exe'
    if status != 0 then exec '/usr/local/KSR/service.sh start
"Symantec Antivirus" Rtvscan.exe'

Generates a core dump:
/etc/monitrc:89: Program does not exist: ''/usr/local/KSR/service.sh
query "Symantec Antivirus" Rtvscan.exe''
/etc/monitrc:89: Program does not exist: ''/usr/local/KSR/service.sh
query "Symantec Antivirus" Rtvscan.exe''
/etc/monitrc:90: Program does not exist: ''/usr/local/KSR/service.sh
start "Symantec Antivirus" Rtvscan.exe''
AssertException: File '/usr/local/KSR/service.sh query "Symantec
Antivirus" Rtvscan.exe' does not exist
 raised in Command_new at src/system/Command.c:352
Aborted (core dumped)

Thanks a lot.

--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to