June 25, 201511 yr Hi all, I've put together an SNMP plugin based on some plgs I found. This is my first plugin and I'd like some feedback if anyone has a few minutes to look at it. (Is there any documentation anywhere?) In particular, I'm concerned about installing then removing prerequisites. What if some other plugin installs perl as a shared prereq, then this plugin uninstalls it during removal, breaking that plugin? See snmp.plg here: https://raw.githubusercontent.com/coppit/unraid-snmp/master/snmp.plg
June 25, 201511 yr (Is there any documentation anywhere?) http://lime-technology.com/forum/index.php?topic=34970.0
June 25, 201511 yr Hi all, I've put together an SNMP plugin based on some plgs I found. This is my first plugin and I'd like some feedback if anyone has a few minutes to look at it. (Is there any documentation anywhere?) In particular, I'm concerned about installing then removing prerequisites. What if some other plugin installs perl as a shared prereq, then this plugin uninstalls it during removal, breaking that plugin? See snmp.plg here: https://raw.githubusercontent.com/coppit/unraid-snmp/master/snmp.plg I read a bit about SNMP and it looks interesting, installed your plugin to see if it works (someone has got to right - you wanted testers!) No idea how to use it, but no matter. Only thing that did occur to me is that it pulls the packages from slackware-current, at the moment this works but if the Slackware version gets updated before Unraid, could that lead to problems? I wondered whether it would be better to pull from http://mirrors.slackware.com/slackware/slackware64-14.1/ I had the same thought when I was trying to create the MediaBuilds and was preparing the wiki entry but in the end gfjardim kindly gave me a script so it became a non-issue. I'm no expert so it might be better to wait for someone who actually knows to chip in.. Good luck with the plugin mate. EDIT: Just checked the script that gfjardim gave to me, I mean, I think we can all agree he knows what he's doing right? He pulls from the static 14.1 repo not the dynamic current one, so I might have a point.
June 26, 201511 yr Author (Is there any documentation anywhere?) http://lime-technology.com/forum/index.php?topic=34970.0 Better than nothing, but it really needs to be rolled up into a wiki. Post #70 discussed dependency handling, but didn't have an answer to my question. I posted it to the thread. No idea how to use it, but no matter. A good way is to install the "Observium" docker container. It's an orgy of charts and data. Actually, that gives me an idea. I'll run "snmpwalk" to have the plugin test the installation. Hopefully "exit 1" will tell the plugin system that installation failed... He pulls from the static 14.1 repo not the dynamic current one, so I might have a point. Yeah, agreed. I ended up using http://slackbuilds.org/mirror/slackware/slackware64-14.1/slackware64/ because mirrors.slackware.com kept sending me to a dead mirror. I guess I'll put this out there. I can always update it later. Thanks!
Archived
This topic is now archived and is closed to further replies.