MonitorFogStorage.sh Community Script
-
@Wayne-Workman I am getting this output when running the cronjob…
/root/git/community-scripts/MonitorFogStorageNodes/MonitorNodes.sh: line 29: [[: command not found /root/git/community-scripts/MonitorFogStorageNodes/MonitorNodes.sh: line 32: [[: command not found /root/git/community-scripts/MonitorFogStorageNodes/MonitorNodes.sh: line 35: [[: command not found
I am running Centos 7
-
@greg-plamondon Run it like
./blah
instead ofsh blah
-
-
@greg-plamondon The script only has two commits. The second commit adds a shebang. Your copy of the community scripts is very outdated I believe - since that commit was pushed in 2016:
https://github.com/FOGProject/fog-community-scripts/commits/master/MonitorFogStorageNodes/MonitorNodes.sh
I imagine if you pull the latest, it’ll work fine. -
@wayne-workman
I think i am on the latest…[root@10fogserver community-scripts]# git log -1 commit 081a1ff34c09288019bdfd2cdb5e353a92841a18 Merge: 69fd5cd 45d46f7 Author: wayneworkman <13314799+wayneworkman@users.noreply.github.com> Date: Sat Feb 3 09:02:12 2018 -0600 Merge pull request #31 from wayneworkman/master Additions and changes [root@10fogserver community-scripts]#
-
@greg-plamondon Pull and try again. I think it was a spacing problem.
-
@wayne-workman
That Worked![root@10fogserver MonitorFogStorageNodes]# git log -1 commit bb920e4367b5076ac2bb7bb70575ec4b647d5aee Author: wayneworkman <13314799+wayneworkman@users.noreply.github.com> Date: Wed Feb 21 13:53:10 2018 -0600 Fix spacing in evaluations [root@10fogserver MonitorFogStorageNodes]# ./MonitorNodes.sh [root@10fogserver MonitorFogStorageNodes]#
Thanks @Wayne-Workman