So basicly i can do a define such as:
define command {
command_name event-handler-name-goes-here
command_line script1 /folder/script.sh $HOSTNAME$
}
And when executing the code have a line like this
python script.py $HOSTNAME$
So basicly i can do a define such as:
define command {
command_name event-handler-name-goes-here
command_line script1 /folder/script.sh $HOSTNAME$
}
And when executing the code have a line like this
python script.py $HOSTNAME$