Open abdoulosseni opened 7 years ago
Hello,
Cf. https://documentation.centreon.com/docs/centreon-clapi/en/latest/objects/instances.html
In order to list available instances, use the SHOW action:
./centreon -u admin -p centreon -o INSTANCE -a show
Activate 1 if poller is enabled, 0 otherwise Status 1 if poller is running, 0 otherwise
[root@redhat centreon-clapi]# /etc/init.d/centengine status centengine status: running [ OK ]
[root@redhat centreon-clapi]# /etc/init.d/centcore status centcore (pid 17938) is running...
[root@redhat centreon-clapi]# ./centreon -u admin -p admin -o INSTANCE -a show id;name;localhost;ip address;activate;status;init script;bin;stats bin;ssh port 1;Central;1;127.0.0.1;1;;/etc/init.d/centengine;/usr/sbin/centengine;/usr/sbin/centenginestats;22
We expected
1;Central;1;127.0.0.1;1;1;/etc/init.d/centengine;/usr/sbin/centengine;/usr/sbin/centenginestats;22
Regards
Hello,
Cf. https://documentation.centreon.com/docs/centreon-clapi/en/latest/objects/instances.html
In order to list available instances, use the SHOW action:
./centreon -u admin -p centreon -o INSTANCE -a show
Activate 1 if poller is enabled, 0 otherwise Status 1 if poller is running, 0 otherwise
[root@redhat centreon-clapi]# /etc/init.d/centengine status centengine status: running [ OK ]
[root@redhat centreon-clapi]# /etc/init.d/centcore status centcore (pid 17938) is running...
[root@redhat centreon-clapi]# ./centreon -u admin -p admin -o INSTANCE -a show id;name;localhost;ip address;activate;status;init script;bin;stats bin;ssh port 1;Central;1;127.0.0.1;1;;/etc/init.d/centengine;/usr/sbin/centengine;/usr/sbin/centenginestats;22
We expected
1;Central;1;127.0.0.1;1;1;/etc/init.d/centengine;/usr/sbin/centengine;/usr/sbin/centenginestats;22
Regards