[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Organize by group?
From: |
Petra Humann |
Subject: |
Re: Organize by group? |
Date: |
Tue, 31 Jan 2017 14:15:41 +0100 |
Hello,
> Am 30.01.2017 um 21:14 schrieb David Reagan <address@hidden>:
>
> Is there a way to organize the web interface by group? Or something else that
> obtains the same effect.
I have a php webpage like that:
<html>
<head>head lines from the original monit service manager webpage</head
<body>
<?php
// lines for monit host1
$lines=file_get_contents("https://my_apache_host/host1/");
preg_match('/<center>.*<\/center>/',$lines,$treffer);
print str_replace("href='",“href='/host1/",$treffer[0]); // adjust to match
the URLs and print out
echo "\n“;
// lines for monit host2
….
?>
<div footer line from the original monit service manager webpage</div>
</body>
</html>
The monit webpage for host1 is configured in apache2 as a proxy:
ProxyPass /host1/ http://host1:2812/
ProxyPassReverse /host1/ http://host1:2812/
<Location /host1/>
Require ip ...
AuthName "Monitor"
AuthType Basic
AuthBasicProvider file
AuthUserFile "..."
require valid-user
</Location>
Kind regards.
Petra Humann