Skip to main content

Hello,
I am trying to add a service to my host, but I keep encountering the same problem. It doesn't recognize my command:
centreon -u admin -p passwordadmin -o service -a add -v "W19-CENTREON;Ping_W19-CENTREON;base_centreon_ping"
Object not found: base_centreon_ping

I want to specify that this command is an existing base command in Centreon.

However, it exists:
centreon -u admin -p passwordadmin -o CMD -a show | grep base_centreon_ping
93;base_centreon_ping;check;$USER1$/check_icmp -H $HOSTADDRESS$ -n $_SERVICEPACKETNUMBER$ -w $_SERVICEWARNING$ -c $_SERVICECRITICAL$ $_SERVICEEXTRAOPTIONS$

I tried creating another one and adding it, but I encounter the same error.

Do you have an explanation?

Thank you.

Have a nice day.

It's my fault, I should be using the template, not the command...


Reply