Troubleshooting and maintenance of generator