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
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
Comment