Eigenvalues[{{a,0,b},{0,0,0},{b,0,a}}]