Page 1 of 1

Plugin Integration to XI 2014 R1.1

Posted: Thu Jul 10, 2014 3:47 am
by aap
Hi,

I have some custom plugins designed for Nagios that have been supplied by a vendor and I'll like to integrate with Nagios XI.

The package constsis 15 .pl files and 1 .cfg file. To integrate with XI are the following steps valid?

1. Copy the *.pl files to /usr/lib/nagios/plugins/ folder
2. Chmod +x /usr/lib/nagios/plugins/*.pl (Should I do this for each of the 16 .pl files rather than applying it to the existing plugins in that folder?)
3. Chown nagios:nagios /usr/lib/nagios/plugins/*.pl (Same as previous - is it better to do this individually?)

Where should the .cfg file be copied to?

Are there any additional steps that I will need to take prior to creating host and services to use the plugins?

If necessary, I can make the plugins available if required.

Thanks for your help

Re: Plugin Integration to XI 2014 R1.1

Posted: Thu Jul 10, 2014 4:41 am
by WillemDH
Hey,

Personnally I'm using WinSCP to copy the plugins, (as we are 99 % MS unfortunately), but the directory is /usr/local/nagios/libexec/ for Nagios XI. The plugins need to be executable by nagios, so +x seems fine. I don't think the owner needs to be nagios, most of my plugins have root as owner.

if you think the plugins can be useful, you could put them on the Nagios Exchange (http://exchange.nagios.org) Could you tell us what they do? :)

Grtz

Willem

Re: Plugin Integration to XI 2014 R1.1

Posted: Thu Jul 10, 2014 7:09 pm
by Box293
It's best upload each plugin via the GUI as it does all the permissions.

Admin > System Extensions > Manage Plugins.

As for the .cfg files, you can import them.

Copy them to:
/usr/local/nagios/etc/import
And then:
  • Core Configuration Manager > Tools > Import Config Files
    Select the file in the list and click Import
To prevent errors or misconfigurations, you should import your configurations in an useful order. We recommend importing in the following order:
commands -> timeperiods -> contacttemplates -> contacts -> contactgroups -> hosttemplates -> hosts -> hostgroups -> servicetemplates -> services -> servicegroups

Re: Plugin Integration to XI 2014 R1.1

Posted: Thu Jul 17, 2014 4:08 am
by aap
Thanks for your help.

All in good working order.