Writing custom Nagios Core management scripts