Ad Widget

Collapse

zabbix 1.4.2. media type "script" doesn't work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dmitriy Kirhlarov
    Member
    • Jun 2007
    • 40

    #1

    zabbix 1.4.2. media type "script" doesn't work

    Currently I want only check, what zabbix starting my script.
    AlertScriptsPath=/usr/local/libexec/nagios/
    I tried Media Type "script" with and without full path to script.
    Permissions are correct:
    -rwxr-xr-x 1 root wheel 120 Dec 11 19:35 /usr/local/libexec/nagios/gate2sms

    Administration/Notification page show 29 notifications over my script.
    But script dosn't make any output.

    Script is:
    infra# cat /usr/local/libexec/nagios/gate2sms
    #!/bin/sh

    echo $0 > /tmp/gate2sms.out
    echo $@ >> /tmp/gate2sms.out
    while read a
    do
    echo $a >> /tmp/gate2sms.out
    done
  • Dmitriy Kirhlarov
    Member
    • Jun 2007
    • 40

    #2
    It's work. Sorry for noise.

    Comment

    Working...