To delete agents that have never reported data to Pandora FMS you have to start from 2 assumptions:
- The agent was created and no module was ever created in it.
- The agent has modules created in “not initialized” state.
For them it would be worthwhile to launch the next query through MySQL:
[root@pandora ~]# mysql -u root -p pandora mysql> delete from tagente where notinit_count=total_count;
The query looks for the total number of modules of the agent to coincide with the number of modules not initialized, if this condition is given it is valid for the 2 cases previously exposed.