The main reasons of Agave turning yellow are as follows
1.Due to overwatering or less watering to plant.
2.plant does not get proper sunlight.
3.Lack of Nutrient.
4.Disease infestation.