Continuing with my issue reported here now I can send shell-script events directly to google calendar, I made a script to execute as scheduled, it follows sms.sh file strong> below
#!/bin/bash
let oneminf='date +%s'+600
dateonemin='date -d @$oneminf +%R'
gcalcli --calendar 'zabbix' --title "$3" --when $dateonemin --reminder '1m sms' --where '' --descr '' --duration 1 add > /dev/null 2>&1 >> /tmp/zabbix_server.log
This script has been compiled based on this link
a>
When I run it, the shell directs it to the calendar
$/etc/zabbix/scripts/sms.sh "[parametroZabbix]:PROBLEM"
But when the zabbix program triggers the trigger that calls this file sms.sh it gives me an exit message like this:
Sign in with your Google Account
[avatar_2x]
Email [ ] Password [ ] [Sign in] Need
help?
Create an account
One Google Account for everything Google
[logo_strip_2x]
⢠Google
⢠Privacy
⢠Terms
I have already done the $ gcalcli schedule --noauth_local_webserver with the user zabbix which is the user running the application, / p>