change option to pid_file rather than pid_dir, change default to /var/run/nagios-api/nagios-api.pid