Skip to content
Snippets Groups Projects
Commit f4c9198b authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Warn if a machine isn't categorised as Maskiner_i_drift.

parent 9a9cc652
No related branches found
No related tags found
No related merge requests found
......@@ -54,9 +54,14 @@ def check_host(hostname):
if not csub.findNext(attrs={"href": nagios_url(hostname)}):
warning(hostname, "Nagios link missing")
if redirected_from is None and not csub.findNext(attrs={"id": "LysINV"}):
if redirected_from is None:
if not csub.findNext(attrs={"id": "LysINV"}):
warning(hostname, "LysINV link missing")
if not csub.findNext("a", attrs={
"href": "/index.php/Kategori:Maskiner_i_drift"}):
warning(hostname, "Not categorised as Maskiner_i_drift")
ok(hostname, "all ok")
def check_host_locked(hostname):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment