Centreon CLAPI Module
This module is now obsolete and has been integrated into the Centreon Web component since version 2.7.0
Centreon CLAPI Module
Author Name: Julien Mathis (Julien Mathis)
Original Redmine Issue: 1749, https://forge.centreon.com/issues/1749
Original Date: 2010-05-11
Original Assignee: Julien Mathis
None
Author Name: christophe demoire (christophe demoire)
Original Redmine Issue: 1891, https://forge.centreon.com/issues/1891
Original Date: 2010-08-02
Original Assignee: Julien Mathis
None
Author Name: Julien Mathis (Julien Mathis)
Original Redmine Issue: 1753, https://forge.centreon.com/issues/1753
Original Date: 2010-05-11
Original Assignee: Julien Mathis
None
Author Name: Julien Mathis (Julien Mathis)
Original Redmine Issue: 1602, https://forge.centreon.com/issues/1602
Original Date: 2010-03-02
Original Assignee: Julien Mathis
None
Author Name: christophe demoire (christophe demoire)
Original Redmine Issue: 1896, https://forge.centreon.com/issues/1896
Original Date: 2010-08-02
Original Assignee: Julien Mathis
None
Author Name: christophe demoire (christophe demoire)
Original Redmine Issue: 1894, https://forge.centreon.com/issues/1894
Original Date: 2010-08-02
Original Assignee: Julien Mathis
None
Author Name: christophe demoire (christophe demoire)
Original Redmine Issue: 1862, https://forge.centreon.com/issues/1862
Original Date: 2010-07-21
Original Assignee: Julien Mathis
when dollar sign is escaped in the command line args, clapi doesnt remove the \ char.
Example:
Author Name: christophe demoire (christophe demoire)
Original Redmine Issue: 1897, https://forge.centreon.com/issues/1897
Original Date: 2010-08-02
Original Assignee: Julien Mathis
None
Author Name: christophe demoire (christophe demoire)
Original Redmine Issue: 1866, https://forge.centreon.com/issues/1866
Original Date: 2010-07-22
Original Assignee: Julien Mathis
@[root@bie-05 core]# ./centreon -u admin -p somone -o CG -a show
id;name;alias;members
Guest;Guests Group;Guest,User
Supervisors;Centreon supervisors;Super Admin
You have new mail in /var/spool/mail/root
[root@bie-05 core]# ./centreon -u admin -p somone -o CG -a add "Windows;Windows admins"
[root@bie-05 core]# ./centreon -u admin -p somone -o CG -a show
id;name;alias;members
;;
Guest;Guests Group;Guest,User
Supervisors;Centreon supervisors;Super Admin
[root@bie-05 core]# ./centreon -u admin -p somone -o CG -a add "Windows2;Windows admins"
Contactgroup already exists.
[root@bie-05 core]# ./centreon -u admin -p somone -o CG -a show
id;name;alias;members
;;
Guest;Guests Group;Guest,User
Supervisors;Centreon supervisors;Super Admin
[root@bie-05 core]#@
Author Name: christophe demoire (christophe demoire)
Original Redmine Issue: 1881, https://forge.centreon.com/issues/1881
Original Date: 2010-08-02
Original Assignee: Julien Mathis
None
Author Name: Julien Mathis (Julien Mathis)
Original Redmine Issue: 1752, https://forge.centreon.com/issues/1752
Original Date: 2010-05-11
Original Assignee: Julien Mathis
None
Author Name: Julien Mathis (Julien Mathis)
Original Redmine Issue: 1615, https://forge.centreon.com/issues/1615
Original Date: 2010-03-02
Original Assignee: Julien Mathis
Add possibility to define a configuration file in ~/.centreon with password in order to use the api free without login and password.
Author Name: stefano coletta (stefano coletta)
Original Redmine Issue: 1768, https://forge.centreon.com/issues/1768
Original Date: 2010-05-25
Original Assignee: Julien Mathis
Hello,
I've fixed the addHost() method in the centreonHost.class.php file by adding the following code after the /* Insert Extended Info */ block:
/*
Otherwise I found no way to make a relation between an host and a hostgroup.
Author Name: Julien Mathis (Julien Mathis)
Original Redmine Issue: 1607, https://forge.centreon.com/issues/1607
Original Date: 2010-03-02
Original Assignee: Sylvestre Ho
None
Author Name: Julien Mathis (Julien Mathis)
Original Redmine Issue: 1613, https://forge.centreon.com/issues/1613
Original Date: 2010-03-02
Original Assignee: Julien Mathis
Host_name;Address;Alias;HG_List
Author Name: Julien Mathis (Julien Mathis)
Original Redmine Issue: 1600, https://forge.centreon.com/issues/1600
Original Date: 2010-03-02
Original Assignee: Julien Mathis
None
Author Name: Julien Mathis (Julien Mathis)
Original Redmine Issue: 1611, https://forge.centreon.com/issues/1611
Original Date: 2010-03-02
Original Assignee: Julien Mathis
None
Author Name: Julien Mathis (Julien Mathis)
Original Redmine Issue: 1604, https://forge.centreon.com/issues/1604
Original Date: 2010-03-02
Original Assignee: Julien Mathis
None
Author Name: christophe demoire (christophe demoire)
Original Redmine Issue: 1863, https://forge.centreon.com/issues/1863
Original Date: 2010-07-22
Original Assignee: Julien Mathis
Can't set snmp version 2c, i can only set it to version 1 or 3
Maybe there is an intval() ?
Tested on host template
./centreon -u admin -p somone -o HTPL -a setparam -v "Application-Alfresco;version;2c"
Author Name: christophe demoire (christophe demoire)
Original Redmine Issue: 1887, https://forge.centreon.com/issues/1887
Original Date: 2010-08-02
Original Assignee: Julien Mathis
None
Author Name: christophe demoire (christophe demoire)
Original Redmine Issue: 1890, https://forge.centreon.com/issues/1890
Original Date: 2010-08-02
Original Assignee: Julien Mathis
None
Author Name: christophe demoire (christophe demoire)
Original Redmine Issue: 1885, https://forge.centreon.com/issues/1885
Original Date: 2010-08-02
Original Assignee: Julien Mathis
None
Author Name: Julien Mathis (Julien Mathis)
Original Redmine Issue: 1609, https://forge.centreon.com/issues/1609
Original Date: 2010-03-02
Original Assignee: Julien Mathis
None
Author Name: Julien Mathis (Julien Mathis)
Original Redmine Issue: 1601, https://forge.centreon.com/issues/1601
Original Date: 2010-03-02
Original Assignee: Julien Mathis
None
Author Name: Julien Mathis (Julien Mathis)
Original Redmine Issue: 1603, https://forge.centreon.com/issues/1603
Original Date: 2010-03-02
Original Assignee: Julien Mathis
None
Author Name: christophe demoire (christophe demoire)
Original Redmine Issue: 1882, https://forge.centreon.com/issues/1882
Original Date: 2010-08-02
Original Assignee: Julien Mathis
None
Author Name: Julien Mathis (Julien Mathis)
Original Redmine Issue: 1606, https://forge.centreon.com/issues/1606
Original Date: 2010-03-02
Original Assignee: Julien Mathis
None
Author Name: christophe demoire (christophe demoire)
Original Redmine Issue: 1888, https://forge.centreon.com/issues/1888
Original Date: 2010-08-02
Original Assignee: Julien Mathis
None
Author Name: Cédric Temple (Cédric Temple)
Original Redmine Issue: 1763, https://forge.centreon.com/issues/1763
Original Date: 2010-05-18
Original Assignee: Julien Mathis
It seems that help message is not correct. I think it should be:
Warning: it is ';' not ':'
Author Name: Julien Mathis (Julien Mathis)
Original Redmine Issue: 1612, https://forge.centreon.com/issues/1612
Original Date: 2010-03-02
Original Assignee: Julien Mathis
None
Author Name: christophe demoire (christophe demoire)
Original Redmine Issue: 1895, https://forge.centreon.com/issues/1895
Original Date: 2010-08-02
Original Assignee: Julien Mathis
None
Author Name: Julien Mathis (Julien Mathis)
Original Redmine Issue: 1608, https://forge.centreon.com/issues/1608
Original Date: 2010-03-02
Original Assignee: Sylvestre Ho
None
Author Name: christophe demoire (christophe demoire)
Original Redmine Issue: 1892, https://forge.centreon.com/issues/1892
Original Date: 2010-08-02
Original Assignee: Julien Mathis
None
Author Name: christophe demoire (christophe demoire)
Original Redmine Issue: 1898, https://forge.centreon.com/issues/1898
Original Date: 2010-08-02
Original Assignee: Julien Mathis
None
Author Name: Julien Mathis (Julien Mathis)
Original Redmine Issue: 1750, https://forge.centreon.com/issues/1750
Original Date: 2010-05-11
Original Assignee: Julien Mathis
None
Author Name: christophe demoire (christophe demoire)
Original Redmine Issue: 1880, https://forge.centreon.com/issues/1880
Original Date: 2010-08-02
Original Assignee: Julien Mathis
Les ACLs sur deux niveaux (hostgroups et hostcategories) ne semblent pas marcher.
En effet l'ACLs doit faire un "et logique" entre les hostgroups et hostcategories hors lors de quelques tests il n'affiche que les hôtes présents dans l'hostcategory et ne semble pas prendre en compte les hôtes présents dans les hostgroups.
Author Name: christophe demoire (christophe demoire)
Original Redmine Issue: 1886, https://forge.centreon.com/issues/1886
Original Date: 2010-08-02
Original Assignee: Julien Mathis
I can add one service template but not more into the Service template Object
Author Name: Damien Duponchelle (Damien Duponchelle)
Original Redmine Issue: 1510, https://forge.centreon.com/issues/1510
Original Date: 2010-01-28
Original Assignee: Julien Mathis
The centcore pipe is hardcoded in file centreon.Config.Poller.class.php on line 53.
@$this->centcore_pipe = "/var/lib/centreon/centcore.cmd";@
This value must be dynamique for installations without defaults paths.
Thanks!
Author Name: christophe demoire (christophe demoire)
Original Redmine Issue: 1889, https://forge.centreon.com/issues/1889
Original Date: 2010-08-02
Original Assignee: Julien Mathis
We cannot modify or delete parents and child into Host Object
Author Name: Julien Mathis (Julien Mathis)
Original Redmine Issue: 1605, https://forge.centreon.com/issues/1605
Original Date: 2010-03-02
Original Assignee: Julien Mathis
None
Author Name: Julien Mathis (Julien Mathis)
Original Redmine Issue: 1614, https://forge.centreon.com/issues/1614
Original Date: 2010-03-02
Original Assignee: Julien Mathis
Host_name;service_description;tp_check;tp_notif;max_check_attempts;normal_check_interval;retry_check_interval;command
Author Name: Damien Duponchelle (Damien Duponchelle)
Original Redmine Issue: 1511, https://forge.centreon.com/issues/1511
Original Date: 2010-01-28
Original Assignee: Julien Mathis
Actions must exit with return code in order to catch this code in shell script.
It's usefull for shell scripting, to generate, restart, reload and test the confirmation of nagios server.
For exemple, if the action pollergenerate works without warning, the code return must be 0.
If there is warning messages, the code must be 1.
And if the generation failed, the code must be 2.
Author Name: Julien Mathis (Julien Mathis)
Original Redmine Issue: 1751, https://forge.centreon.com/issues/1751
Original Date: 2010-05-11
Original Assignee: Julien Mathis
None
Author Name: christophe demoire (christophe demoire)
Original Redmine Issue: 1864, https://forge.centreon.com/issues/1864
Original Date: 2010-07-22
Original Assignee: Julien Mathis
$> ./centreon -u admin -p aef3B -o TIMEPERIOD -a show
id;name;alias;sunday;monday;tuesday;wednesday;thursday;friday,saturday
1;24x7;24_Hours_A_Day,_7_Days_A_Week;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00
2;none;No Time Is A Good Time;;;;;;;
3;nonworkhours;Non-Work Hours;00:00-24:00;00:00-09:00,17:00-24:00;00:00-09:00,17:00-24:00;00:00-09:00,17:00-24:00;00:00-09:00,17:00-24:00;00:00-09:00,17:00-24:00;00:00-24:00
4;workhours;Work hours;;09:00-17:00;09:00-17:00;09:00-17:00;09:00-17:00;09:00-17:00;
$> ./centreon -u admin -p aef3B -o HTPL -a setparam -v "Application-Alfresco;tpcheck;1"
But i dont get anything in centreon
it doesnt fill the "check period" field
Author Name: christophe demoire (christophe demoire)
Original Redmine Issue: 1893, https://forge.centreon.com/issues/1893
Original Date: 2010-08-02
Original Assignee: Julien Mathis
None
Author Name: christophe demoire (christophe demoire)
Original Redmine Issue: 1884, https://forge.centreon.com/issues/1884
Original Date: 2010-08-02
Original Assignee: Julien Mathis
None
Author Name: Cédric Temple (Cédric Temple)
Original Redmine Issue: 1840, https://forge.centreon.com/issues/1840
Original Date: 2010-07-01
A correct call to CLAPI is:
./centreon -u admin -p centreon -o CMD -a ADD -v 'check-host-alive2;$USER1$/check_ping -H
But if user does use "-v" switch, CLAPI print an error but try to add it to database:
./centreon -u admin -p centreon -o CMD -a ADD -v 'check-host-alive2;$USER1$/check_ping -H
PHP Notice: Undefined index: v in /usr/share/centreon/www/modules/centreon-clapi/core/class/centreonAPI.class.php on line 283
PHP Notice: Undefined variable: str in /usr/share/centreon/www/modules/centreon-clapi/core/class/centreonCommand.class.php on line 101
No options defined.
PHP Notice: Undefined index: command_line in /usr/share/centreon/www/modules/centreon-clapi/core/class/centreonCommand.class.php on line 199
echo $?
0
A patch is attached to fix this problem.
Author Name: Julien Mathis (Julien Mathis)
Original Redmine Issue: 1599, https://forge.centreon.com/issues/1599
Original Date: 2010-03-02
Original Assignee: Julien Mathis
None
Author Name: Julien Mathis (Julien Mathis)
Original Redmine Issue: 1610, https://forge.centreon.com/issues/1610
Original Date: 2010-03-02
Original Assignee: Julien Mathis
None
Author Name: christophe demoire (christophe demoire)
Original Redmine Issue: 1883, https://forge.centreon.com/issues/1883
Original Date: 2010-08-02
Original Assignee: Julien Mathis
None
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.