Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

glpi / src / plugins / vigilo / inc / vigilo.function.php @ fa5253c9

History | View | Annotate | Download (4.31 KB)

1
<?php
2

    
3
function plugin_vigilo_getSoftwareMapping()
4
{
5
    return array(
6
        /**
7
         * Serveurs web
8
         */
9
        // Apache HTTP Server (RHEL/CentOS)
10
        'httpd'         => array("HTTP"),
11

    
12
        // Apache HTTP Server (Debian)
13
        'apache2'       => array("HTTP"),
14

    
15
        // AOL web server
16
        'aolserver-4'   => array("HTTP"),
17

    
18
        // Event-based HTTP/WSGI server
19
        'gunicorn'      => array("HTTP"),
20

    
21
        // Specialized HTTP server to access CD-ROM books
22
        'ebhttpd'       => array("HTTP"),
23

    
24
        // Fast webserver with minimal memory footprint
25
        'lighttpd'      => array("HTTP"),
26

    
27
        // Really small HTTP server
28
        'micro-httpd'   => array("HTTP"),
29

    
30
        // nghttp HTTP 2.0 servers
31
        'nghttp2'       => array("HTTP"),
32

    
33
        // Small, powerful, scalable web/proxy server
34
        'nginx'         => array("HTTP"),
35

    
36
        // Lightweight HTTP server for static content
37
        'webfs'         => array("HTTP"),
38

    
39
        // High performance HTTP 1.1 webserver written by Erlang
40
        'yaws'          => array("HTTP"),
41

    
42
        // HTTP server that runs on Emacsen
43
        'elserv'        => array("HTTP"),
44

    
45
        // Fast and very simple Ruby web server
46
        'thin'          => array("HTTP"),
47

    
48
        // Web server providing an HTTP interface to Redis
49
        'webdis'        => array("HTTP"),
50

    
51

    
52
        /**
53
         * Connecteurs de Vigilo
54
         */
55
        'vigilo-connector-metro'        => array("VigiloConnector", array("type" => "metro")),
56
        'vigilo-connector-nagios'       => array("VigiloConnector", array("type" => "nagios")),
57
        'vigilo-connector-vigiconf'     => array("VigiloConnector", array("type" => "vigiconf")),
58

    
59

    
60
        /**
61
         * Nagios
62
         */
63
        // Host/service/network monitoring and management system (RHEL/CentOS)
64
        'nagios'    => array("Nagios"),
65

    
66
        // Host/service/network monitoring and management system (Debian)
67
        'nagios3'   => array("Nagios"),
68

    
69

    
70
        /**
71
         * Caches mémoires
72
         */
73
        // High-performance memory object caching system
74
        'memcached'  => array("Memcached", array("port" => 11211)),
75

    
76
        // Data caching daemon for RRDtool
77
        'rrdcached'  => array(
78
            "RRDcached",
79
            array(
80
                'warn' => 0,
81
                'crit' => 0,
82
                'path' => '/var/lib/vigilo/connector-metro/rrdcached.sock',
83
            )
84
        ),
85

    
86

    
87
        /**
88
         * Serveurs SSH
89
         */
90
        // Secure shell (SSH) server, for secure access from remote machines
91
        'openssh-server'    => array("SSH"),
92

    
93
        // Secure shell client and server (metapackage)
94
        'ssh'               => array("SSH"),
95

    
96

    
97
        /**
98
         * Bases de données
99
         */
100
        // PostgreSQL
101
        // FIXME : on devrait utiliser un test plus ciblé
102
        'postgresql-server' => array('TCP', array('port' => 5432, 'label' => 'PostgreSQL')),
103

    
104
        // MariaDB
105
        'mariadb-server'    => array('TCP', array('port' => 3306, 'label' => 'MariaDB')),
106

    
107
        // MySQL
108
        'mysql-server'      => array('TCP', array('port' => 3306, 'label' => 'MySQL')),
109

    
110
        // Oracle SQL
111
        'oracle'            => array('TCP', array('port' => 1521, 'label' => 'Oracle SQL')),
112

    
113
        // MSSQL (aka. "SQL Server")
114
        'mssql'             => array('TCP', array('port' => 1433, 'label' => 'SQL Server')),
115

    
116
        // MSSQL (aka. "SQL Server")
117
        'sql server'        => array('TCP', array('port' => 1433, 'label' => 'SQL Server')),
118

    
119

    
120
        /**
121
         * Serveurs mandataires
122
         */
123
        // Really small HTTP/HTTPS proxy
124
        'micro-proxy'   => array("Proxy"),
125

    
126
        // NTLM Authorization Proxy Server
127
        'ntlmaps'       => array("Proxy"),
128

    
129
        // Privacy enhancing HTTP Proxy
130
        'privoxy'       => array("Proxy"),
131

    
132
        // Full featured Web Proxy cache (HTTP proxy)
133
        'squid3'        => array("Proxy"),
134

    
135
        // A lightweight, non-caching, optionally anonymizing HTTP proxy
136
        'tinyproxy'     => array("Proxy"),
137
    );
138
}
139

    
140
function plugin_vigilo_MassiveActionsFieldsDisplay($params)
141
{
142
    global $CFG_GLPI;
143

    
144
    $opts = array(
145
        "name" => "vigilo_template",
146
        "value" => 0,
147
        "url" => $CFG_GLPI["root_doc"] . "/plugins/vigilo/ajax/getTemplates.php"
148
    );
149

    
150
    Dropdown::show('PluginVigiloTemplate', $opts);
151
    return true;
152
}