Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
22.1 Legacy Series
»
OPNsense Plugin's Directory
« previous
next »
Print
Pages: [
1
]
Author
Topic: OPNsense Plugin's Directory (Read 4014 times)
HRT
Newbie
Posts: 6
Karma: 0
OPNsense Plugin's Directory
«
on:
April 25, 2022, 02:19:54 pm »
I've recently moved to opnsense and installed a plugin @zabbix proxy.
In gui it shows installed. I need to replace the plugin with custom one. Where the plugins will be installed ? Directory ?
Logged
Patrick M. Hausen
Hero Member
Posts: 6820
Karma: 572
Re: OPNsense Plugin's Directory
«
Reply #1 on:
April 25, 2022, 02:33:45 pm »
There is no single specific directory. Files are installed over various directories, e.g. a subdirectory of /usr/local/etc for configuration, a subdirectory of /usr/local/bin|sbin|lib for the programs themselves, a subdirectory of /usr/local/www for the web UI, ...
Where will you be getting the replacement plugin and by which method do you intend to install it?
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
HRT
Newbie
Posts: 6
Karma: 0
Re: OPNsense Plugin's Directory
«
Reply #2 on:
April 25, 2022, 02:39:51 pm »
Need to Enable Remote Commands to Zabbix Proxy.
I've gone through the git repo of opnsense plugins and i was able to find one discussion listed with the above requirement.
I need to implement it. How can i?
Logged
Patrick M. Hausen
Hero Member
Posts: 6820
Karma: 572
Re: OPNsense Plugin's Directory
«
Reply #3 on:
April 25, 2022, 02:46:40 pm »
Clone the git repo, change the code, place changed files on your OPNsense.
After successful test submit pull request on github.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: OPNsense Plugin's Directory
«
Reply #4 on:
April 25, 2022, 02:49:17 pm »
Sounds like this PR?
https://github.com/opnsense/plugins/pull/2948
Cheers,
Franco
Logged
HRT
Newbie
Posts: 6
Karma: 0
Re: OPNsense Plugin's Directory
«
Reply #5 on:
April 25, 2022, 02:57:57 pm »
May i know at which location i have to change the files...?
Logged
Patrick M. Hausen
Hero Member
Posts: 6820
Karma: 572
Re: OPNsense Plugin's Directory
«
Reply #6 on:
April 25, 2022, 03:24:49 pm »
https://github.com/opnsense/plugins/pull/2948/files#diff-7f112c548797ddedd1b387794c70fd4865461a0f78e8d9ea95a4d785aa9b9b59
/usr/local/opnsense/mvc/app/controllers/OPNsense/Zabbixproxy/forms/general.xml
/usr/local/opnsense/mvc/app/models/OPNsense/Zabbixproxy/General.xml
/usr/local/opnsense/service/templates/OPNsense/Zabbixproxy/zabbix_proxy.conf
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
HRT
Newbie
Posts: 6
Karma: 0
Re: OPNsense Plugin's Directory
«
Reply #7 on:
April 26, 2022, 04:04:57 pm »
Hi Thank you,
I have followed the steps given, however when i try to enable remote command in the GUI checkbox. that is not getting updated in the config file (/usr/local/etc/zabbix54/zabbix_proxy.conf) after saving the changes.
Referring to github repo PR (
https://github.com/opnsense/plugins/pull/2948/files#diff-194afe380850a86a231662054b63e0e216973863449d7e4a0dec3b14452d6ecc
) the plugin version suppose to be 1.8v, still we are seeing it as 1.7v. Will that be an issue....?
Logged
Patrick M. Hausen
Hero Member
Posts: 6820
Karma: 572
Re: OPNsense Plugin's Directory
«
Reply #8 on:
April 26, 2022, 04:18:43 pm »
Did you patch all three files, most importantly the template?
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
HRT
Newbie
Posts: 6
Karma: 0
Re: OPNsense Plugin's Directory
«
Reply #9 on:
April 26, 2022, 04:59:55 pm »
I've patched all the three files. After patching, im able to see EnableRemoteCommand checkbox on GUI but unable to execute remote commands.
Is there any way to fix this issue....?
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: OPNsense Plugin's Directory
«
Reply #10 on:
April 26, 2022, 05:00:57 pm »
If only there was an opnsense-patch command to do all this for you
Cheers,
Franco
Logged
HRT
Newbie
Posts: 6
Karma: 0
Re: OPNsense Plugin's Directory
«
Reply #11 on:
April 27, 2022, 04:12:19 pm »
I've tried patch the files. There was an issue in the zabbix_proxy.conf file which i tried to from github pr (
https://github.com/opnsense/plugins/pull/2948
).
Finally i was able to figure it out. For reference
https://github.com/opnsense/plugins/pull/2948#issuecomment-1111046866
Thanks to all
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
22.1 Legacy Series
»
OPNsense Plugin's Directory