I've created a script that checks SSL validity of a host (by URL name) and I intended to use it as a module in pandora. I plan on making a few modules that I can easily add to agents. These agents are all websites my company operates and our servers are remote. I need to be able to check on several aspects WITHOUT installing remote agent software. I'm trying to keep as much as possible completely self-contained on the Pandora Server side. Here's my problem: Where on earth do I install my script and how on earth do I add it into the interface? The idea of creating a script for a agent software seems extremely easy, and damn near impossible for remote agents. Why so? It seems like a module should be a module, and some are simply polled by other machines. Where's a .conf file that allows me to declare a module when wanting to make a remote agent module? If I can get this working I hope to create AT LEAST the following modules, and do so better than the ones I'm finding in the module library that usually have zero error handling: SSL: Remaining days before expiration SSL: Boolean of existence WHOIS: Registration Expiration UpCheck: Is the server REALLY up? (pull page info that can't be DNS cached)
Adding Remote Modules
nshobe · 14 abr 2014, 23:55 · 4 mensajes · 82 visitas
- Inicio del debate
Hello To add the script to an agent open the pandora_agent.conf file and add the following line: module_plugin /path_to_the_plugin/plugin_name (execution parameters needed) Then restart the agent and the script will be installed in the agent. Keep in mind that the result of the script must be in xml format in order that the data server can understand it. Regards Ivo
As I thought I made clear, I'm not wanting to add a script to an agent, but the server itself, for doing remote module actions. For an example here's some pre-installed modules that are remote modules: remote_icmp remote_icmp_proc remote_snmp remote_snmp_inc etc I want to add my own modules wherever these are located on the server, to be used by the server for doing remote module data pulls. I wrote a script that works completely remotely and should be able to be used in this fashion.
Hello You can add your server script just by clicking on manage servers and then on manage plug-ins. Click on add and then input the name of the script, the command (path to the script/script name), the parameters of the script, and the necessary macros. Keep in mind that every execution of the script would only return a single value (basic functionality of a server plugin) an agent plugin can return more that one value. For more information on server plugins visit the following webpage: http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:Anexo_Server_plugins_developement Regards Ivo
Entra en tu cuenta para publicar.
