FG90-G - Reboot email with uptime?

Question ❓

Hi,

I am trying to make an automation on my FG90-G to give me the total uptime when it reboots. I am having issues getting it working. I am using the get system performance status or at least trying to.

Heres the attempt - any help would be great. I have support with Foritgate but i suspect this is so low level i would never get a response.

FortiGate-90G # show system automation-stitch "Fortigate Reboot"

config system automation-stitch

edit "Fortigate Reboot"

set trigger "Fortigate Reboot"

config actions

edit 1

set action "Reboot - Capture Status"

set required enable

next

edit 2

set action "Fortigate Reboot - Email"

set required enable

next

end

next

end

FortiGate-90G # show system automation-trigger "Fortigate Reboot"

config system automation-trigger

edit "Fortigate Reboot"

set description "Fortigate Reboot"

set event-type event-log

set logid 32138

next

end

FortiGate-90G # show system automation-action "Reboot - Capture Status"

config system automation-action

edit "Reboot - Capture Status"

set action-type cli-script

set script "get system performance status"

set accprofile "super_admin"

next

end

FortiGate-90G # show system automation-action "Fortigate Reboot - Email"

config system automation-action

edit "Fortigate Reboot - Email"

set action-type email

set email-to "JD@JD.com"

set email-subject "Reboot Alert: %%log.devname%%"

set message "System rebooted. Detailed CLI Output below:

%%results%%"

next

end

FortiGate-90G #

FortiGate-90G #

Posted May 1, 2026, 9:15 PM UTC

32
Loading comments…