Ad Widget

Collapse

Media Types script parameters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • svalencia
    Junior Member
    • Jun 2020
    • 11

    #1

    Media Types script parameters

    Hello, I have the following problem, when passing parameters to my script, zabbix places a single quote and not a double quote, this makes my script not run.

    zabbix_server.log
    1152:20200923:225459.007 Failed to execute command "/usr/lib/zabbix/alertscripts/whatsapp.sh '50767828931' 'Test subject' 'This is the test message from Zabbix'": Timeout while executing a shell script.
    Attached Files
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    While it's true that on UNIX and Linux there are important differences between how a Bourne-like shell handles single-quoted arguments vs. how it handles double-quoted arguments, there's nothing in the log message you show that suggests to me the problem is quoting. My guess is the problem is somewhere else.

    Comment

    • svalencia
      Junior Member
      • Jun 2020
      • 11

      #3
      You are absolutely right, I already solved it, I was misplacing the phone number due to fatigue

      Comment


      • tim.mooney
        tim.mooney commented
        Editing a comment
        Glad you got it solved and that you followed up and confirmed the issue wasn't quoting!
    Working...