glpi / src / plugins / vigilo / inc / vigilo.function.php @ 7edf6638
History | View | Annotate | Download (4.41 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-syncevents' => array("VigiloConnector", array("type" => "syncevents")), |
58 |
'vigilo-connector-vigiconf' => array("VigiloConnector", array("type" => "vigiconf")), |
59 |
|
60 |
|
61 |
/**
|
62 |
* Nagios
|
63 |
*/
|
64 |
// Host/service/network monitoring and management system (RHEL/CentOS)
|
65 |
'nagios' => array("Nagios"), |
66 |
|
67 |
// Host/service/network monitoring and management system (Debian)
|
68 |
'nagios3' => array("Nagios"), |
69 |
|
70 |
|
71 |
/**
|
72 |
* Caches mémoires
|
73 |
*/
|
74 |
// High-performance memory object caching system
|
75 |
'memcached' => array("Memcached", array("port" => 11211)), |
76 |
|
77 |
// Data caching daemon for RRDtool
|
78 |
'rrdcached' => array( |
79 |
"RRDcached",
|
80 |
array(
|
81 |
'warn' => 0, |
82 |
'crit' => 0, |
83 |
'path' => '/var/lib/vigilo/connector-metro/rrdcached.sock', |
84 |
) |
85 |
), |
86 |
|
87 |
|
88 |
/**
|
89 |
* Serveurs SSH
|
90 |
*/
|
91 |
// Secure shell (SSH) server, for secure access from remote machines
|
92 |
'openssh-server' => array("SSH"), |
93 |
|
94 |
// Secure shell client and server (metapackage)
|
95 |
'ssh' => array("SSH"), |
96 |
|
97 |
|
98 |
/**
|
99 |
* Bases de données
|
100 |
*/
|
101 |
// PostgreSQL
|
102 |
// FIXME : on devrait utiliser un test plus ciblé
|
103 |
'postgresql-server' => array('TCP', array('port' => 5432, 'label' => 'PostgreSQL')), |
104 |
|
105 |
// MariaDB
|
106 |
'mariadb-server' => array('TCP', array('port' => 3306, 'label' => 'MariaDB')), |
107 |
|
108 |
// MySQL
|
109 |
'mysql-server' => array('TCP', array('port' => 3306, 'label' => 'MySQL')), |
110 |
|
111 |
// Oracle SQL
|
112 |
'oracle' => array('TCP', array('port' => 1521, 'label' => 'Oracle SQL')), |
113 |
|
114 |
// MSSQL (aka. "SQL Server")
|
115 |
'mssql' => array('TCP', array('port' => 1433, 'label' => 'SQL Server')), |
116 |
|
117 |
// MSSQL (aka. "SQL Server")
|
118 |
'sql server' => array('TCP', array('port' => 1433, 'label' => 'SQL Server')), |
119 |
|
120 |
|
121 |
/**
|
122 |
* Serveurs mandataires
|
123 |
*/
|
124 |
// Really small HTTP/HTTPS proxy
|
125 |
'micro-proxy' => array("Proxy"), |
126 |
|
127 |
// NTLM Authorization Proxy Server
|
128 |
'ntlmaps' => array("Proxy"), |
129 |
|
130 |
// Privacy enhancing HTTP Proxy
|
131 |
'privoxy' => array("Proxy"), |
132 |
|
133 |
// Full featured Web Proxy cache (HTTP proxy)
|
134 |
'squid3' => array("Proxy"), |
135 |
|
136 |
// A lightweight, non-caching, optionally anonymizing HTTP proxy
|
137 |
'tinyproxy' => array("Proxy"), |
138 |
); |
139 |
} |
140 |
|
141 |
function plugin_vigilo_MassiveActionsFieldsDisplay($params) |
142 |
{ |
143 |
global $CFG_GLPI; |
144 |
|
145 |
$opts = array( |
146 |
"name" => "vigilo_template", |
147 |
"value" => 0, |
148 |
"url" => $CFG_GLPI["root_doc"] . "/plugins/vigilo/ajax/getTemplates.php" |
149 |
); |
150 |
|
151 |
Dropdown::show('PluginVigiloTemplate', $opts); |
152 |
return true; |
153 |
} |