Scripts Running Directly on devices get stuck
Hi there,
I'm going to monitor the health/status/performance of my fortigate devices using a script I've found online. [1]
It was supposed to execute using SSH/Bash, but as I do have a Fortimanager, I'd like to execute it periodically.
As this script collects some live data, it's required to execute it directly instead against the local database.
I have others scripts working pretty well. For configuring alertemails, timezone and so on. However, they are intended to run agains the database then install the new configuration.
This script that runs directly hangs after 30%.
Checking the log output I can only see config global / end... nothing else. (my 2 devices have vdom enabled)
It's a new environment. Recently erased fortimanager / with 2 800c factory defaults fortigates with vdom enabled (none created)
The script contents that makes it hangs is:
config global execute date execute time get system status
The original script was bigger but, if I've reduced it to just that above to debug.
Everytime that I add this last line it hangs. If I remove it, it runs well.
I've replaced this faulty line for 'get system performance status' but nothing has changed. Still hangs.
I've tried to set system console output to standard but didn't help.
And tried to run just in one device... or the other one.
Any ideas?
1-http://kb.fortinet.com/kb/documentLink.do?externalID=FD34839
Regards,
Fabricio Lima
