Skip to main content

Hi everyone, 

Someone know how to use this script :

 

/usr/lib/centreon/plugins//centreon_openvpn_omi.pl \
--plugin=apps::openvpn::omi::plugin \
--mode=server-usage \
--omi-hostname='10.0.0.1' \
--omi-password='' \
--omi-port='7505' \
--warning-num-clients='' \
--critical-num-clients='' \
--warning-traffic-in='' \
--critical-traffic-in='' \
--warning-traffic-out='1000000' \
--critical-traffic-out='2000000' \
--use-new-perfdata

 

Personnally i don’t know how to use it, because when i put all the information they are on the Centreon Website, the plugin cannot connect. 

 

Help me please i need this plugin for a test at school.

 

Thanks to everyone. 

Hello

you need to input the information need as stated in the doc : OpenVPN OMI | Centreon Documentation

and one that is not explicitly listed as mandatory : the IP of the openvpn host

in the example the omi-hostname is set to 10.0.0.1, you need to replace that with your host ip address or the dns name, then you need to put the password in the omi-password parameters (empty in the example) and the correct tcp port in omi-port (7505 in the example)

 

but that is an example in command line shell to test, what you want is use the centreon web ui and create a HOST using the OMI OpenVPN Template

then it will use the HOST Address as the omi-hostname automatically, and there will be 2 “MACRO” on the service page that will be called OMIPASSWORD and OMIPORT, where you will need to put the values.

 

if you need to know how to create a host, there is documentation here : Creating hosts manually | Centreon Documentation 

 

Christophe


thanks christophe 

I know that i need to replace all the information, I will retry to put my information, but my last try was bad 


Hi @gabriel,

After trying out his solution, what was the outcome? Please don't forget to select the “Best Answer” button below @christophe.niel-ACT’s comment, or simply let us know how you resolved the issue.

It will undoubtedly help someone with the same problem.

Thank you,


Reply