I have a stitch that sends an email notification once my last action (backup command) has finished, i'm using %%results%% parameter in email body to include the result from my last action.
This is my stitch:
This is email action config:
And i´m getting something like this in the email:
########## script name: autod.11 ########## ========== #1, 2022-10-08 04:00:22 ========== Fortigate_1 $ execute backup full-config sftp /path/filename.conf X.X.X.X:22 username password Please wait... Connect to sftp server X.X.X.X:22 ... Please wait... Connect to sftp server X.X.X.X:22 ... Send config file to sftp server OK.
¿Is there a way to just add the results and not the command itself in the email? I don´t want to show in email notification the username and password used to run the backup.
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
Simply put: no.
But I think you can create a separate notification script based on the log entry associated to config backup. Something like:
Automation 1 > Backup config via script (sftp).
System log generated > check log ID
Log ID > trigger for Automation 2 > "send email"
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1679 | |
1085 | |
752 | |
446 | |
226 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.