[monitord] fix compiler warnings