You may have a problem with the NATS (Nissan Anti Theft System). Check the Security LED - with doors unlocked, the LED should be blinking every second (DISARMED state). Close and lock all doors (+ hood and trunk). The system goes into PRE-ARMED state (while checking the sensors) and the LED remains ON for @ 30 seconds. If internal test is good (door sensors, etc) the system goes into ARMED state where the LED blinks every 2.4 seconds.
You can refer to the attached link, starting on page EL-281 for NATS diagram and diagnostic.
http://www.nicoclub.com/FSM/maxima/2000/el.pdf