Error : checking disk

I am trying to monitor fortigate disk but it will through the error like “CRITICAL: Error writing on /var/spool/nagios/ramdisk/FortiSerial directory, permission denied” the command I am running is ./check_fortigate.pl -H fortigate_firewall -C community -T disk