Package zephir :: Package monitor :: Package agents :: Module rvp :: Class RvpSphynx
[hide private]
[frames] | no frames]

Class RvpSphynx

source code

agentmanager.agent.AgentData --+        
                               |        
        agentmanager.agent.Agent --+    
                                   |    
         agentmanager.agent.RRDAgent --+
                                       |
                                      RvpSphynx

Instance Methods [hide private]
 
measure(self)
Prend concrètement une mesure.
source code
 
callback_tunnels(self, response) source code
 
errback_tunnels(self, err) source code
 
check_status(self)
Renvoie le diagnostic de fonctionnement de l'agent.
source code

Inherited from agentmanager.agent.RRDAgent: __init__, init_data, save_measure, write_data

Inherited from agentmanager.agent.Agent: archive, ensure_data_uptodate, ensure_datadirs, handle_measure_exception, reset_max_status, scheduled_measure, set_status, update_status

Class Methods [hide private]

Inherited from agentmanager.agent.AgentData: from_agent, from_archive

Class Variables [hide private]
  pourcentok = 100
Method Details [hide private]

measure(self)

source code 

Prend concrètement une mesure.

Pour implémenter un agent, il faut implémenter au moins cette méthode.
Returns:
Résultat de la mesure, un dictionnaire {champ: valeur} ou un objet twisted.internet.defer.Deferred renvoyant ce dictionnaire.
Overrides: agentmanager.agent.Agent.measure
(inherited documentation)

check_status(self)

source code 

Renvoie le diagnostic de fonctionnement de l'agent.

L'implémentation par défaut dans Agent renvoie un statut neutre. Les agents concrets doivent donc redéfinir cette méthode pour annoncer un diagnostic utile.
Overrides: agentmanager.agent.Agent.check_status
(inherited documentation)