oetiker/SmokePing

Create custom access to specific menu.

Closed this issue · 2 comments

Hi guys,
Is it possible to provide access to specific menu on my smokeping ?
I need to grant access to some user to see only a few graphs.
Any idea ?
Embedded content section in other web perhaps ?
Regards.

Im trying creating a second .conf file at my apache server si I can browse an alternative url.
Currently im browsing: http://172.30.6.100/smokeping/smokeping.cgi.
The idea is to create another link like:
http://172.30.6.100/smokeping/smokeping_external.cgi
And force cgi script to use an alternative config file with allowed tarjets.
So....
I created another .conf file like:

[root@smokeping ~]# cat /etc/httpd/conf.d/smokeping_external.conf
ScriptAlias /smokeping/smokeping_external.cgi /opt/smokeping/htdocs/smokeping_external.fcgi.dist
Alias /smokeping_external /opt/smokeping/htdocs_external
<Directory "/opt/smokeping/htdocs_external">
Options FollowSymLinks
Require all granted
</Directory>

Then I cp the /opt/smokeping/htdocs to /opt/smokeping/htdocs_external and and rename the /smokeping.fcgi.dist to /smokeping_external.fcgi.dist.

then , inside /smokeping_itx.external.dist I chaged:
line:
exec /opt/smokeping/bin/smokeping_cgi /opt/smokeping/etc/config for
exec /opt/smokeping/bin/smokeping_cgi /opt/smokeping/etc/config_external.

So .. in this config_external, I will keep only permited targets.
ok ... but this is not workin.
After browsing to [serverip]/smokeping/smokeping_external.cgi
I got : The requested URL /smokeping/smokeping_external.cgi was not found on this server.
Any idea ??

This issue has become stale and will be closed automatically within 7 days. Comment on the issue to keep it alive.