FreePBX reboots, how do I find culprit?

We have a custom FreePBX installed on a desktop computer enclosure with 2 NIC’s (1 for PUBLIC and 1 for PRIVATE)

System has worked fine for 6 months until recently, it reboots every day when log rotations happens at 4 AM and sometimes randomly during the day. We have also had times where we loose connection with the PBX and we cannot ping either the private or the public ports so we have to end up resetting it.

What log files can I check or share with you so we can tell why this is happening?

The usual culprits:

/var/log/messages
/var/log/asterisk/full

Check your file systems with ‘df’.

Thanks for the reply cynjut I have looked in both and one thing stands out, a USB mouse is constantly connecting/disconnecting I do not know if this is because of a worn out usb connector or if its indicative of a internal hardware fault.

Jul 11 19:16:24 209-255-173-186 kernel: input: PixArt USB Optical Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/input/input256
Jul 11 19:16:24 209-255-173-186 kernel: generic-usb 0003:17EF:602E.00F7: input,hidraw2: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-0000:00:14.0-8/input0
Jul 11 19:17:24 209-255-173-186 kernel: usb 1-8: USB disconnect, device number 126
Jul 11 19:17:26 209-255-173-186 kernel: usb 1-8: new low speed USB device number 127 using xhci_hcd
Jul 11 19:17:26 209-255-173-186 kernel: usb 1-8: New USB device found, idVendor=17ef, idProduct=602e
Jul 11 19:17:26 209-255-173-186 kernel: usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jul 11 19:17:26 209-255-173-186 kernel: usb 1-8: Product: USB Optical Mouse
Jul 11 19:17:26 209-255-173-186 kernel: usb 1-8: Manufacturer: PixArt
Jul 11 19:17:26 209-255-173-186 kernel: usb 1-8: configuration #1 chosen from 1 choice
Jul 11 19:17:26 209-255-173-186 kernel: usb 1-8: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes

I have disconnected the mouse and keyboard to see if issue still persists.

Can anybody tell me if this error is normal, we have the UPS Server feature disabled and I get this in messages

Jul 12 04:10:52 209-255-173-186 apcupsd[1792]: apcupsd FATAL ERROR in smartsetup.c at line 172#012PANIC! Cannot communicate with UPS via serial port.#012Please make sure the port specified on the DEVICE directive is correct,#012and that your cable specification on the UPSCABLE directive is correct.
Jul 12 04:10:52 209-255-173-186 apcupsd[1792]: apcupsd error shutdown completed

No, it’s not normal. Do you have the Syadmin Pro?

If so, disable the UPS automatic shutdown. If not, log in to the console as ‘root’ and use the command “chkconfig upcupsd off”. That should turn the UPS daemon off.

One last note - if it’s already turned off, I’d start looking for a new motherboard. Your USB ports are acting a little fried.

It said it was disabled in the GUI but according to the log this apparently was not the case, I have now disabled it as per your instructions lets see if this fixes it (unplugging mouse did not)