Facilitor Scripts

Facilitor Scripts

1.Add a script to the script-pool
2.Add a monitor to a facility and choose your script-identifier for this monitor
Scripts are standard shellscripts which will be executed from /tmp at runtime Your script should return a single "Float-String-Value" which facilitor will interpret.
Example
The script
#!/bin/bash
#Facilitor script
df -h | grep /dev/disk0s2|awk "{ print \$3;}" |sed "s/G//g" |sed "s/M//g"
The script calls df (diskfree) and filters the value for device /dev/disk0s2. Only the value-string (eg 120 for 120G) will be returned.
Implementing



That's it