15 lines
310 B
Python
15 lines
310 B
Python
|
|
||
|
import os
|
||
|
|
||
|
class Managed:
|
||
|
interval = 60;
|
||
|
loopCount = 100
|
||
|
def __init__(self, exporter):
|
||
|
self.exporter = exporter
|
||
|
|
||
|
def run(self):
|
||
|
if os.path.isfile('/opt/ansible-managed'):
|
||
|
self.exporter.gauge("managed", 1)
|
||
|
else:
|
||
|
self.exporter.gauge("managed", 0)
|