Skip to main content

Hello everyone!

(Using debian 12 / Centreon V24.10)

I encounter this kind of problem when I use the CMA with teamplate in my Centreon Services Status: 

status services of CMA teamplate KO in centreon

somes services of the template CMA is working like :

 

services of template CMA working in centreon

 

How can i verify or check this services who doesn’t works ?

Hello

 

as far as I knew these are the only windows services were available 2 month ago : 

 

now I see the doc has changed on the monitoring pack and there are new services

i’m trying to upgrade that template and see if I have a similar error to yours

 

did you do a fresh install from scratch recently or is your plaform an older one (more than 1 month) and you upgraded your connectors?


Hi ​@christophe.niel-ACT 

it’s an older more 1 years plateform and i just adding and configuring the CMA connector today (and yes i’ve refresh by updating the connector )

i installed the agent on my other serveur to supervise it and that seem to like a bit x)


I have the same problem as you now I have upgraded and configured the connector for the new commands

 

I just looked at the config for these new “check” command, they are wrong :

 

a working commands is something like that, an executable locally stored on the windows host and parameter

 "$_HOSTCENTREONAGENTPLUGINS$/centreon_plugins.exe" --plugin os::windows::local::plugin --mode time --warning="$_SERVICEWARNINGOFFSET$" --critical="$_SERVICECRITICALOFFSET$" --ntp-hostname="$_SERVICENTPHOSTNAME$" --ntp-port="$_SERVICENTPPORT$" --timeout="$_SERVICETIMEOUT$" $_SERVICEEXTRAOPTIONS$

 

the new commands added with the new update

 {"check":"cpu_percentage", "args":{ "cpu-detailed": false, "warning-core" : "$_SERVICEWARNINGCORE$", "critical-core" : "$_SERVICECRITICALCORE$", "warning-average" : "$_SERVICEWARNINGAVERAGE$", "critical-average" : "$_SERVICECRITICALAVERAGE$"}}

 

just some json parameters with no binaries, which cannot work “as is” 

 

I’m guessing there has been a new version of the agent, but I can”t find the new binaries, or something was not setup correctly when they published the connector (24.12.3)

 

I’m gonna reference this post on the beta forum to have them look or tell us what to do with this

(on my part i’m using a 24.04 updated to latest release, and on your part you are using a 24.10)


@christophe.niel-ACT thanks you much !!! we will wait what they say about this anomaly and hope they will give us a new conf or command quickly !

I will just use another template wainting her response


Hi,

The command format is correct, since this is a native Centreon Monitoring Agent command, and not a nagios-like one.

Could you try to deploy the last CMA agent, which is available here, and tell me if there are still issues ? 

Thanks


hello

with the new agent it works 

 

 

when I tried to add a non-attached check, like storage on that host “desktop”, I get an error message saying

Error Service comes from a database, therefore its service id must not be null
Could not register service 'Disk-C' of host 'DESKTOP'

when I push the configuration 

 

I just added the service manually, linked it to the host and set the FSFILTER

should I do something else


hi ​@fmattes and ​@christophe.niel-ACT  i will test quickly and give u a feedback about this !


hi ​@christophe.niel-ACT  ​@fmattes  so for me that doesn’t work …

I’ve try to reinstall all (Connector, plugins,Agents...) but that doesn’t change nothing.

 


hi ​@christophe.niel-ACT  ​@fmattes  so for me that doesn’t work …

I’ve try to reinstall all (Connector, plugins,Agents...) but that doesn’t change nothing.

 

Hi, did you tried troubleshooting steps ? 

If yes, please send me a private message with your email, and we will plan a diagnostic meet.


Hello ​@tsuko 

I think that it’s a problem of centreon monitoring agent version. Native checks are still under development are were not implemented on first versions. You can find latest version of centreon monitoring agent here:

cma 24.10.3


hi ​@fmattes  thanks you i’ve follow your troubleshooting steps! and that seems to work 🙂 !

  (My .json file was empty) but i was sure to write the conf in but it’s ok my fault i think so !

Hi ​@jcr  it’s all fine thanks u !

But sometimes, when i refresh the Services Hosts, they appear like “Unknow” and after refresh they got “OK” status...the strange if that becomme unknow=> OK=>unknow=> OK ! maybe the agent got somes difficulties to communicate with the poller (on my central).

Last question: On the Agent Host if i want to use the “encryption” mode what is the certificates asked? the Poller central certificates? or my host who’s supervised? because my host (windosw serveur doesn’t have any certificates)


There are two cases. In normal case (agent connects to the poller), poller is a http web server, you have to add it in /etc/centreon-engine/otl_server.json and you have to export poller certificate to the host. In reverse mode, agent is the web server and you have t o create certificates for this web server and export it to the poller.


hi ​@fmattes  thanks you i’ve follow your troubleshooting steps! and that seems to work 🙂 !

  (My .json file was empty) but i was sure to write the conf in but it’s ok my fault i think so !

Hi ​@jcr  it’s all fine thanks u !

But sometimes, when i refresh the Services Hosts, they appear like “Unknow” and after refresh they got “OK” status...the strange if that becomme unknow=> OK=>unknow=> OK ! maybe the agent got somes difficulties to communicate with the poller (on my central).

Last question: On the Agent Host if i want to use the “encryption” mode what is the certificates asked? the Poller central certificates? or my host who’s supervised? because my host (windosw serveur doesn’t have any certificates)

Hi, about Unknown status flapping, please ensure that your checks are passive (in the service template and inherited in service), as it should be if you use Centreon Monitoring Connectors. It’s often linked to active/forced checks, which are not possible as CMA checks are passive.


hi ​@fmattes  and ​@jcr  all it’s fine i’ve resolved this .

Last: I encoutered this in one of my serveurs when i try to install the agent..do you any ideas?

 

I’ve check my Antivirus and Firewall they don’t block  this..so idon’t know ^^’


hi ​@fmattes  and ​@jcr  all it’s fine i’ve resolved this .

Last: I encoutered this in one of my serveurs when i try to install the agent..do you any ideas?

 

I’ve check my Antivirus and Firewall they don’t block  this..so idon’t know ^^’

Glad to hear that it works !

If this works on other servers, it may probably be a network issue when trying to download plugins.

I don’t really know how to help on this. Maybe ​@jcr will have an idea.


Can you try in the web browser of this host this url:


hi ​@fmattes  ​@jcr  it’s fine i’ve just retry to install and that work ! (yeah i think we have somes troubles in our network we will see that more later )

All is working it’s really happyness !

 

Thanks you much for all ! have a good week 🙂 !


Reply