Skip to content

Commit 5ec855a

Browse files
committed
radvd monitoring + requirements update (fürn letzten commit)
1 parent 96c9655 commit 5ec855a

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

check_radvd_gw.py

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env python3
2+
3+
def check_radvd():
4+
from common import pinit
5+
6+
photon, settings = pinit('check_radvd', verbose=True)
7+
8+
status = photon.m(
9+
'testing for radvd',
10+
cmdd=dict(
11+
cmd='sudo service radvd status',
12+
),
13+
critical=False
14+
)
15+
16+
if status.get('returncode') != 0:
17+
photon.m(
18+
'(re) starting radvd',
19+
cmdd=dict(
20+
cmd='sudo service radvd start'
21+
),
22+
critical=False
23+
)
24+
else:
25+
photon.m('radvd is running')
26+
27+
if __name__ == '__main__':
28+
check_radvd()

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
photon_core>=0.4a7
1+
photon_core>=0.4a9

0 commit comments

Comments
 (0)