Giter Club home page Giter Club logo

centreon-clapi's Introduction

centreon-clapi

Centreon CLAPI Module

This module is now obsolete and has been integrated into the Centreon Web component since version 2.7.0

centreon-clapi's People

Contributors

bsauveton avatar ddu17 avatar guillaume28 avatar julienmathis avatar kduret avatar leoncx avatar lpinsivy avatar querwin avatar sc979 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

centreon-clapi's Issues

Add shortcut for login


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.

contact group issue


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]#@

Get Services List


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

Add a object without -v switch should exit with an error, not just printing an error


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 $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1;check'

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 $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1;check'
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.

hostgroup_relation table not populated


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:

/*

  • Insert HostGroup Relation
    */
    $request = "INSERT INTO hostgroup_relation (hostgroup_hg_id, host_host_id) values (".$information["host_group"].",".$host_id.")";
    $this->DB->query($request);

Otherwise I found no way to make a relation between an host and a hostgroup.

Host-catégorie


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.

doesnt remove the \ char when dollar sign is escaped


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:

  • Command line: @/usr/local/centreon/www/modules/centreon-clapi/core/centreon -u admin -p somone -o CMD -a ADD -v "LOG-SG-ANPE2-Active_Directory-Timeout;$USER1$/STD-NRPE -H $HOSTADDRESS$ -c STD-LDAP -a $ARG1$ $ARG2$ $ARG3$ $ARG4$;check"@
  • result in centreon: @$USER1$/STD-NRPE -H $HOSTADDRESS$ -c STD-LDAP -a $ARG1$ $ARG2$ $ARG3$ $ARG4$@

Help message is not correct for Contact


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:

  • ADDCCT: Add a contact (need -v parameters)
    #> ./centreon -u -p -a ADDCCT -v "name;alias;has_access_to_interface;is_admin;lang;password"

Warning: it is ';' not ':'

time period check bug


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

SNMP version


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"

Actions must exit with return code


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.

centcore pipe is hard coded


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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.