The utility model relates to the related technical field of drainage channels, in particular to an automatic electrical cabinet with an alarm function, which comprises an outer box, a support column, an opening and closing door and a
handle, the support column is mounted on the lower surface of the outer box, and the opening and closing door is connected to the surface of one side of the outer box. According to the automatic electrical cabinet with the alarm function, the base, bolts, a monitoring operation panel, an alarm, an alarm bell, a supporting seat, a fire extinguishing
bottle, a protective fence, a connecting
pipe and a fire extinguishing
nozzle are arranged, in order to prevent the fire extinguishing
bottle from turning over, the protective fence is welded to one side of the outer box, and therefore the fire extinguishing
bottle can be fixed and protected; the upper portion of the fire extinguishing bottle is connected with the connecting
pipe, one side of the connecting
pipe is connected with the fire extinguishing
nozzle, when a fire disaster is detected by the monitoring operation panel, the fire extinguishing bottle is started immediately, fire extinguishing is conducted on the interior of the outer box, and an existing alarming electrical cabinet can only give an alarm and cannot extinguish fire automatically.