Skip to main content

Hello everyone i’ve just installed centreon and for some reason i have this path:

usr/lib/centreon/plugins with many .pl files, such as :


/root@centreon plugins]# ls
centreon_3com.pl                                      centreon_digi_sarian_snmp.pl                       centreon_nutanix_snmp.pl
centreon_3cx_restapi.pl                               centreon_dlink_dgs3100_snmp.pl                     centreon_nvidia_gpu_smi_ssh.pl
centreon_a10_ax_snmp.pl                               centreon_dlink_standard_snmp.pl                    centreon_office365_azuread_api.pl
centreon_abb_cms700_snmp.pl                           centreon_docker_restapi.pl                         centreon_office365_exchange_api.pl
centreon_acmepacket_snmp.pl                           centreon_docker_ssh.pl                             centreon_office365_management_api.pl

I’m unsure if this is normal, because on the site i see there is supposed to be only one file, aka  centreon_plugins.pl and I don’t have any folders i just have about 600 perl files 

And when I execute the perl list mode command on one of them I see the result:

rroot@centreon plugins]# perl /usr/lib/centreon/plugins/centreon_linux_snmp.pl --plugin=os::linux::snmp::plugin --list-mode

Plugin Description:
    Check Linux operating systems in SNMP.

Global Options:
    --mode  Define the mode in which you want the plugin to be executed (see
            --list-mode).

    --dyn-mode
            Specify a mode with the module's path (advanced).

    --list-mode
            List all available modes.

    --mode-version
            Check minimal version of mode. If not, unknown error.

    --version
            Return the version of the plugin.

    --pass-manager
            Define the password manager you want to use. Supported managers
            are: environment, file, keepass, hashicorpvault and teampass.

Modes Meta:
   multi

Modes Available:
   arp
   cpu
   cpu-detailed
   disk-usage
   diskio
   inodes
   interfaces
   list-diskio
   list-diskspath
   list-interfaces
   list-processes
   list-storages
   load
   memory
   processcount
   storage
   swap
   tcpcon
   time
   udpcon
   uptime
sroot@centreon plugins]#
 

I’m not sure if this is normal and I can monitor my hosts just fine like this or will this cause an issue?

hello

yes it is normal

 

the centreon_plugin.pl you refer to is the unpackaged “free” plugin you can get from the github, it is the source of all centreon plugins

when you use a licence (free IT or pay entreprise) you get access to the full connector packs which includes

  • the service and host template in the web ui
  • the packaged perl plugin (all the file you saw in your folder)
  • and the bonus that some (most) of these plugin work with some dependencies on your poller, some perl libs, additionnal package etc… and the packaged plugin makes all this manual install more easy, they are installed automatically when the package is installed.

 

you also have a checkbox at the top of the connector page in the web UI that will automatically install these packaged plugins if you mark a connector “installed”

 

 


Hello :)

This is absolutely normal, each connector will use a different .pl file (also named fatpack), which makes each one ‘self-sufficient’ and allows you, for example, if you only use a ‘Linux SNMP’ connector, to install only the ‘centreon_linux_snmp.pl’ plugin if you wish.
The centreon_plugins.pl is available in the src folder if you have installed the centreon-plugins repo on your machine (this is more for dev-oriented use).

Kind regards


@christophe.niel-ACT so that means I can just use my perl files as is? i dont need the centreon_plugin.pl  for things to work? so when I configure something in centreon check command I could just do “/usr/lib/centreon/plugins/centreon_nutanix_snmp.pl --hostname=10.0.0.5 --snmp-community=public --mode=cluster-usage    instead of the normal way that is “/usr/lib/centreon/plugins/centreon_plugins.pl \

  --plugin=apps::virtualization::nutanix::snmp::plugin \

  --mode=cluster-usage \

  --hostname=10.0.0.5 \

  --snmp-community=public

“ I won’t have any problems? Also I see nothing in the web UI, I dont see any monitoring connections in the manager and in extensions→ manager i see this :

I’m just wondering if I won’t have problems when I’m trying to monitor things. because Ive done the installation of plugins manually, there is a whole problem with proxy etc so it was difficult to install the github thing, I can just ignore the github repo for now?


well, multiple things to answer here :)

 

first : the IT-100 edition is not the  “community” edition, it comes with a free 100 host, all the connectors, packages that are available on centreon. and autodiscover also

that’s your red “licence required”

not having a licence is (I think) what we can call the “community” edition, where you can also download the plugin package from the repository, that’s all the “.pl” you see in the plugin directory, but you don’t get the pre-configured templates and commands (which simplify a lot the configuration of centreon, but if you are used to do all that manually, that’s also fine)

 

you can keep using the centreon_plugin.pl command it does the exact same thing as the packaged perl command from the packages, the “fatpack” Idubrunfaut mentionned have the advantage of being updated by centreon regurlarly

I don’t know where you got your centreon_plugin.pl command, but that command is using a lot of other perl files in the subfolders where it is located, updating that is a bit of work and I find it easier to maintain the packages (allowing you to rollback to a previous version if you have an issue for example)

 

there is no “normal” way, I would say the centreon_plugins.pl is an old way, and the fatpack are a less old way, personnally I mix things, when using standard centreon things, I use the template and packed command

when I need to custom stuff, I usually clone the repo in a subfolder, add some stuff there and work with the centreon_plugin.pl from that subfolder

 

anyway, about your proxy issue, if you can “yum/dnf/apt install”, I would advise you to use the fatpacks, and call the command as documented

example here to install the package Acme Packet SNMP | Centreon Documentation

and here you get the command to use from the package Acme Packet SNMP | Centreon Documentation

if this method works for you, you can indeed ignore the git repo

(I don’t know where you got the direction to use the git repo however, it’s not the documented way to use centreon 🙂, did you find a tutorial somewhere that was explaining that method? if yes, can you provide a link)


Reply