1. Home
  2. Knowledge Base
  3. Articles (EN/ES/FR)
  4. How to delete all the Pandora FMS agents that have never reported data to the server?

How to delete all the Pandora FMS agents that have never reported data to the server?

To delete agents that have never reported data to Pandora FMS you have to start from 2 assumptions:

  1. The agent was created and no module was ever created in it.
  2. 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.

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support

Recent Discussions