Ad Widget

Collapse

TERM environment variable not set

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dragan979
    Member
    • Apr 2018
    • 49

    #1

    TERM environment variable not set

    i have this script:

    Code:
    #!/bin/bash
    
    pwsh /usr/lib/zabbix/externalscripts/1.ps1
    output:
    Code:
    All services are working properly

    Code:
    UserParameter=status.azure,/lib/zabbix/externalscripts/1.sh

    I'm getting this desired output in Zabbix but also get line TERM environment variable not set


    Code:
    set | grep TERM
    TERM=xterm-256color
        case "${TERM:-dumb}" in
            _rvm_old_traps=$( __rvm_grep -E 'EXIT|HUP|INT|QUIT|TERM' <(trap) );
            trap '__rvm_teardown_final ; set +x' EXIT HUP INT QUIT TERM;
            trap - EXIT HUP INT QUIT TERM;
                case "${TERM:-dumb}" in

    TERM environment variable not set.



    All services are working properly


  • dragan979
    Member
    • Apr 2018
    • 49

    #2
    Solved it by exporting results to text file and then reading file content from same file

    Comment

    Working...