Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Update for PDF export

...

Script example using Zabbix software:

...


Div

...

class

...

small

#!/bin/sh

...


#-------------------------------------------------------------------------------

...


#

...

charon_expchk.custom

...


#-------------------------------------------------------------------------------

...


ZABSEND=/usr/bin/zabbix_sender

...


ZABCONF=/etc/zabbix/zabbix_agentd.conf

...

if

...

test

...

-x

...

${ZABSEND}

...


then
  if test -s

...

${ZABCONF}

...


  then
    case "$1"

...


    in
      Informational) LVL="INFORMATION";;

...


      Minor) LVL="WARNING";;

...


      MAJOR) LVL="AVERAGE";;

...


      CRITICAL) LVL="HIGH";;

...


      EXPIRED) LVL="DISASTER";;

...


      *) LVL="NEUTRAL";;

...


    esac
    ${ZABSEND}

...

-c

...

${ZABCONF}

...

-k

...

charon_expchk

...

-o

...

"${LVL};$2"

...

>/dev/null

...


  else
    echo "The

...

Zabbix

...

agent

...

configuration

...

file

...

is

...

missing.

...

Cannot

...

send

...

alert!"

...


  fi
fi


Include Page
KBCOMMON:DOC-GoToToc
KBCOMMON:DOC-GoToToc