Skip to main content

 installed centreon, attached to it two pollers, and i git cloned the repos from the current git like they are, when i tested a basic command like the one you mentioned aka

'centreon_plugins.pl --plugin=apps::protocols::http::plugin --mode=response --hostname=www.google.com --proto='https' --port='443' --urlpath='/' --warning-time='5' --critical-time='10' --change-short-output=':'~': www.google.com''


it worked just fine, as well as any other command where the target is localhost or idk, i also believe i installed all needed libraries, however when i try other plugins to test on remote machines like this:

perl centreon_plugins.pl \
--plugin=apps::vmware::connector::plugin \
--custommode=connector \
--mode=status-host \
--connector-hostname=127.0.0.1 \
--connector-port=5700 \
--username='your_vmware_user' \
--password='your_vmware_password'


I get this error:
UNKNOWN: Cannot load module --custommode.

Can't locate ZMQ/LibZMQ4.pm in @INC (you may need to install the ZMQ::LibZMQ4 module) (@INC contains: /usr/lib/centreon/plugins/centreon-plugins/src /root/perl5/lib/perl5/5.32.1/x86_64-linux-thread-multi /root/perl5/lib/perl5/5.32.1 /root/perl5/lib/perl5/x86_64-linux-thread-multi /root/perl5/lib/perl5 /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5)
at /usr/lib/centreon/plugins/centreon-plugins/src/apps/vmware/connector/custom/connector.pm line 26.
BEGIN failed--compilation aborted at /usr/lib/centreon/plugins/centreon-plugins/src/apps/vmware/connector/custom/connector.pm line 26.
Compilation failed in require at /usr/lib/centreon/plugins/centreon-plugins/src/centreon/plugins/misc.pm line 223.


or I get similar errors, it literally happens with anything else other than the localhost stuff, i have no clue how to fix it, i do have the ZMG library, there is a confclit,The

code:

ZMQ::LibZMQ4

Perl module is installed.
The native system library

code:

zeromq-4.3.4

is also installed.
Attempting to install the version needed for

code:

ZMQ::LibZMQ4

(i.e.,

code:

libzmq5-4.3.5

) creates a conflict with

code:

zeromq

, which breaks Gorgone and other dependencies., but i have no clue how to solve this, my manager hates me lol

Hi ​@xorya why you don’t use packaged Centreon Plugins?

They will install automatically needed dependencies.?


@Laurent wouldnt I need a license for that? knowing that Ill be monitoring more than 100 hosts? and iwill have to switch the solution to an offline machine? I honeslty don’t know couldnt find any guide on how to install centreon well with github repos etc. I’m stuck


Centreon Plugins are free, IT-100 provides ready-to-use Centreon Plugin configuration 😉.

So you can use packaged plugins but with manual configuration :D


@Laurent so i need to ask for IT-100 license then continue using manual stuf after? I’m really lost and confused at this point I have no clue how to just make it work if you could tell me exaclty what I need to set up that would be very helpfull, currenlty i just have the git repo plugins 


You don’t need IT-100 token tu use Centreon in open source mode (included packaged Centreon Plugins)

IT-100 is a Centreon Edition to have IT fonctionnalites access but limited to 100 hosts configured


Request the it-100 token, it would make your flow so much easier. But if you like to cook at home… which OS are you using?


@ponchoh But ill be monitoring more than 100 hosts 😕 and im using redhat 9.5


OK, ok.. that means you will need to write the templates for ALL of your hosts and services for each connector. Did you try to install the connectors as mentioned?

 

 

 


@ponchoh if by connectors you mean plugins then yes i have the nagios and the centreon ones, git cloned them from github, so now im guessing ill have to create command checks one by one and associate with services and templates and all ?


@xorya that is correct.

I am including some docs.

https://docs.centreon.com/docs/monitoring/templates/


Reply