澳门新萄京官方网站-www.8455.com-澳门新萄京赌场网址

LCS管理员的工具,可以采集的指标

2019-06-22 作者:数据库网络   |   浏览(183)

 

Python调用RESTful:

Overview

This resource kit was originally released on June 27, 2005. For a complete list of fixes and changes in this version, please see KB article 912219.

The Live Communications Server 2005 with SP1 Resource Kit provides a set of tools and documentation to help simplify the deployment and operation of Live Communications Server 2005 with SP1. The Resource Kit can be used as a complement to the Microsoft Office Live Communications Server 2005 with SP1 Deployment and Reference Guides available on Live Communications Server Deployment Resources site.

The tools and documentation in the Resource Kit provide technical information and best practices for integration with the Active Directory directory services. Additionally these tools and documents improve your ability to manage the configuration and maintenance of the Live Communications Server 2005 technologies.

The tools in this Resource Kit are designed to be used with Live Communications Server 2005 with SP1 only. If you are looking for tools that work with Live Communications Server 2005 without SP1, please download the Live Communications Server 2005 Resource Kit.

Below are brief explanations of the tools included in the kit:

Archiving compliance tool
Provides the ability to export archived MESSAGE messages stored in the Live Communications Server 2005 with SP1 Archiving Service Database. This export contains the entire conversation sent as a single SMTP mail to an SMTP receiver drop directory. You can use this tool to export the Live Communications Server archived MESSAGES into a third party archiving compliance storage vendor.

Archiving Queries
Provides sample queries used to retrieve information from an archiving database.

Bulk Move User Script
Provides a scripted method for moving users from one Live Communications Server or pool to another.

Central Forest Toolset
Assists administrators in migrating from a cross-forest topology to a resource forest topology or a central forest and deploying Live Communications Server in a resource forest or central forest topology.

  • HSSClear - The HSSClear tool helps you migrate from a Live Communications Server 2003 cross-forest topology to a supported Live Communications Server 2005 topology. The tool clears the Active Directory attribute value, msRTCSIP-HomeServerString, of all Contact objects in the cross-forest topology. This attribute is obsolete for Live Communications Server 2005.
  • LCS SID Mapping - The LCS SID Mapping tool is used specifically for customers who have deployed Live Communications Server 2005 in a resource forest topology. The tool maps of the primary user account to the disabled user account in the resource forest.
  • LCS Users - The LCS Users Tool queries how many Live Communications Servers are deployed in your Active Directory service forest and how many users are enabled on each Live Communciations Server. This tool does not write any changes to Active Directory.
  • LCS Clean - The LCS Clean tool is used to clear the specific attribute values of Live Communications Server in the User or Contact objects in your Active Directory forest.

Check Domain Add
This tool, checkdomainadd.exe, helps in discovering Domain/Add state between all domains in the forest.

Check SPN
This script, checkspn.vbs, allows for non-domain administrators to install Live Communications Server and verifies that the service principal names (SPN) have been configured correctly, identify duplicates, and correct any errors.

Office Communicator 2005 Phone Normalization Script
The Phone Normalization utility enables IT administrators to modify phone fields in the Active Directory into Tel URI format for use by Communicator with PBX Remote Call Control features.

DBanalyze
DBanalyze is a command-line tool that gathers analysis reports of the Live Communications Server database.

Defrag Contacts
The Defrag Contacts tool creates a new distribution of users across the Live Communications Server pools and servers in the enterprise.

Exchange IM migration scripts
The Exchange IM Migration Scripts simplify the process of migrating from Exchange IM solution to Live Communications Server 2005.

FFL Search
The FFL Search tool facilitates searching across a large number of flat file logging (FFL) files generated when flat file logging is enabled at level 2 or higher on a busy server or over a prolonged period.

Flat File Logging
The Flat File Logging tool, is a command-line script that changes the appropriate WMI settings to enable logging on the Live Communications Server.

LCS Cert Utility
The LCS Cert Utility tool generates certificate online and offline certificate requests and import a certificate response issued by an offline CA (certification authority). It also allows users to delete certificates from the partner certificate store in Access Proxies.

LCS Check
LCS Check determines if Live Communications Server is properly configured for remote user access or federation. The tool checks the consistency of the server configuration and reports warnings and errors if it detects invalid configuration. You are presented with the required changes to fix the server configuration.

LCS Command Line Batches: CheckOUPermissions and Discover

  • The Checkoupermissions.xml discovers the Live Communications Server 2005-specific permissions that can be set on a container object or an organizational unit in Active Directory directory service.
  • Discover.xml detects schema state, forest and domain prep states and locates pools created for Live Communications Server 2005.

LCS Create Template
LCS Create Template helps you create a certificate template for Live Communications Server installations.

LCS Deny
LCSDeny helps administrators to manage the deny domains list on the Access Proxy. The tool can download the list of domains into the WMI configuration from HTTP or HTTPS URLs. The tool also can save the WMI configuration into a local XML file. Using the tool, you can add and remove a specific domain to or from the WMI list of denied domains or check if a domain is present in the list of denied domains.

LCS Diag
LCS Diag helps check the server configuration, the connectivity between servers, between clients and servers, and reports the fixes for any detected issues.
澳门新萄京官方网站 1
LCS Enable Configure Users
LCS Enable Configure Users queries how many servers are deployed in your Active Directory directory service forest and how many users are enabled on each server. This tool does not commit any changes to Active Directory.

LCS Error
LCS Error helps troubleshoot event log errors that do not display descriptive text. The tool attempts to map the error code to a description of the error. When possible, it prints the cause of the error and recommends a resolution.

LCS Monitor
LCS Monitor is an unsupported tool designed to enable logging of the Live Communications Server-specific application event log entries and tracing information.

LCS Ping
LCS Ping helps determine if a TCP connection can be created between specified servers and ports. The tool receives the server FQDN (fully qualified domain name) and port as input, then tries to establish a TCP connection to this target server. The tool also can read the WMI configuration on the server and verify connectivity to all other servers the local server is configured to connect to.

LCS Sync
LCSSync is the management agent for MIIS to synchronize LCS information from user forests to the central forest in a central forest topology deployment.

LCS Wizard
The LCS Wizard tool helps configure Live Communications Servers for remote user access or federation.

MocImp
The MocImp tool allows you to import contacts from the MSN network of Internet services into Microsoft Office Communicator 2005.

Branding Script
The Branding script allows your organization to create and display its own branding icon for partners similar to the way public IM service providers display their branding icon.

RTC Mon
The RCT Mon tool is used to examine client log files.

SIP Parser
The SipPar.dll can be used in conjunction with Netmon to capture SIP traffic on the network for SIP call flow verification or for troubleshooting.

SipView
The SIP View tool allows you to view the log files created by the flat file logging feature in Live Communications Server.

SRV Lookup
This tool retrieves and parses DNS SRV (server) records for a domain and can be used for scripting purposes or quickly examining a domain’s records.

Usage queries for Public IM Connectivity
These SQL queries determine the usage of public IM connectivity within an enterprise.

WMI (Windows Management Instrumentation) Scripts

  • The Import Configuration Settings script, lcsimportsettings.wsf, is a WMI script used to import settings for Live Communications Server 2005.
  • The Add Contacts script, lcsaddcontacts.wsf, is a WMI script used to add contacts for Live Communications Server users.
  • The Add Access Control Entries (ACEs) script, lcsaddaces.wsf, is a WMI script used to add ACEs for Live Communications Server users.
  • The Pool Level Settings script utilizes various back-end stores to save global, pool, server and user settings.

 下载地址:

 Documentation 
  Information 
  Commands/Modules 
  CheckDisk 
  CheckFileSize 
  CheckDriveSize 
  CheckFile 
  CheckEventLog 
  CheckSystem 
  CheckCPU 
  CheckUpTime 
  CheckServiceState 
  CheckProcState 
  CheckMem 
  CheckCounter 
  CheckHelpers 
  CheckAlwaysOK 
  CheckAlwaysCRITICAL 
  CheckAlwaysWARNING 
  CheckMultiple 
  FileLogger 
  NRPEListener 
  NSClientListener 
  SysTray 
  CheckWMI 
  CheckWMIValue 
  RemoteConfiguration 
  CheckExternalScripts 
  LUAScript 
  Guide 
  NSCAAgent 
  Donate 
CheckDisk.dll 
The CheckDisk module has various disk related checks currently focusing on size. But hopefully it will be extended with date existence and many other disk related checks in the future. Feel free to request checks that you need. 
• CheckFileSize, Check the size of one or more files or directories. 
• CheckDriveSize, Check the size of one or more Drives 
• CheckFile, Check various aspects on one or more files or directories. 
Configuration 
This module has no configuration directives. 
CheckFileSize 
CheckFileSize is part of the wiki:CheckDisk module 
This check does a recursive size calculation of the directory (or file) specified. A request has one or more options described in the table below. The order only matter in that the size has to be specified before the File option this becaous you can change the size for each drive by specifying multiple Size options. 
Option Values Description 
MaxWarn 
size-value 
The maximum size the directory is allowed before a warning state is returned. 
MaxCrit 
size-value 
The maximum size the directory is allowed before a critical state is returned. 
MinWarn 
size-value 
The minimum size the directory is allowed before a warning state is returned. 
MinCrit 
size-value 
The minimum size the directory is allowed before a critical state is returned. 
ShowAll 
None A Boolean flag to show size of directories that are not in an alarm state. If this is not specified only drives with an alarm state will be listed in the resulting string. 
File File or directory name The name of the file or directory that should have its size calculated. Notice that large directory structures will take a long time to check. 
File:<alias> File or directory name Same as the file option but using a short alias in the returned data. 
The size-value is a normal numeric-value with a unit postfix. The available postfixes are B for Byte, K for Kilobyte, M for Megabyte and finally G for Gigabyte. 
Examples 
Check the size of the windows directory and make sure it stays below 1 gigabyte: 
CheckFileSize ShowAll MaxWarn=1024M MaxCrit=4096M File:WIN=c:WINDOWS*.* 
WARNING: WIN: 2G (2325339822B)|WIN=2325339822;1073741824;4294967296 
define command { 
  command_name CheckFileSize 
  command_line check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckFileSize -a ShowAll MaxWarn=$ARG1$ MaxCrit=$ARG2$ File:$ARG4$=$ARG5$ 

check_command CheckFileSize!1024M!4096M!WIN!c:WINDOWS*.* 
Check the size of the pagefile.sys and make sure it stays above 1 gigabyte: 
CheckFileSize ShowAll MinWarn=1G  MinCrit=512M File=c:pagefile.sys 
OK: c:pagefile.sys: 1G (1610612736B) 
define command { 
command_name CheckPageFile 
command_line check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckFileSize -a ShowAll MinWarn=$ARG1$ MinCrit=$ARG2$ File:PageFile=c:pagefile.sys 

check_command CheckPageFile!1G!512M 
Sample of using individual size for multiple files.: 
CheckFileSize MaxWarn=2G MaxCrit=4G File=c:\pagefile.sys MaxWarn=1K MaxCrit=512 File=c:\boot.ini 
OK all file sizes are within bounds. 
define command { 
command_name CheckMyFiles 
command_line check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckFileSize -a MaxWarn=2G MaxCrit=4G File=c:\pagefile.sys MaxWarn=1K MaxCrit=512 File=c:\boot.ini 

check_command CheckMyFiles 
I have had to set this up like this for our Windows Servers 
# Check File Size === Greg Small
define command { 
  command_name CheckFileSize 
  command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckFileSize -a MaxWarn=$ARG1$ MaxCrit=$ARG2$ File=$ARG3$ 

CentOS6.5升级为CentOS7.0

CentOS6.5升级为CentOS7

升级前:

[root@localhost ~]# cat /proc/version 
Linux version 2.6.32-431.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Fri Nov 22 03:15:09 UTC 2013 
[root@localhost ~]# uname -a 
Linux localhost.localdomain 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux 
[root@localhost ~]# uname -r 
2.6.32-431.el6.x86_64 
[root@localhost ~]# lsb_release -a 
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch 
Distributor ID: CentOS 
Description: CentOS release 6.5 (Final) 
Release: 6.5 
Codename: Final

[root@localhost ~]# df -lhT 
Filesystem Type Size Used Avail Use% Mounted on 
/dev/mapper/VolGroup-lv_root ext4 45G 32G 12G 73% / 
tmpfs tmpfs 3.9G 0 3.9G 0% /dev/shm 
/dev/sda1 ext4 485M 75M 385M 17% /boot

升级过程:

redhat提供了一个redhat-upgrade-tool的升级工具; 
[1]配置软件源 
# vim /etc/yum.repos.d/upgrade.repo 
[upgrade] 
name=upgrade 
baseurl= 
enable=1 
gpgcheck=0 
[2]安装软件工具 
# yum -y install preupgrade-assistant-contents redhat-upgrade-tool preupgrade-assistant 
[3]升级前检查潜在问题 
# preupg
Preupg tool doesn't do the actual upgrade. 
Please ensure you have backed up your system and/or data in the event of a failed upgrade 
that would require a full re-install of the system from installation media. 
Do you want to continue? y/n 

Gathering logs used by preupgrade assistant: 
All installed packages : 01/11 ...finished (time 00:00s) 
All changed files : 02/11 ...finished (time 01:34s) 
Changed config files : 03/11 ...finished (time 00:00s) 
All users : 04/11 ...finished (time 00:00s) 
All groups : 05/11 ...finished (time 00:00s) 
Service statuses : 06/11 ...finished (time 00:00s) 
All installed files : 07/11 ...finished (time 00:01s) 
All local files : 08/11 ...finished (time 00:02s) 
All executable files : 09/11 ...finished (time 00:01s) 
RedHat signed packages : 10/11 ...finished (time 00:00s) 
CentOS signed packages : 11/11 ...finished (time 00:00s) 
Assessment of the system, running checks / SCE scripts: 
001/096 ...done (Configuration Files to Review) 
002/096 ...done (File Lists for Manual Migration) 
003/096 ...done (Bacula Backup Software) 
004/096 ...done (MySQL configuration) 
005/096 ...done (Migration of the MySQL data stack) 
006/096 ...done (Changes related to moving from MySQL to MariaDB) 
007/096 ...done (PostgreSQL upgrade content) 
008/096 ...done (GNOME Desktop Environment underwent several design modifications in CentOS 7 release) 
009/096 ...done (KDE Desktop Environment underwent several design modifications in CentOS 7 release) 
010/096 ...done (several graphic drivers not supported in CentOS 7) 
011/096 ...done (several input drivers not supported in CentOS 7) 
012/096 ...done (several kernel networking drivers not available in CentOS 7) 
013/096 ...done (several kernel storage drivers not available in CentOS 7) 
014/096 ...done (Names, Options and Output Format Changes in arptables) 
015/096 ...done (BIND9 running in a chroot environment check.) 
016/096 ...done (BIND9 configuration compatibility check) 
017/096 ...done (Move dhcpd/dhcprelay arguments from /etc/sysconfig/* to *.service files) 
018/096 ...done (DNSMASQ configuration compatibility check) 
019/096 ...done (Dovecot configuration compatibility check) 
020/096 ...done (Compatibility Between iptables and ip6tables) 
021/096 ...done (Net-SNMP check) 
022/096 ...done (Squid configuration compatibility check) 
023/096 ...done (Reusable Configuration Files) 
024/096 ...done (VCS repositories) 
025/096 ...done (Added and extended options for BIND9 configuration) 
026/096 ...done (Added options in DNSMASQ configuration) 
027/096 ...done (Packages not signed by CentOS) 
028/096 ...done (Obsoleted rpms) 
029/096 ...done (w3m not available in CentOS 7) 
030/096 ...done (report incompatibilities between CentOS 6 and 7 in qemu-guest-agent package) 
031/096 ...done (Removed options in coreutils binaries) 
032/096 ...done (Removed options in gawk binaries) 
033/096 ...done (Removed options in netstat binary) 
034/096 ...done (Removed options in quota tools) 
035/096 ...done (Removed rpms) 
036/096 ...done (Replaced rpms) 
037/096 ...done (GMP library incompatibilities) 
038/096 ...done (package downgrades) 
039/096 ...done (restore custom selinux configuration) 
040/096 ...done (General) 
041/096 ...done (samba shared directories selinux) 
042/096 ...done (CUPS Browsing/BrowsePoll configuration) 
043/096 ...done (CVS Package Split) 
044/096 ...done (FreeRADIUS Upgrade Verification) 
045/096 ...done (httpd configuration compatibility check) 
046/096 ...done (bind-dyndb-ldap) 
047/096 ...done (Identity Management Server compatibility check) 
048/096 ...done (IPA Server CA Verification) 
049/096 ...done (NTP configuration) 
050/096 ...done (Information on time-sync.target) 
051/096 ...done (OpenLDAP /etc/sysconfig and data compatibility) 
052/096 ...done (OpenSSH sshd_config migration content) 
053/096 ...done (OpenSSH sysconfig migration content) 
054/096 ...done (Configuration for quota_nld service) 
055/096 ...done (Disk quota netlink message daemon moved into quota-nld package) 
056/096 ...done (SSSD compatibility check) 
057/096 ...done (Luks encrypted partition) 
058/096 ...done (Clvmd and cmirrord daemon management.) 
059/096 ...done (State of LVM2 services.) 
060/096 ...done (device-mapper-multipath configuration compatibility check) 
061/096 ...done (Removal of scsi-target-utils) 
062/096 ...done (Configuration for warnquota tool) 
063/096 ...done (Disk quota tool warnquota moved into quota-warnquota package) 
064/096 ...done (Architecture Support) 
065/096 ...done (Binary rebuilds) 
066/096 ...done (Debuginfo packages) 
067/096 ...done (Cluster and High Availability) 
068/096 ...done (Quorum implementation) 
069/096 ...done (fix krb5kdc config file) 
070/096 ...done (File Systems, Partitions and Mounts Configuration Review) 
071/096 ...done (Read Only FHS directories) 
072/096 ...done (Sonamebumped libs) 
073/096 ...done (SonameKept Reusable Dynamic Libraries) 
074/096 ...done (Removed .so libs) 
075/096 ...done (In-place Upgrade Requirements for the /usr/ Directory) 
076/096 ...done (CA certificate bundles modified) 
077/096 ...done (Developer Tool Set packages) 
078/096 ...done (Hyper-V) 
079/096 ...done (Content for enabling and disabling services based on CentOS 6 system) 
080/096 ...done (Check for ethernet interface naming) 
081/096 ...done (User modification in /etc/rc.local and /etc/rc.d/rc.local) 
082/096 ...done (cgroups configuration compatibility check) 
083/096 ...done (Plugable authentication modules (PAM)) 
084/096 ...done (Foreign Perl modules) 
085/096 ...done (Python 2.7.5) 
086/096 ...done (Ruby 2.0.0) 
087/096 ...done (SCL collections) 
088/096 ...done (System kickstart) 
089/096 ...done (YUM) 
090/096 ...done (Check for usage of dangerous range of UID/GIDs) 
091/096 ...done (Incorrect usage of reserved UID/GIDs) 
092/096 ...done (NIS ypbind config files back-up) 
093/096 ...done (NIS Makefile back-up) 
094/096 ...done (NIS server maps check) 
095/096 ...done (NIS server MAXUID and MAXGID limits check) 
096/096 ...done (NIS server config file back-up) 
Assessment finished (time 01:32s) 
Result table with checks and their results for main contents: 
--------------------------------------------------------------------------------------------------------------- 
|Bacula Backup Software |notapplicable | 
|MySQL configuration |notapplicable | 
|Migration of the MySQL data stack |notapplicable | 
|Changes related to moving from MySQL to MariaDB |notapplicable | 
|PostgreSQL upgrade content |notapplicable | 
|GNOME Desktop Environment underwent several design modifications in CentOS 7 release |notapplicable | 
|KDE Desktop Environment underwent several design modifications in CentOS 7 release |notapplicable | 
|several graphic drivers not supported in CentOS 7 |notapplicable | 
|several input drivers not supported in CentOS 7 |notapplicable | 
|Names, Options and Output Format Changes in arptables |notapplicable | 
|BIND9 running in a chroot environment check. |notapplicable | 
|BIND9 configuration compatibility check |notapplicable | 
|Move dhcpd/dhcprelay arguments from /etc/sysconfig/* to *.service files |notapplicable | 
|DNSMASQ configuration compatibility check |notapplicable | 
|Dovecot configuration compatibility check |notapplicable | 
|Net-SNMP check |notapplicable | 
|Squid configuration compatibility check |notapplicable | 
|Added and extended options for BIND9 configuration |notapplicable | 
|Added options in DNSMASQ configuration |notapplicable | 
|w3m not available in CentOS 7 |notapplicable | 
|report incompatibilities between CentOS 6 and 7 in qemu-guest-agent package |notapplicable | 
|restore custom selinux configuration |notapplicable | 
|samba shared directories selinux |notapplicable | 
|FreeRADIUS Upgrade Verification |notapplicable | 
|httpd configuration compatibility check |notapplicable | 
|bind-dyndb-ldap |notapplicable | 
|Identity Management Server compatibility check |notapplicable | 
|IPA Server CA Verification |notapplicable | 
|OpenLDAP /etc/sysconfig and data compatibility |notapplicable | 
|SSSD compatibility check |notapplicable | 
|Clvmd and cmirrord daemon management. |notapplicable | 
|device-mapper-multipath configuration compatibility check |notapplicable | 
|Removal of scsi-target-utils |notapplicable | 
|Quorum implementation |notapplicable | 
|fix krb5kdc config file |notapplicable | 
|Ruby 2.0.0 |notapplicable | 
|NIS ypbind config files back-up |notapplicable | 
|NIS Makefile back-up |notapplicable | 
|NIS server maps check |notapplicable | 
|NIS server MAXUID and MAXGID limits check |notapplicable | 
|NIS server config file back-up |notapplicable | 
|several kernel networking drivers not available in CentOS 7 |pass | 
|several kernel storage drivers not available in CentOS 7 |pass | 
|Compatibility Between iptables and ip6tables |pass | 
|Reusable Configuration Files |pass | 
|NTP configuration |pass | 
|Information on time-sync.target |pass | 
|OpenSSH sshd_config migration content |pass | 
|Configuration for quota_nld service |pass | 
|Disk quota netlink message daemon moved into quota-nld package |pass | 
|Luks encrypted partition |pass | 
|Configuration for warnquota tool |pass | 
|Architecture Support |pass | 
|Debuginfo packages |pass | 
|Cluster and High Availability |pass | 
|Read Only FHS directories |pass | 
|In-place Upgrade Requirements for the /usr/ Directory |pass | 
|CA certificate bundles modified |pass | 
|Developer Tool Set packages |pass | 
|Hyper-V |pass | 
|Check for ethernet interface naming |pass | 
|User modification in /etc/rc.local and /etc/rc.d/rc.local |pass | 
|cgroups configuration compatibility check |pass | 
|Plugable authentication modules (PAM) |pass | 
|SCL collections |pass | 
|System kickstart |pass | 
|Incorrect usage of reserved UID/GIDs |pass | 
|VCS repositories |informational | 
|Removed options in coreutils binaries |informational | 
|Removed options in gawk binaries |informational | 
|Removed options in netstat binary |informational | 
|Removed options in quota tools |informational | 
|GMP library incompatibilities |informational | 
|CVS Package Split |informational | 
|Disk quota tool warnquota moved into quota-warnquota package |informational | 
|File Systems, Partitions and Mounts Configuration Review |informational | 
|Sonamebumped libs |informational | 
|SonameKept Reusable Dynamic Libraries |informational | 
|Removed .so libs |informational | 
|Foreign Perl modules |informational | 
|YUM |informational | 
|Replaced rpms |fixed | 
|package downgrades |fixed | 
|CUPS Browsing/BrowsePoll configuration |fixed | 
|OpenSSH sysconfig migration content |fixed | 
|State of LVM2 services. |fixed | 
|Configuration Files to Review |needs_inspection | 
|File Lists for Manual Migration |needs_inspection | 
|Obsoleted rpms |needs_inspection | 
|Binary rebuilds |needs_inspection | 
|Python 2.7.5 |needs_inspection | 
|Check for usage of dangerous range of UID/GIDs |needs_inspection | 
|Packages not signed by CentOS |needs_action | 
|Removed rpms |needs_action | 
|General |needs_action | 
|Content for enabling and disabling services based on CentOS 6 system |needs_action | 
--------------------------------------------------------------------------------------------------------------- 
Tarball with results is stored here /root/preupgrade-results/preupg_results-150112105344.tar.gz . 
The latest assessment is stored in directory /root/preupgrade . 
Summary information: 
We found some potential in-place upgrade risks. 
Read the file /root/preupgrade/result.html for more details. 
Upload results to UI by command: 
e.g. preupg -u -r /root/preupgrade-results/preupg_results-*.tar.gz .

[root@localhost ~]# preupg --riskcheck --verbose 
INPLACERISK: HIGH: We detected some non-CentOS signed packages, you can find the list in /root/preupgrade/./kickstart/noncentospkgs. You need to handle them yourself! 
INPLACERISK: HIGH: After upgrading to CentOS 7 there are still some el6 packages left. Add --cleanup-post option to redhat-upgrade-tool if you want to remove them automatically. 
INPLACERISK: HIGH: There were changes in SELinux policies between CentOS 6 and CentOS 7. Please, check solution in order to resolve this issue. 
INPLACERISK: HIGH: The service autofs on CentOS 7 is disabled by default. Enable them via commands: systemctl enable autofs && systemctl start autofs.service . 
INPLACERISK: HIGH: The service blk-availability on CentOS 7 is disabled by default. Enable them via commands: systemctl enable blk-availability && systemctl start blk-availability.service . 
INPLACERISK: HIGH: The service certmonger on CentOS 7 is disabled by default. Enable them via commands: systemctl enable certmonger && systemctl start certmonger.service . 
INPLACERISK: HIGH: The service haldaemon on CentOS 7 is disabled by default. Enable them via commands: systemctl enable haldaemon && systemctl start haldaemon.service . 
INPLACERISK: HIGH: The service ip6tables on CentOS 7 is disabled by default. Enable them via commands: systemctl enable ip6tables && systemctl start ip6tables.service . 
INPLACERISK: HIGH: The service mcelogd on CentOS 7 is disabled by default. Enable them via commands: systemctl enable mcelogd && systemctl start mcelogd.service . 
INPLACERISK: HIGH: The service messagebus on CentOS 7 is disabled by default. Enable them via commands: systemctl enable messagebus && systemctl start messagebus.service . 
INPLACERISK: HIGH: The service netfs on CentOS 7 is disabled by default. Enable them via commands: systemctl enable netfs && systemctl start netfs.service . 
INPLACERISK: HIGH: The service network on CentOS 7 is disabled by default. Enable them via commands: systemctl enable network && systemctl start network.service . 
INPLACERISK: HIGH: The service nfslock on CentOS 7 is disabled by default. Enable them via commands: systemctl enable nfslock && systemctl start nfslock.service . 
INPLACERISK: HIGH: The service portreserve on CentOS 7 is disabled by default. Enable them via commands: systemctl enable portreserve && systemctl start portreserve.service . 
INPLACERISK: HIGH: The service postfix on CentOS 7 is disabled by default. Enable them via commands: systemctl enable postfix && systemctl start postfix.service . 
INPLACERISK: HIGH: The service rpcgssd on CentOS 7 is disabled by default. Enable them via commands: systemctl enable rpcgssd && systemctl start rpcgssd.service . 
INPLACERISK: HIGH: The service udev-post on CentOS 7 is disabled by default. Enable them via commands: systemctl enable udev-post && systemctl start udev-post.service . 
INPLACERISK: MEDIUM: We detected some packages installed on the system were removed (obsoleted) between CentOS 6 and CentOS 7. This may break the functionality of the packages depending on them. 
INPLACERISK: MEDIUM: We detected some packages installed on the system were removed between CentOS 6 and CentOS 7. This may break the functionality of the packages depending on them. 
INPLACERISK: MEDIUM: Package coreutils-libs not provided by its replacement coreutils. In-place upgrade might not work properly, will be finished by postupgrade script! 
INPLACERISK: MEDIUM: Package libudev not provided by its replacement systemd-libs. In-place upgrade might not work properly, will be finished by postupgrade script! 
INPLACERISK: MEDIUM: Package ql2400-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script! 
INPLACERISK: MEDIUM: Package ql2200-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script! 
INPLACERISK: MEDIUM: Package redhat-lsb-graphics not provided by its replacement redhat-lsb-desktop. In-place upgrade might not work properly, will be finished by postupgrade script! 
INPLACERISK: MEDIUM: Package bfa-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script! 
INPLACERISK: MEDIUM: Package rt73usb-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script! 
INPLACERISK: MEDIUM: Package ql23xx-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script! 
INPLACERISK: MEDIUM: Package ql2100-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script! 
INPLACERISK: MEDIUM: Package ql2500-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script! 
INPLACERISK: MEDIUM: Package rt61pci-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script! 
INPLACERISK: MEDIUM: having one of [mdadm nss-util nss-tools audit libitm cmake libX11-common ca-certificates gtk2 libdrm pixman-devel mesa-libGLU gtk2-devel tzdata tzdata-java nspr elfutils-libelf nss openldap elfutils-libs libref_array libini_config java-1.7.0-openjdk libipa_hbac xorg-x11-proto-devel elfutils sssd systemtap-runtime mcelog libxcb libxcb-devel libX11 mesa-libGL pixman mesa-dri-drivers openscap certmonger audit-libs libpciaccess biosdevname sssd-client nss-sysinit java-1.6.0-openjdk libsss_idmap libipa_hbac-python libX11-devel kpartx mesa-private-llvm] package installed breaks upgrade 
INPLACERISK: MEDIUM: We detected some soname bumps in the libraries installed on the system. This may break the functionality of some of your 3rd party applications. They may need rebuild. Please check their requirements. 
INPLACERISK: MEDIUM: We detected some .so libraries installed on the system were removed between CentOS 6 and CentOS 7. This may break the functionality of some of your 3rd party applications. 
INPLACERISK: MEDIUM: The name cups-lpd was changed on CentOS 7 to one of these services: cups-lpd.socket cups-lpd@.service 
INPLACERISK: MEDIUM: The service mysqld is not handled by any package and will not be automatically enabled after in-place upgrade. 
INPLACERISK: SLIGHT: We detected some files where modifications are not tracked in the rpms. You may need to check their functionality after successful upgrade. 
INPLACERISK: SLIGHT: We detected some files untracked by rpms. Some of these may need manual check/migration after redhat-upgrade-tool and/or can cause conflicts or troubles during the installation. Try to reduce unnecessary untracked files before running redhat-upgrade-tool. 
INPLACERISK: SLIGHT: We detected some packages installed on the system changed their name between CentOS 6 and CentOS 7. Although they should be compatible, monitoring after the update is recommended. 
INPLACERISK: SLIGHT: export shell commands will be deleted from /etc/sysconfig/sshd 
INPLACERISK: SLIGHT: Some binaries untracked by RPM were discovered on the system and may need rebuild after upgrade. 
INPLACERISK: SLIGHT: Some scripts untracked by RPM were discovered on the system and may not work properly after upgrade. 
INPLACERISK: SLIGHT: /usr/lib64/python2.6/site-packages/gtk-2.0 is owned by an RPM package that was not signed by CentOS. 
INPLACERISK: SLIGHT: /usr/lib64/python2.6/site-packages/report is not owned by any RPM package. 
INPLACERISK: SLIGHT: /usr/lib64/python2.6/site-packages/reportclient is not owned by any RPM package. 
[root@localhost ~]# redhat-upgrade-tool --force --cleanup-post --network 7.0 --instrepo=
setting up repos... 
No upgrade available for the following repos: base extras updates 
.treeinfo | 1.1 kB 00:00 
getting boot images... 
vmlinuz-redhat-upgrade-tool | 4.7 MB 00:30 
initramfs-redhat-upgrade-tool.img | 32 MB 09:54 
setting up update... 
finding updates 100% [==========================================================] 
(1/920): GConf2-3.2.6-8.el7.x86_64.rpm | 1.0 MB 00:06 
(2/920): ORBit2-2.14.19-13.el7.x86_64.rpm | 176 kB 00:01

(616/920): perl-File-Fetch-0.42-2.el7.noarch.rpm                              |  27 kB     00:00    

Downloading failed: 下载软件包时出错。

  perl-Test-Harness-3.28-2.el7.noarch: failure: Packages/perl-Test-Harness-3.28-2.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

  perl-IO-HTML-1.00-2.el7.noarch: failure: Packages/perl-IO-HTML-1.00-2.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

  perl-XML-Grove-0.46alpha-52.el7.noarch: failure: Packages/perl-XML-Grove-0.46alpha-52.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

  sed-4.2.2-5.el7.x86_64: failure: Packages/sed-4.2.2-5.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

  redhat-lsb-cxx-4.1-24.el7.x86_64: failure: Packages/redhat-lsb-cxx-4.1-24.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

  python-nose-1.3.0-2.el7.noarch: failure: Packages/python-nose-1.3.0-2.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

  perl-HTTP-Date-6.02-8.el7.noarch: failure: Packages/perl-HTTP-Date-6.02-8.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

  tcp_wrappers-libs-7.6-77.el7.x86_64: failure: Packages/tcp_wrappers-libs-7.6-77.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

  samba-client-4.1.1-31.el7.x86_64: failure: Packages/samba-client-4.1.1-31.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

  tzdata-2014b-1.el7.noarch: failure: Packages/tzdata-2014b-1.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

  xcb-util-0.3.9-4.el7.x86_64: failure: Packages/xcb-util-0.3.9-4.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

  xorg-x11-fonts-Type1-7.5-9.el7.noarch: failure: Packages/xorg-x11-fonts-Type1-7.5-9.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

  perl-podlators-2.5.1-3.el7.noarch: failure: Packages/perl-podlators-2.5.1-3.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

  samba-winbind-clients-4.1.1-31.el7.x86_64: failure: Packages/samba-winbind-clients-4.1.1-31.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

  2:vim-minimal-7.4.160-1.el7.x86_64: failure: Packages/vim-minimal-7.4.160-1.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

  1:qt-x11-4.8.5-8.el7.x86_64: failure: Packages/qt-x11-4.8.5-8.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

  2:texlive-kpathsea-bin-svn27347.0-32.20130427_r30134.el7.x86_64: failure: Packages/texlive-kpathsea-bin-svn27347.0-32.20130427_r30134.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

  perl-Version-Requirements-0.101022-244.el7.noarch: failure: Packages/perl-Version-Requirements-0.101022-244.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

  rpm-4.11.1-16.el7.x86_64: failure: Packages/rpm-4.11.1-16.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

  sound-theme-freedesktop-0.8-3.el7.noarch: failure: Packages/sound-theme-freedesktop-0.8-3.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

失败后再次执行该语句即可

由于此过程时间比较长,中间很可能因网络原因而中断,再次执行命令会接着上次出错的继续(304=920-616)

[root@localhost ~]``# redhat-upgrade-tool --force --cleanup-post --network 7.0 --instrepo=http://mirror.centos.org/centos/7.0.1406/os/x86_64

setting up repos...

No upgrade available ``for the following repos: base extras updates

.treeinfo                                                                                                                                                                          | 1.1 kB     00:00

getting boot images...

setting up update...

verify ``local files 100% [================================================================================================================================================================================]

(1``/304``): perl-File-Listing-6.04-7.el7.noarch.rpm                                                                                                                                   |  13 kB     00:00

(2``/304``): perl-File-Path-2.09-2.el7.noarch.rpm                                                                                                                                      |  26 kB     00:00

……

rpm transaction 100% [===================================================================================================================================================================================]

rpm ``install 100% [=======================================================================================================================================================================================]

setting up system ``for upgrade

Finished. Reboot to start upgrade.

You have new mail ``in /var/spool/mail/root

[root@localhost ~]# reboot

重启之后,机器会使用下载好的包开始更新自己,依据这机器的处理速度不同相应的解析时间会有所不同,期望数分钟而不是几秒。

[5]升级完成,而且文件系统的类型仍然是升级前的ext4

[root@localhost ~]``# cat /etc/redhat-release

CentOS Linux release 7.0.1406 (Core)

[root@localhost ~]``# lsb_release -a

LSB Version::core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch

Distributor ID:CentOS

Description:CentOS Linux release 7.0.1406 (Core)

Release:7.0.1406

Codename:Core

[root@localhost ~]``# cat /proc/version

Linux version 3.10.0-123.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC) ) ``#1 SMP Mon Jun 30 12:09:22 UTC 2014

[root@localhost ~]``# uname -a

Linux localhost.localdomain 3.10.0-123.el7.x86_64 ``#1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

[root@localhost ~]``# uname -r

3.10.0-123.el7.x86_64

[root@localhost ~]``# df -lhT

文件系统                     类型      容量  已用  可用 已用% 挂载点

/dev/mapper/VolGroup-lv_root ext4       45G   32G   12G   74% /

devtmpfs                     devtmpfs  3.9G     0  3.9G    0% ``/dev

tmpfs                        tmpfs     3.9G     0  3.9G    0% ``/dev/shm

tmpfs                        tmpfs     3.9G  8.3M  3.9G    1% ``/run

tmpfs                        tmpfs     3.9G     0  3.9G    0% ``/sys/fs/cgroup

/dev/sda1 ext4      477M   91M  358M   21% ``/boot

Preface

本文就是参考该英文做了一下试验,后续补充一下翻译。

define service{ 
use xx-app-service 
host_name SERVER01 
service_description         Information store database 
check_command         CheckFileSize!13G!15.5G!'d:\exchsrvr\mdbdata\priv1.edb' 
}
CheckDriveSize 
CheckDriveSize is part of the CheckDisk module 
This check verifies the size of various drives specified on the command line. A request has one or more options described in the table below. The order only matters in that the size has to be specified before the Drive option because you can change the size for each drive by specifying multiple Size options. 
Option Values Description 
MaxWarnFree size-value or % 
The maximum allowed free space for the drive(s). 
MaxCritFree size-value or % 
The maximum allowed free space for the drive(s). 
MinWarnFree size-value or % 
The minimum allowed free space for the drive(s). 
MinCritFree size-value or % 
The minimum allowed free space for the drive(s). 
MaxWarnUsed size-value or % 
The maximum allowed used space for the drive(s). 
MaxCritUsed size-value or % 
The maximum allowed used space for the drive(s). 
MinWarnUsed size-value or % 
The minimum allowed used space for the drive(s). 
MinCritUsed size-value or % 
The minimum allowed used space for the drive(s). 
ShowAll Empty, long If present will display information even if an item is not reporting a state. If set to long will display more information. 
Drive A Drive letter or the path of a mounted Volume The letter of the drive to check. 
FilterType FIXED, CDROM, REMOVABLE, REMOTE Filter for drive type to prevent checking drives of certain kinds (most useful when using CheckAll?). The default is FIXED 
CheckAll None Check all available drives 
CheckAllOthers None Check all drives (matching Filters) except those specified in the Drive= clause. 
The size-value or % is a normal numeric-value with an optional unit or percentage postfix to specify large sizes. The available postfixes are B for Byte, K for Kilobyte, M for Megabyte, G for Gigabyte and finally % for percent free space. 
Examples 
Check the size of C: and make sure it has 10% free space: 
CheckDriveSize ShowAll MinWarnFree=10% MinCritFree=5% Drive=c: 
CRITICAL: C:: Total: 74.5G - Used: 71.2G (95%) - Free: 3.28G (5%) < critical|C:;5%;10;5; 
define command { 
  command_name CheckDriveSize 
  command_line check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckDriveSize -a Drive=$ARG1$ ShowAll MaxWarn=$ARG2$ MaxCrit=$ARG3$ 

check_command CheckDriveSize!C:!50%!75% 
To check the size of mounted volume c:volumne_test and make sure it has 1M free space 
CheckDriveSize ShowAll MaxWarn=1M MaxCrit=2M Drive="c:\volumne_test\" 
CRITICAL: c:volumne_test: 3M (4193280B)|c:volumne_test=4193280;0;0; 
check_command CheckDriveSize!c:volumne_test!1M!2M 
To check the size of all fixed and network drives and make sure they have atleast 1gig free space 
CheckDriveSize MinWarn=50% MinCrit=25% CheckAll FilterType=FIXED FilterType=REMOTE 
CRITICAL: D:: Total: 186G - Used: 186G (99%) - Free: 709M (1%) < warning, Y:: Total: 279G - Used: 279G (99%) - Free: 384M (1%) < critical|C:;76514398208;1073741824;536870912; D:;199303897088;1073741824;536870912; X:;35467034624;1073741824;536870912; Y:;299649466368;1073741824;536870912; 
define command { 
command_name CheckAllDrives 
command_line check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckDriveSize -a CheckAll FilterType=FIXED FilterType=REMOTE MinWarn=$ARG1$ MinCrit=$ARG2$ 

check_command CheckAllDrives!25%!50% 
Check all fixed and network drives but ignore C and F 
define command { 
command_name CheckAllDrivesExceptCF 
command_line check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckDriveSize -a CheckAllOthers FilterType=FIXED FilterType=REMOTE MinWarn=$ARG1$ MinCrit=$ARG2$ "Drive=C:\" Drive=F:\ 

CheckFile 
A new command to check a bunch of files. 
BETA 
Simple draft and subject to change. This works similarily to CheckEventLog and uses filters to filter out (or in) a certain amount of files and then checks the count against a given number reporting an error if the count is not within bounds. 
Option Values Description 
file A filename, filter or path The files to check for instance c:*.* will check the entire drive (bad idea) c:foobarmyfile.txt will check only that file. 
filter in, out, any, all Specify the way you want to filter things. (See section below) 
descriptions None Flag to specify if you want to include string representation of the file data (not implemented yet) 
truncate length of the returned set This will truncate the output after the specified length. As NRPE can only handle 1024 chars you need to truncate the output. 
MaxWarn 
number of records The maximum hits to allow before reporting a warning state. 
MaxCrit 
number of records The maximum hits to allow before reporting a critical state. 
MinWarn 
number of records The minimum hits to allow before reporting a warning state. 
MinCrit 
number of records The minimum hits to allow before reporting a critical state. 
filter-size size-expression 
The size a file should have. 
filter-creation time-expression 
Filter on a date (the time is specified from "now" not absolute. so filter-created=>2d will mean files created more then 2 days ago will match. 
filter-accessed time-expression 
Filter on a date (the time is specified from "now" not absolute.) 
filter-written time-expression 
Filter on a date (the time is specified from "now" not absolute.) 
syntax String A syntax string that describes how each matched file is shown the string can have the following keywords: %filename%, %creation%,

本文由澳门新萄京官方网站发布于数据库网络,转载请注明出处:LCS管理员的工具,可以采集的指标

关键词: