-
Notifications
You must be signed in to change notification settings - Fork 3
/
build_centreon_plugins_32.bat
233 lines (223 loc) · 10.2 KB
/
build_centreon_plugins_32.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
@ECHO OFF
SET VERSION_PLUGIN=20000101
PATH=C:\Strawberry32\c\bin;C:\Strawberry32\perl\bin;C:\Windows\System32
SET PERL_INSTALL_DIR=C:\Strawberry32
SET ICO_FILE=resources\centreon.ico
SET RC_FILE=centreon.rc
CHDIR /d %~dp0
(
ECHO #define PP_MANIFEST_FILEFLAGS 0
ECHO #include ^<windows.h^>
ECHO.
ECHO CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "winres\\pp.manifest"
ECHO.
ECHO VS_VERSION_INFO VERSIONINFO
ECHO FILEVERSION 0,0,0,0
ECHO PRODUCTVERSION 0,0,0,0
ECHO FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
ECHO FILEFLAGS PP_MANIFEST_FILEFLAGS
ECHO FILEOS VOS_NT_WINDOWS32
ECHO FILETYPE VFT_APP
ECHO FILESUBTYPE VFT2_UNKNOWN
ECHO BEGIN
ECHO BLOCK "StringFileInfo"
ECHO BEGIN
ECHO BLOCK "000004B0"
ECHO BEGIN
ECHO VALUE "CompanyName", "Centreon\0"
ECHO VALUE "FileDescription", " \0"
ECHO VALUE "FileVersion", "1.0.0.0\0"
ECHO VALUE "InternalName", " \0"
ECHO VALUE "LegalCopyright", " \0"
ECHO VALUE "LegalTrademarks", " \0"
ECHO VALUE "OriginalFilename", " \0"
ECHO VALUE "ProductName", "centreon-plugins\0"
ECHO VALUE "ProductVersion", "%VERSION_PLUGIN%\0"
ECHO END
ECHO END
ECHO BLOCK "VarFileInfo"
ECHO BEGIN
ECHO VALUE "Translation", 0x00, 0x04B0
ECHO END
ECHO END
ECHO.
ECHO WINEXE ICON winres\\pp.ico
)> %RC_FILE%
FOR /f "delims=" %%i IN ('DIR /ad /B %PERL_INSTALL_DIR%\cpan\build\PAR-Packer-*') DO SET "PAR_PACKER_DIRNAME=%%i"
SET PAR_PACKER_SRC=%PERL_INSTALL_DIR%\cpan\build\%PAR_PACKER_DIRNAME%
COPY /Y %ICO_FILE% %PAR_PACKER_SRC%\myldr\winres\pp.ico
COPY /Y %RC_FILE% %PAR_PACKER_SRC%\myldr\winres\pp.rc
IF EXIST %PAR_PACKER_SRC%\myldr\ppresource.coff DEL %PAR_PACKER_SRC%\myldr\ppresource.coff
CD /D %PAR_PACKER_SRC%\myldr\ && perl Makefile.PL
CD /D %PAR_PACKER_SRC%\myldr\ && gmake boot.exe
CD /D %PAR_PACKER_SRC%\myldr\ && gmake Static.pm
ATTRIB -R %PERL_INSTALL_DIR%\perl\site\lib\PAR\StrippedPARL\Static.pm
COPY /Y %PAR_PACKER_SRC%\myldr\Static.pm %PERL_INSTALL_DIR%\perl\site\lib\PAR\StrippedPARL\Static.pm
CHDIR /d %~dp0
SET PAR_VERBATIM=1
CMD /C %PERL_INSTALL_DIR%\perl\site\bin\pp --lib=centreon-plugins\src\ ^
-o resources\scripts\win32\centreon\centreon_plugins.exe centreon-plugins\src\centreon_plugins.pl ^
--unicode ^
-X IO::Socket::INET6 ^
--link=%PERL_INSTALL_DIR%\c\bin\libxml2-2_.dll ^
--link=%PERL_INSTALL_DIR%\c\bin\libiconv-2_.dll ^
--link=%PERL_INSTALL_DIR%\c\bin\liblzma-5_.dll ^
--link=%PERL_INSTALL_DIR%\c\bin\zlib1_.dll ^
--link=%PERL_INSTALL_DIR%\c\bin\libcrypto-1_1_.dll ^
--link=%PERL_INSTALL_DIR%\c\bin\libssl-1_1_.dll ^
-M Authen::NTLM ^
-M Date::Manip ^
-M Email::Send::SMTP::Gmail ^
-M HTTP::ProxyPAC ^
-M IO::Socket::SSL ^
-M JE ^
-M JSON::XS ^
-M Net::FTPSSL ^
-M Net::NTP ^
-M Net::SSLeay ^
-M Pod::Simple::Search ^
-M Tie::RefHash::Weak ^
-M Win32::Job ^
-M XML::LibXML::SAX ^
-M Safe ^
-M apps::backup::backupexec::local::plugin ^
-M apps::backup::backupexec::local::mode::alerts ^
-M apps::backup::backupexec::local::mode::disks ^
-M apps::backup::backupexec::local::mode::jobs ^
-M apps::backup::backupexec::local::mode::listdisks ^
-M apps::backup::netbackup::local::plugin ^
-M apps::backup::netbackup::local::mode::dedupstatus ^
-M apps::backup::netbackup::local::mode::drivecleaning ^
-M apps::backup::netbackup::local::mode::drivestatus ^
-M apps::backup::netbackup::local::mode::jobstatus ^
-M apps::backup::netbackup::local::mode::listpolicies ^
-M apps::backup::netbackup::local::mode::tapeusage ^
-M apps::backup::veeam::local::plugin ^
-M apps::backup::veeam::local::mode::jobstatus ^
-M apps::backup::veeam::local::mode::licenses ^
-M apps::backup::veeam::local::mode::listjobs ^
-M apps::backup::veeam::local::mode::listrepositories ^
-M apps::backup::veeam::local::mode::repositories ^
-M apps::backup::veeam::local::mode::tapejobs ^
-M apps::backup::veeam::local::mode::vsbjobs ^
-M apps::centreon::local::plugin ^
-M apps::centreon::local::mode::downtimetrap ^
-M apps::centreon::local::mode::centreonpluginsversion ^
-M apps::citrix::local::plugin ^
-M apps::citrix::local::mode::license ^
-M apps::citrix::local::mode::session ^
-M apps::citrix::local::mode::zone ^
-M apps::citrix::local::mode::folder ^
-M apps::microsoft::activedirectory::local::plugin ^
-M apps::microsoft::activedirectory::local::mode::dcdiag ^
-M apps::microsoft::activedirectory::local::mode::dfsrbacklog ^
-M apps::microsoft::activedirectory::local::mode::netdom ^
-M apps::microsoft::exchange::local::plugin ^
-M apps::microsoft::exchange::local::mode::activesyncmailbox ^
-M apps::microsoft::exchange::local::mode::databases ^
-M apps::microsoft::exchange::local::mode::listdatabases ^
-M apps::microsoft::exchange::local::mode::imapmailbox ^
-M apps::microsoft::exchange::local::mode::mailboxes ^
-M apps::microsoft::exchange::local::mode::mapimailbox ^
-M apps::microsoft::exchange::local::mode::outlookwebservices ^
-M apps::microsoft::exchange::local::mode::owamailbox ^
-M apps::microsoft::exchange::local::mode::queues ^
-M apps::microsoft::exchange::local::mode::replicationhealth ^
-M apps::microsoft::exchange::local::mode::services ^
-M apps::microsoft::hyperv::2012::local::plugin ^
-M apps::microsoft::hyperv::2012::local::mode::listnodevms ^
-M apps::microsoft::hyperv::2012::local::mode::scvmmdiscovery ^
-M apps::microsoft::hyperv::2012::local::mode::scvmmintegrationservice ^
-M apps::microsoft::hyperv::2012::local::mode::scvmmsnapshot ^
-M apps::microsoft::hyperv::2012::local::mode::scvmmvmstatus ^
-M apps::microsoft::hyperv::2012::local::mode::nodeintegrationservice ^
-M apps::microsoft::hyperv::2012::local::mode::nodereplication ^
-M apps::microsoft::hyperv::2012::local::mode::nodesnapshot ^
-M apps::microsoft::hyperv::2012::local::mode::nodevmstatus ^
-M apps::microsoft::iis::local::plugin ^
-M apps::microsoft::iis::local::mode::listapplicationpools ^
-M apps::microsoft::iis::local::mode::applicationpoolstate ^
-M apps::microsoft::iis::local::mode::listsites ^
-M apps::microsoft::iis::local::mode::webservicestatistics ^
-M apps::microsoft::mscs::local::plugin ^
-M apps::microsoft::mscs::local::mode::listnodes ^
-M apps::microsoft::mscs::local::mode::listresources ^
-M apps::microsoft::mscs::local::mode::networkstatus ^
-M apps::microsoft::mscs::local::mode::nodestatus ^
-M apps::microsoft::mscs::local::mode::resourcestatus ^
-M apps::microsoft::mscs::local::mode::resourcegroupstatus ^
-M apps::microsoft::sccm::local::plugin ^
-M apps::microsoft::sccm::local::mode::databasereplicationstatus ^
-M apps::microsoft::sccm::local::mode::sitestatus ^
-M apps::microsoft::wsus::local::plugin ^
-M apps::microsoft::wsus::local::mode::computersstatus ^
-M apps::microsoft::wsus::local::mode::updatesstatus ^
-M apps::microsoft::wsus::local::mode::synchronisationstatus ^
-M apps::microsoft::wsus::local::mode::serverstatistics ^
-M apps::protocols::ldap::plugin ^
-M apps::protocols::ldap::mode::login ^
-M apps::protocols::ldap::mode::search ^
-M apps::protocols::ftp::plugin ^
-M apps::protocols::ftp::mode::commands ^
-M apps::protocols::ftp::mode::date ^
-M apps::protocols::ftp::mode::filescount ^
-M apps::protocols::ftp::mode::login ^
-M apps::protocols::http::plugin ^
-M apps::protocols::http::mode::expectedcontent ^
-M apps::protocols::http::mode::response ^
-M apps::protocols::tcp::plugin ^
-M apps::protocols::tcp::mode::responsetime ^
-M apps::protocols::x509::plugin ^
-M apps::protocols::x509::custom::file ^
-M apps::protocols::x509::custom::https ^
-M apps::protocols::x509::custom::tcp ^
-M apps::protocols::x509::mode::certificate ^
-M centreon::common::protocols::ldap::lib::ldap ^
-M centreon::common::powershell::exchange::powershell ^
-M centreon::common::powershell::functions ^
-M centreon::common::powershell::sccm::databasereplicationstatus ^
-M centreon::common::powershell::sccm::sitestatus ^
-M centreon::common::powershell::windows::liststorages ^
-M centreon::common::powershell::wsus::computersstatus ^
-M centreon::common::powershell::wsus::updatesstatus ^
-M centreon::common::powershell::wsus::synchronisationstatus ^
-M centreon::common::powershell::wsus::serverstatistics ^
-M centreon::plugins::alternative::Getopt ^
-M centreon::plugins::backend::http::lwp ^
-M centreon::plugins::backend::http::curl ^
-M centreon::plugins::backend::http::curlconstants ^
-M centreon::plugins::backend::ssh::libssh ^
-M centreon::plugins::backend::ssh::libsshconstants ^
-M centreon::plugins::backend::ssh::plink ^
-M centreon::plugins::backend::ssh::sshcli ^
-M centreon::plugins::script ^
-M centreon::plugins::script_custom::cli ^
-M hardware::devices::safenet::hsm::protecttoolkit::plugin ^
-M hardware::devices::safenet::hsm::protecttoolkit::mode::hardware ^
-M hardware::devices::safenet::hsm::protecttoolkit::mode::components::temperature ^
-M hardware::devices::safenet::hsm::protecttoolkit::mode::components::hwstatus ^
-M hardware::devices::safenet::hsm::protecttoolkit::mode::components::memory ^
-M os::windows::local::plugin ^
-M os::windows::local::mode::cmdreturn ^
-M os::windows::local::mode::ntp ^
-M os::windows::local::mode::pendingreboot ^
-M os::windows::local::mode::sessions ^
-M os::windows::local::mode::liststorages ^
-M os::windows::local::mode::updates ^
-M os::windows::local::mode::listcertificates ^
-M os::windows::local::mode::certificates ^
-M storage::dell::compellent::local::plugin ^
-M storage::dell::compellent::local::mode::hbausage ^
-M storage::dell::compellent::local::mode::volumeusage ^
-M storage::emc::symmetrix::vmax::local::plugin ^
-M storage::emc::symmetrix::vmax::local::mode::hardware ^
-M storage::emc::symmetrix::vmax::local::mode::components::cabling ^
-M storage::emc::symmetrix::vmax::local::mode::components::director ^
-M storage::emc::symmetrix::vmax::local::mode::components::fabric ^
-M storage::emc::symmetrix::vmax::local::mode::components::module ^
-M storage::emc::symmetrix::vmax::local::mode::components::power ^
-M storage::emc::symmetrix::vmax::local::mode::components::sparedisk ^
-M storage::emc::symmetrix::vmax::local::mode::components::temperature ^
-M storage::emc::symmetrix::vmax::local::mode::components::voltage ^
--verbose
DEL /F /Q %RC_FILE%