packaging a perl plugin with supporting perl modules in nrds

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
grenley
Posts: 96
Joined: Tue May 13, 2014 6:06 pm

packaging a perl plugin with supporting perl modules in nrds

Post by grenley »

Hi.

We've got a homegrown log monitor, written in perl, that calls a half dozen (non-platform-specific) home-grown perl modules.
It will read configuration files (on the nrdp agent) that tell it what log to read, what patterns to look for, etc.
We will be executing this through nrds.

I've defined LogMon.pl in the nrds config on the XI server and it ships it down to the agent to do the check.
How do I also get the supporting pm and config files to get distributed with it?
It obviously just fails now as it can't find these files.

Thanks very much.
Rick
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: packaging a perl plugin with supporting perl modules in

Post by tmcdonald »

This is sorta messy, but you could try defining the modules as "commands" so that they will be picked up. Everything should be dumped in the same directory on the remote agent, so you would need to modify in your perl where the module is. You could do the same with the configs. I haven't tried this personally, but I might give it a shot if I have time later this afternoon.
Former Nagios employee
sujitt
Posts: 132
Joined: Thu Apr 25, 2013 1:50 pm

Re: packaging a perl plugin with supporting perl modules in

Post by sujitt »

Do we have a resolution on this one.

I am tryin to run a perl plugin from a windows using NRDS and not able to execute appropriately.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: packaging a perl plugin with supporting perl modules in

Post by mcapra »

Did you try what @tmcdonald suggested? Did you encounter any issues attempting that?
Former Nagios employee
https://www.mcapra.com/
Locked