Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package monitoring-plugins-nwc_health for openSUSE:Factory checked in at 2021-10-26 20:14:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/monitoring-plugins-nwc_health (Old) and /work/SRC/openSUSE:Factory/.monitoring-plugins-nwc_health.new.1890 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "monitoring-plugins-nwc_health" Tue Oct 26 20:14:11 2021 rev:15 rq:927522 version:9.1 Changes: -------- --- /work/SRC/openSUSE:Factory/monitoring-plugins-nwc_health/monitoring-plugins-nwc_health.changes 2021-09-30 23:44:50.372568592 +0200 +++ /work/SRC/openSUSE:Factory/.monitoring-plugins-nwc_health.new.1890/monitoring-plugins-nwc_health.changes 2021-10-26 20:14:56.562049391 +0200 @@ -1,0 +2,7 @@ +Sun Oct 17 13:47:48 UTC 2021 - Martin Hauke <mar...@gmx.de> + +- Update to version 9.1 + * add Pulse Secure + * update git with latest cisco license gedoens + +------------------------------------------------------------------- Old: ---- check_nwc_health-9.0.1.1.tar.gz New: ---- check_nwc_health-9.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ monitoring-plugins-nwc_health.spec ++++++ --- /var/tmp/diff_new_pack.UgAazX/_old 2021-10-26 20:14:56.998049622 +0200 +++ /var/tmp/diff_new_pack.UgAazX/_new 2021-10-26 20:14:56.998049622 +0200 @@ -19,7 +19,7 @@ %define realname check_nwc_health Name: monitoring-plugins-nwc_health -Version: 9.0.1.1 +Version: 9.1 Release: 0 Summary: This plugin checks the health of network components and interfaces # https://github.com/lausser/check_nwc_health ++++++ check_nwc_health-9.0.1.1.tar.gz -> check_nwc_health-9.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/check_nwc_health-9.0.1.1/ChangeLog new/check_nwc_health-9.1/ChangeLog --- old/check_nwc_health-9.0.1.1/ChangeLog 2021-09-21 10:48:20.025629800 +0200 +++ new/check_nwc_health-9.1/ChangeLog 2021-10-13 11:59:07.804410600 +0200 @@ -1,3 +1,7 @@ +* 2021-10-13 9.1 + add Pulse Secure +* 2021-10-08 9.0.1.2 + update git with latest cisco license gedoens * 2021-09-21 9.0.1.1 remove broken line from Makefile.am * 2021-09-08 9.0.1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/check_nwc_health-9.0.1.1/GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/CISCOLICENSEMGMTMIB.pm new/check_nwc_health-9.1/GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/CISCOLICENSEMGMTMIB.pm --- old/check_nwc_health-9.0.1.1/GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/CISCOLICENSEMGMTMIB.pm 1970-01-01 01:00:00.000000000 +0100 +++ new/check_nwc_health-9.1/GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/CISCOLICENSEMGMTMIB.pm 2021-10-13 11:59:08.194410600 +0200 @@ -0,0 +1,207 @@ +package Monitoring::GLPlugin::SNMP::MibsAndOids::CISCOLICENSEMGMTMIB; + +$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'CISCO-LICENSE-MGMT-MIB'} = { + url => '', + name => 'CISCO-LICENSE-MGMT-MIB', +}; + +$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'CISCO-LICENSE-MGMT-MIB'} = + '1.3.6.1.4.1.9.9.543'; + +$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'CISCO-LICENSE-MGMT-MIB'} = { + 'ciscoLicenseMgmtMIB' => '1.3.6.1.4.1.9.9.543', + 'ciscoLicenseMgmtMIBNotifs' => '1.3.6.1.4.1.9.9.543.0', + 'ciscoLicenseMgmtMIBObjects' => '1.3.6.1.4.1.9.9.543.1', + 'clmgmtLicenseConfiguration' => '1.3.6.1.4.1.9.9.543.1.1', + 'clmgmtNextFreeLicenseActionIndex' => '1.3.6.1.4.1.9.9.543.1.1.1', + 'clmgmtLicenseActionTable' => '1.3.6.1.4.1.9.9.543.1.1.2', + 'clmgmtLicenseActionEntry' => '1.3.6.1.4.1.9.9.543.1.1.2.1', + 'clmgmtLicenseActionIndex' => '1.3.6.1.4.1.9.9.543.1.1.2.1.1', + 'clmgmtLicenseActionEntPhysicalIndex' => '1.3.6.1.4.1.9.9.543.1.1.2.1.2', + 'clmgmtLicenseActionTransferProtocol' => '1.3.6.1.4.1.9.9.543.1.1.2.1.3', + 'clmgmtLicenseActionTransferProtocolDefinition' => 'CISCO-LICENSE-MGMT-MIB::ClmgmtLicenseTransferProtocol', + 'clmgmtLicenseServerAddressType' => '1.3.6.1.4.1.9.9.543.1.1.2.1.4', + 'clmgmtLicenseServerAddress' => '1.3.6.1.4.1.9.9.543.1.1.2.1.5', + 'clmgmtLicenseServerUsername' => '1.3.6.1.4.1.9.9.543.1.1.2.1.6', + 'clmgmtLicenseServerPassword' => '1.3.6.1.4.1.9.9.543.1.1.2.1.7', + 'clmgmtLicenseFile' => '1.3.6.1.4.1.9.9.543.1.1.2.1.8', + 'clmgmtLicenseStore' => '1.3.6.1.4.1.9.9.543.1.1.2.1.9', + 'clmgmtLicenseActionLicenseIndex' => '1.3.6.1.4.1.9.9.543.1.1.2.1.10', + 'clmgmtLicensePermissionTicketFile' => '1.3.6.1.4.1.9.9.543.1.1.2.1.11', + 'clmgmtLicenseRehostTicketFile' => '1.3.6.1.4.1.9.9.543.1.1.2.1.12', + 'clmgmtLicenseBackupFile' => '1.3.6.1.4.1.9.9.543.1.1.2.1.13', + 'clmgmtLicenseStopOnFailure' => '1.3.6.1.4.1.9.9.543.1.1.2.1.14', + 'clmgmtLicenseAction' => '1.3.6.1.4.1.9.9.543.1.1.2.1.15', + 'clmgmtLicenseActionDefinition' => 'CISCO-LICENSE-MGMT-MIB::clmgmtLicenseAction', + 'clmgmtLicenseActionState' => '1.3.6.1.4.1.9.9.543.1.1.2.1.16', + 'clmgmtLicenseActionStateDefinition' => 'CISCO-LICENSE-MGMT-MIB::ClmgmtLicenseActionState', + 'clmgmtLicenseJobQPosition' => '1.3.6.1.4.1.9.9.543.1.1.2.1.17', + 'clmgmtLicenseActionFailCause' => '1.3.6.1.4.1.9.9.543.1.1.2.1.18', + 'clmgmtLicenseActionFailCauseDefinition' => 'CISCO-LICENSE-MGMT-MIB::ClmgmtLicenseActionFailCause', + 'clmgmtLicenseActionStorageType' => '1.3.6.1.4.1.9.9.543.1.1.2.1.19', + 'clmgmtLicenseActionRowStatus' => '1.3.6.1.4.1.9.9.543.1.1.2.1.20', + 'clmgmtLicenseAcceptEULA' => '1.3.6.1.4.1.9.9.543.1.1.2.1.21', + 'clmgmtLicenseEULAFile' => '1.3.6.1.4.1.9.9.543.1.1.2.1.22', + 'clmgmtLicenseActionResultTable' => '1.3.6.1.4.1.9.9.543.1.1.3', + 'clmgmtLicenseActionResultEntry' => '1.3.6.1.4.1.9.9.543.1.1.3.1', + 'clmgmtLicenseNumber' => '1.3.6.1.4.1.9.9.543.1.1.3.1.1', + 'clmgmtLicenseIndivActionState' => '1.3.6.1.4.1.9.9.543.1.1.3.1.2', + 'clmgmtLicenseIndivActionStateDefinition' => 'CISCO-LICENSE-MGMT-MIB::ClmgmtLicenseActionState', + 'clmgmtLicenseIndivActionFailCause' => '1.3.6.1.4.1.9.9.543.1.1.3.1.3', + 'clmgmtLicenseIndivActionFailCauseDefinition' => 'CISCO-LICENSE-MGMT-MIB::ClmgmtLicenseActionFailCause', + 'clmgmtLicenseInformation' => '1.3.6.1.4.1.9.9.543.1.2', + 'clmgmtLicenseStoreInfoTable' => '1.3.6.1.4.1.9.9.543.1.2.1', + 'clmgmtLicenseStoreInfoEntry' => '1.3.6.1.4.1.9.9.543.1.2.1.1', + 'clmgmtLicenseStoreIndex' => '1.3.6.1.4.1.9.9.543.1.2.1.1.1', + 'clmgmtLicenseStoreName' => '1.3.6.1.4.1.9.9.543.1.2.1.1.2', + 'clmgmtLicenseStoreTotalSize' => '1.3.6.1.4.1.9.9.543.1.2.1.1.3', + 'clmgmtLicenseStoreSizeRemaining' => '1.3.6.1.4.1.9.9.543.1.2.1.1.4', + 'clmgmtLicenseDeviceInfoTable' => '1.3.6.1.4.1.9.9.543.1.2.2', + 'clmgmtLicenseDeviceInfoEntry' => '1.3.6.1.4.1.9.9.543.1.2.2.1', + 'clmgmtDefaultLicenseStore' => '1.3.6.1.4.1.9.9.543.1.2.2.1.1', + 'clmgmtLicenseInfoTable' => '1.3.6.1.4.1.9.9.543.1.2.3', + 'clmgmtLicenseInfoEntry' => '1.3.6.1.4.1.9.9.543.1.2.3.1', + 'clmgmtLicenseStoreUsed' => '1.3.6.1.4.1.9.9.543.1.2.3.1.1', + 'clmgmtLicenseIndex' => '1.3.6.1.4.1.9.9.543.1.2.3.1.2', + 'clmgmtLicenseFeatureName' => '1.3.6.1.4.1.9.9.543.1.2.3.1.3', + 'clmgmtLicenseFeatureVersion' => '1.3.6.1.4.1.9.9.543.1.2.3.1.4', + 'clmgmtLicenseType' => '1.3.6.1.4.1.9.9.543.1.2.3.1.5', + 'clmgmtLicenseTypeDefinition' => 'CISCO-LICENSE-MGMT-MIB::clmgmtLicenseType', + 'clmgmtLicenseCounted' => '1.3.6.1.4.1.9.9.543.1.2.3.1.6', + 'clmgmtLicenseValidityPeriod' => '1.3.6.1.4.1.9.9.543.1.2.3.1.7', + 'clmgmtLicenseValidityPeriodRemaining' => '1.3.6.1.4.1.9.9.543.1.2.3.1.8', + 'clmgmtLicenseExpiredPeriod' => '1.3.6.1.4.1.9.9.543.1.2.3.1.9', + 'clmgmtLicenseMaxUsageCount' => '1.3.6.1.4.1.9.9.543.1.2.3.1.10', + 'clmgmtLicenseUsageCountRemaining' => '1.3.6.1.4.1.9.9.543.1.2.3.1.11', + 'clmgmtLicenseEULAStatus' => '1.3.6.1.4.1.9.9.543.1.2.3.1.12', + 'clmgmtLicenseComments' => '1.3.6.1.4.1.9.9.543.1.2.3.1.13', + 'clmgmtLicenseStatus' => '1.3.6.1.4.1.9.9.543.1.2.3.1.14', + 'clmgmtLicenseStatusDefinition' => 'CISCO-LICENSE-MGMT-MIB::clmgmtLicenseStatus', + 'clmgmtLicenseStartDate' => '1.3.6.1.4.1.9.9.543.1.2.3.1.15', + 'clmgmtLicenseEndDate' => '1.3.6.1.4.1.9.9.543.1.2.3.1.16', + 'clmgmtLicensePeriodUsed' => '1.3.6.1.4.1.9.9.543.1.2.3.1.17', + 'clmgmtLicensableFeatureTable' => '1.3.6.1.4.1.9.9.543.1.2.4', + 'clmgmtLicensableFeatureEntry' => '1.3.6.1.4.1.9.9.543.1.2.4.1', + 'clmgmtFeatureIndex' => '1.3.6.1.4.1.9.9.543.1.2.4.1.1', + 'clmgmtFeatureName' => '1.3.6.1.4.1.9.9.543.1.2.4.1.2', + 'clmgmtFeatureVersion' => '1.3.6.1.4.1.9.9.543.1.2.4.1.3', + 'clmgmtFeatureValidityPeriodRemaining' => '1.3.6.1.4.1.9.9.543.1.2.4.1.4', + 'clmgmtFeatureWhatIsCounted' => '1.3.6.1.4.1.9.9.543.1.2.4.1.5', + 'clmgmtFeatureStartDate' => '1.3.6.1.4.1.9.9.543.1.2.4.1.6', + 'clmgmtFeatureEndDate' => '1.3.6.1.4.1.9.9.543.1.2.4.1.7', + 'clmgmtFeaturePeriodUsed' => '1.3.6.1.4.1.9.9.543.1.2.4.1.8', + 'clmgmtLicenseDeviceInformation' => '1.3.6.1.4.1.9.9.543.1.3', + 'clmgmtNextFreeDevCredExportActionIndex' => '1.3.6.1.4.1.9.9.543.1.3.1', + 'clmgmtDevCredExportActionTable' => '1.3.6.1.4.1.9.9.543.1.3.2', + 'clmgmtDevCredExportActionEntry' => '1.3.6.1.4.1.9.9.543.1.3.2.1', + 'clmgmtDevCredExportActionIndex' => '1.3.6.1.4.1.9.9.543.1.3.2.1.1', + 'clmgmtDevCredEntPhysicalIndex' => '1.3.6.1.4.1.9.9.543.1.3.2.1.2', + 'clmgmtDevCredTransferProtocol' => '1.3.6.1.4.1.9.9.543.1.3.2.1.3', + 'clmgmtDevCredTransferProtocolDefinition' => 'CISCO-LICENSE-MGMT-MIB::ClmgmtLicenseTransferProtocol', + 'clmgmtDevCredServerAddressType' => '1.3.6.1.4.1.9.9.543.1.3.2.1.4', + 'clmgmtDevCredServerAddress' => '1.3.6.1.4.1.9.9.543.1.3.2.1.5', + 'clmgmtDevCredServerUsername' => '1.3.6.1.4.1.9.9.543.1.3.2.1.6', + 'clmgmtDevCredServerPassword' => '1.3.6.1.4.1.9.9.543.1.3.2.1.7', + 'clmgmtDevCredExportFile' => '1.3.6.1.4.1.9.9.543.1.3.2.1.8', + 'clmgmtDevCredCommand' => '1.3.6.1.4.1.9.9.543.1.3.2.1.9', + 'clmgmtDevCredCommandDefinition' => 'CISCO-LICENSE-MGMT-MIB::clmgmtDevCredCommand', + 'clmgmtDevCredCommandState' => '1.3.6.1.4.1.9.9.543.1.3.2.1.10', + 'clmgmtDevCredCommandStateDefinition' => 'CISCO-LICENSE-MGMT-MIB::ClmgmtLicenseActionState', + 'clmgmtDevCredCommandFailCause' => '1.3.6.1.4.1.9.9.543.1.3.2.1.11', + 'clmgmtDevCredCommandFailCauseDefinition' => 'CISCO-LICENSE-MGMT-MIB::clmgmtDevCredCommandFailCause', + 'clmgmtDevCredStorageType' => '1.3.6.1.4.1.9.9.543.1.3.2.1.12', + 'clmgmtDevCredRowStatus' => '1.3.6.1.4.1.9.9.543.1.3.2.1.13', + 'clmgmtLicenseNotifObjects' => '1.3.6.1.4.1.9.9.543.1.4', + 'clmgmtLicenseUsageNotifEnable' => '1.3.6.1.4.1.9.9.543.1.4.1', + 'clmgmtLicenseDeploymentNotifEnable' => '1.3.6.1.4.1.9.9.543.1.4.2', + 'clmgmtLicenseErrorNotifEnable' => '1.3.6.1.4.1.9.9.543.1.4.3', + 'ciscoLicenseMgmtMIBConform' => '1.3.6.1.4.1.9.9.543.2', + 'ciscoLicenseMgmtCompliances' => '1.3.6.1.4.1.9.9.543.2.1', + 'ciscoLicenseMgmtGroups' => '1.3.6.1.4.1.9.9.543.2.2', +}; + +$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'CISCO-LICENSE-MGMT-MIB'} = { + 'ClmgmtLicenseActionFailCause' => { + '1' => 'none', + '2' => 'generalFailure', + '3' => 'transferProtocolNotSupported', + '4' => 'fileServerNotReachable', + '5' => 'unrecognizedEntPhysicalIndex', + '6' => 'invalidLicenseFilePath', + '7' => 'invalidLicenseFile', + '8' => 'invalidLicenseLine', + '9' => 'licenseAlreadyExists', + '10' => 'licenseNotValidForDevice', + '11' => 'invalidLicenseCount', + '12' => 'invalidLicensePeriod', + '13' => 'licenseInUse', + '14' => 'invalidLicenseStore', + '15' => 'licenseStorageFull', + '16' => 'invalidPermissionTicketFile', + '17' => 'invalidPermissionTicket', + '18' => 'invalidRehostTicketFile', + '19' => 'invalidRehostTicket', + '20' => 'invalidLicenseBackupFile', + '21' => 'licenseClearInProgress', + '22' => 'invalidLicenseEULAFile', + }, + 'ClmgmtLicenseTransferProtocol' => { + '1' => 'none', + '2' => 'local', + '3' => 'tftp', + '4' => 'ftp', + '5' => 'rcp', + '6' => 'http', + '7' => 'scp', + '8' => 'sftp', + }, + 'clmgmtDevCredCommand' => { + '1' => 'noOp', + '2' => 'getDeviceCredentials', + }, + 'clmgmtDevCredCommandFailCause' => { + '1' => 'none', + '2' => 'unknownError', + '3' => 'transferProtocolNotSupported', + '4' => 'fileServerNotReachable', + '5' => 'unrecognizedEntPhysicalIndex', + '6' => 'invalidFile', + }, + 'clmgmtLicenseAction' => { + '1' => 'noOp', + '2' => 'install', + '3' => 'clear', + '4' => 'processPermissionTicket', + '5' => 'regenerateLastRehostTicket', + '6' => 'backup', + '7' => 'generateEULA', + }, + 'clmgmtLicenseType' => { + '1' => 'demo', + '2' => 'extension', + '3' => 'gracePeriod', + '4' => 'permanent', + '5' => 'paidSubscription', + '6' => 'evaluationSubscription', + '7' => 'extensionSubscription', + '8' => 'evalRightToUse', + '9' => 'rightToUse', + '10' => 'permanentRightToUse', + }, + 'clmgmtLicenseStatus' => { + '1' => 'inactive', + '2' => 'notInUse', + '3' => 'inUse', + '4' => 'expiredInUse', + '5' => 'expiredNotInUse', + '6' => 'usageCountConsumed', + }, + 'ClmgmtLicenseActionState' => { + '1' => 'none', + '2' => 'pending', + '3' => 'inProgress', + '4' => 'successful', + '5' => 'partiallySuccessful', + '6' => 'failed', + }, +}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/check_nwc_health-9.0.1.1/GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/PULSESECUREPSGMIB.pm new/check_nwc_health-9.1/GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/PULSESECUREPSGMIB.pm --- old/check_nwc_health-9.0.1.1/GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/PULSESECUREPSGMIB.pm 1970-01-01 01:00:00.000000000 +0100 +++ new/check_nwc_health-9.1/GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/PULSESECUREPSGMIB.pm 2021-10-13 11:59:08.314410600 +0200 @@ -0,0 +1,100 @@ +package Monitoring::GLPlugin::SNMP::MibsAndOids::PULSESECUREPSGMIB; + +$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'PULSESECURE-PSG-MIB'} = { + url => '', + name => 'PULSESECURE-PSG-MIB', +}; + +$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'PULSESECURE-PSG-MIB'} = + '1.3.6.1.4.1.12532'; + +$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'PULSESECURE-PSG-MIB'} = { + 'pulsesecure-gateway' => '1.3.6.1.4.1.12532', + 'logFullPercent' => '1.3.6.1.4.1.12532.1', + 'signedInWebUsers' => '1.3.6.1.4.1.12532.2', + 'signedInMailUsers' => '1.3.6.1.4.1.12532.3', + 'blockedIP' => '1.3.6.1.4.1.12532.4', + 'authServerName' => '1.3.6.1.4.1.12532.5', + 'productName' => '1.3.6.1.4.1.12532.6', + 'productVersion' => '1.3.6.1.4.1.12532.7', + 'fileName' => '1.3.6.1.4.1.12532.8', + 'meetingUserCount' => '1.3.6.1.4.1.12532.9', + 'iveCpuUtil' => '1.3.6.1.4.1.12532.10', + 'iveMemoryUtil' => '1.3.6.1.4.1.12532.11', + 'iveConcurrentUsers' => '1.3.6.1.4.1.12532.12', + 'clusterConcurrentUsers' => '1.3.6.1.4.1.12532.13', + 'iveTotalHits' => '1.3.6.1.4.1.12532.14', + 'iveFileHits' => '1.3.6.1.4.1.12532.15', + 'iveWebHits' => '1.3.6.1.4.1.12532.16', + 'iveAppletHits' => '1.3.6.1.4.1.12532.17', + 'ivetermHits' => '1.3.6.1.4.1.12532.18', + 'iveSAMHits' => '1.3.6.1.4.1.12532.19', + 'iveNCHits' => '1.3.6.1.4.1.12532.20', + 'meetingHits' => '1.3.6.1.4.1.12532.21', + 'meetingCount' => '1.3.6.1.4.1.12532.22', + 'logName' => '1.3.6.1.4.1.12532.23', + 'iveSwapUtil' => '1.3.6.1.4.1.12532.24', + 'diskFullPercent' => '1.3.6.1.4.1.12532.25', + 'blockedIPList' => '1.3.6.1.4.1.12532.26', + 'ipEntry' => '1.3.6.1.4.1.12532.26.1', + 'ipIndex' => '1.3.6.1.4.1.12532.26.1.1', + 'ipValue' => '1.3.6.1.4.1.12532.26.1.2', + 'logID' => '1.3.6.1.4.1.12532.27', + 'logType' => '1.3.6.1.4.1.12532.28', + 'logDescription' => '1.3.6.1.4.1.12532.29', + 'ivsName' => '1.3.6.1.4.1.12532.30', + 'ocspResponderURL' => '1.3.6.1.4.1.12532.31', + 'fanDescription' => '1.3.6.1.4.1.12532.32', + 'psDescription' => '1.3.6.1.4.1.12532.33', + 'raidDescription' => '1.3.6.1.4.1.12532.34', + 'clusterName' => '1.3.6.1.4.1.12532.35', + 'nodeList' => '1.3.6.1.4.1.12532.36', + 'vipType' => '1.3.6.1.4.1.12532.37', + 'currentVIP' => '1.3.6.1.4.1.12532.38', + 'newVIP' => '1.3.6.1.4.1.12532.39', + 'nicEvent' => '1.3.6.1.4.1.12532.40', + 'nodeName' => '1.3.6.1.4.1.12532.41', + 'iveTemperature' => '1.3.6.1.4.1.12532.42', + 'iveVPNTunnels' => '1.3.6.1.4.1.12532.43', + 'iveSSLConnections' => '1.3.6.1.4.1.12532.44', + 'esapVersion' => '1.3.6.1.4.1.12532.45', + 'vipChangeReason' => '1.3.6.1.4.1.12532.46', + 'processName' => '1.3.6.1.4.1.12532.47', + 'iveTotalSignedInUsers' => '1.3.6.1.4.1.12532.48', + 'vpnACLSPercentage' => '1.3.6.1.4.1.12532.49', + 'vpnACLSCount' => '1.3.6.1.4.1.12532.50', + 'blockedIPv6' => '1.3.6.1.4.1.12532.51', + 'iveTraps' => '1.3.6.1.4.1.12532.251', + 'iveSAProduct' => '1.3.6.1.4.1.12532.252', + 'iveICProduct' => '1.3.6.1.4.1.12532.253', + 'iveMAGProduct' => '1.3.6.1.4.1.12532.254', + 'iveProductMAG2600' => '1.3.6.1.4.1.12532.254.1', + 'iveMAG2600' => '1.3.6.1.4.1.12532.254.1.1', + 'iveProductMAG4610' => '1.3.6.1.4.1.12532.254.2', + 'iveMAG4610' => '1.3.6.1.4.1.12532.254.2.1', + 'iveProductSM160' => '1.3.6.1.4.1.12532.254.3', + 'iveMAGSM160' => '1.3.6.1.4.1.12532.254.3.1', + 'iveProductSM360' => '1.3.6.1.4.1.12532.254.4', + 'iveMAGSM360' => '1.3.6.1.4.1.12532.254.4.1', + 'iveVAProduct' => '1.3.6.1.4.1.12532.255', + 'iveProductVASPE' => '1.3.6.1.4.1.12532.255.1', + 'iveVASPE' => '1.3.6.1.4.1.12532.255.1.1', + 'iveProductVADTE' => '1.3.6.1.4.1.12532.255.2', + 'iveVADTE' => '1.3.6.1.4.1.12532.255.2.1', + 'ivePSAProduct' => '1.3.6.1.4.1.12532.256', + 'iveProductPSA300' => '1.3.6.1.4.1.12532.256.1', + 'ivePSA300' => '1.3.6.1.4.1.12532.256.1.1', + 'iveProductPSA3000' => '1.3.6.1.4.1.12532.256.2', + 'ivePSA3000' => '1.3.6.1.4.1.12532.256.2.1', + 'iveProductPSA5000' => '1.3.6.1.4.1.12532.256.3', + 'ivePSA5000' => '1.3.6.1.4.1.12532.256.3.1', + 'iveProductPSA7000f' => '1.3.6.1.4.1.12532.256.4', + 'ivePSA7000f' => '1.3.6.1.4.1.12532.256.4.1', + 'iveProductPSA7000c' => '1.3.6.1.4.1.12532.256.5', + 'ivePSA7000c' => '1.3.6.1.4.1.12532.256.5.1', + 'iveProductPSA10000' => '1.3.6.1.4.1.12532.256.6', + 'ivePSA10000' => '1.3.6.1.4.1.12532.256.6.1', +}; + +$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'PULSESECURE-PSG-MIB'} = { +}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/check_nwc_health-9.0.1.1/GLPlugin/lib/Monitoring/GLPlugin.pm new/check_nwc_health-9.1/GLPlugin/lib/Monitoring/GLPlugin.pm --- old/check_nwc_health-9.0.1.1/GLPlugin/lib/Monitoring/GLPlugin.pm 2021-09-21 10:48:20.465629800 +0200 +++ new/check_nwc_health-9.1/GLPlugin/lib/Monitoring/GLPlugin.pm 2021-10-13 11:59:08.174410600 +0200 @@ -20,7 +20,7 @@ $Data::Dumper::Sparseseen = 1; }; our $AUTOLOAD; -*VERSION = \'3.4.3.1'; +*VERSION = \'3.4.6'; use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/check_nwc_health-9.0.1.1/configure new/check_nwc_health-9.1/configure --- old/check_nwc_health-9.0.1.1/configure 2021-09-21 10:48:17.565629800 +0200 +++ new/check_nwc_health-9.1/configure 2021-10-13 11:59:05.164410600 +0200 @@ -1,7 +1,7 @@ #! /bin/sh # From configure.ac . # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for check_nwc_health 9.0.1.1. +# Generated by GNU Autoconf 2.69 for check_nwc_health 9.1. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. @@ -577,8 +577,8 @@ # Identity of this package. PACKAGE_NAME='check_nwc_health' PACKAGE_TARNAME='check_nwc_health' -PACKAGE_VERSION='9.0.1.1' -PACKAGE_STRING='check_nwc_health 9.0.1.1' +PACKAGE_VERSION='9.1' +PACKAGE_STRING='check_nwc_health 9.1' PACKAGE_BUGREPORT='' PACKAGE_URL='' @@ -1236,7 +1236,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures check_nwc_health 9.0.1.1 to adapt to many kinds of systems. +\`configure' configures check_nwc_health 9.1 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1308,7 +1308,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of check_nwc_health 9.0.1.1:";; + short | recursive ) echo "Configuration of check_nwc_health 9.1:";; esac cat <<\_ACEOF @@ -1393,7 +1393,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -check_nwc_health configure 9.0.1.1 +check_nwc_health configure 9.1 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1410,7 +1410,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by check_nwc_health $as_me 9.0.1.1, which was +It was created by check_nwc_health $as_me 9.1, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2268,7 +2268,7 @@ # Define the identity of the package. PACKAGE='check_nwc_health' - VERSION='9.0.1.1' + VERSION='9.1' cat >>confdefs.h <<_ACEOF @@ -3319,7 +3319,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by check_nwc_health $as_me 9.0.1.1, which was +This file was extended by check_nwc_health $as_me 9.1, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -3372,7 +3372,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -check_nwc_health config.status 9.0.1.1 +check_nwc_health config.status 9.1 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/check_nwc_health-9.0.1.1/configure.ac new/check_nwc_health-9.1/configure.ac --- old/check_nwc_health-9.0.1.1/configure.ac 2021-09-21 10:48:20.025629800 +0200 +++ new/check_nwc_health-9.1/configure.ac 2021-10-13 11:59:07.804410600 +0200 @@ -1,7 +1,7 @@ dnl Process this file with autoconf to produce a configure script. AC_REVISION ($Revision: 1.150 $) AC_PREREQ(2.58) -AC_INIT(check_nwc_health,9.0.1.1) +AC_INIT(check_nwc_health,9.1) AM_INIT_AUTOMAKE([1.9 tar-pax]) AM_MAINTAINER_MODE([disable]) AC_CANONICAL_HOST diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/check_nwc_health-9.0.1.1/plugins-scripts/Classes/Cisco/CISCOLICENSEMGMTMIB/Component/KeySubsystem.pm new/check_nwc_health-9.1/plugins-scripts/Classes/Cisco/CISCOLICENSEMGMTMIB/Component/KeySubsystem.pm --- old/check_nwc_health-9.0.1.1/plugins-scripts/Classes/Cisco/CISCOLICENSEMGMTMIB/Component/KeySubsystem.pm 1970-01-01 01:00:00.000000000 +0100 +++ new/check_nwc_health-9.1/plugins-scripts/Classes/Cisco/CISCOLICENSEMGMTMIB/Component/KeySubsystem.pm 2021-10-13 11:59:08.054410600 +0200 @@ -0,0 +1,65 @@ +package Classes::Cisco::CISCOLICENSEMGMTMIB::Component::KeySubsystem; +our @ISA = qw(Monitoring::GLPlugin::SNMP::Item); +use strict; + +sub init { + my ($self) = @_; + $self->get_snmp_objects("CISCO-LICENSE-MGMT-MIB", qw(clmgmtLicenseDeviceInformation clmgmtLicenseInformation clmgmtLicenseConfiguration)); + $self->get_snmp_tables('CISCO-LICENSE-MGMT-MIB', [ + ['licenses', 'clmgmtLicenseInfoTable', 'Classes::Cisco::CISCOLICENSEMGMTMIB::Component::KeySubsystem::License'], + ]); +} + +sub check { + my ($self) = @_; + if (! $self->{licenses} eq "false") { + $self->add_ok("licensing is not enabled"); + } else { + $self->SUPER::check(); + } +} + + +package Classes::Cisco::CISCOLICENSEMGMTMIB::Component::KeySubsystem::License; +our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem); +use strict; + +sub finish { + my ($self) = @_; + $self->{clmgmtLicenseValidityPeriodRemainingHuman} = scalar localtime (time + $self->{clmgmtLicenseValidityPeriodRemaining}); + $self->{clmgmtLicenseValidityPeriodRemainingDays} = + int($self->{clmgmtLicenseValidityPeriodRemaining} / (3600*24)); +} + +sub check { + my ($self) = @_; + #$self->{keyDaysUntilExpire} = int($self->{keySecondsUntilExpire} / 86400); + $self->add_info(sprintf "feature %s license type is %s", + $self->{clmgmtLicenseFeatureName}, + $self->{clmgmtLicenseType}, + ); + if ($self->{clmgmtLicenseType} =~ /^permanent/) { + $self->add_ok(); + } else { + my $label = lc "expiration_".(my $new = $self->{clmgmtLicenseFeatureName} =~ s/\s+//gr); + $self->set_thresholds(metric => $label, + warning => "7:", critical => "2:"); + $self->add_message($self->check_thresholds(metric => $label, + value => $self->{clmgmtLicenseValidityPeriodRemainingDays})); + $self->add_perfdata(label => $label, + value => $self->{clmgmtLicenseValidityPeriodRemainingDays} + ); + } +} +__END__ +This object identifies type of license. Licenses may have validity period defined in terms of time duration that the license is valid for or it may be defined in terms of actual calendar dates. Subscription licenses are licenses that have validity period defined in terms of calendar dates. +demo(1) - demo(evaluation license) license. +extension(2) - Extension(expiring) license. +gracePeriod(3) - Grace period license. +permanent(4) - permanent license, the license has no expiry date. +paidSubscription(5) - Paid subscription licenses are the licenses which are purchased by customers. These licenses have a start date and end date associated with them. +evaluationSubscription(6)-Evaluation subscription licenses are the trial licenses. These licenses are node locked and it can be obtained only once for an UDI. They are valid based on calendar days. These licenses have a start date and an end date associated with them and are issued once per UDI. +extensionSubscription(7)- Extension subscription licenses are similar to evaluation subscription licenses but these licenses are issued based on customer request. There are no restrictions on the number of licenses available for a UDI. +evalRightToUse(8) - Evaluation Right to use (RTU) license. +rightToUse(9) - Right to use (RTU) license. +permanentRightToUse(10) ? Right To Use license right after it is configured and is valid for the lifetime of the product. This is a Right To Use license which is not in evaluation mode for a limited time. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/check_nwc_health-9.0.1.1/plugins-scripts/Classes/Cisco/CISCOSMARTLICMIB/Component/KeySubsystem.pm new/check_nwc_health-9.1/plugins-scripts/Classes/Cisco/CISCOSMARTLICMIB/Component/KeySubsystem.pm --- old/check_nwc_health-9.0.1.1/plugins-scripts/Classes/Cisco/CISCOSMARTLICMIB/Component/KeySubsystem.pm 2021-09-21 10:48:20.335629800 +0200 +++ new/check_nwc_health-9.1/plugins-scripts/Classes/Cisco/CISCOSMARTLICMIB/Component/KeySubsystem.pm 2021-10-13 11:59:08.084410600 +0200 @@ -64,7 +64,8 @@ if ($self->{ciscoSlaRegistrationStatus} =~ /(notRegistered|registrationFailed)/ ) { $self->add_warning(); } - if ($self->{ciscoSlaRegisterSuccess} ne "true" ) { + if ($self->{ciscoSlaRegisterSuccess} and + $self->{ciscoSlaRegisterSuccess} ne "true" ) { $self->add_warning(sprintf "registration failed with %s", $self->{ciscoSlaRegisterFailureReason}); } } @@ -87,6 +88,11 @@ $self->{ciscoSlaAuthExpireTimeDays} = $self->{ciscoSlaAuthExpireTimeDays} < 0 ? 0 : $self->{ciscoSlaAuthExpireTimeDays}; + $self->{ciscoSlaAuthEvalPeriodLeftDays} = + int(($self->{ciscoSlaAuthEvalPeriodLeft} - time) / (3600*24)); + $self->{ciscoSlaAuthEvalPeriodLeftDays} = + $self->{ciscoSlaAuthEvalPeriodLeftDays} < 0 ? + 0 : $self->{ciscoSlaAuthEvalPeriodLeftDays}; if ($self->{ciscoSlaAuthOOCStartTime} > 0) { $self->{ciscoSlaAuthOOCStartTimeDays} = int((time - $self->{ciscoSlaAuthExpireTime}) / (3600*24)); @@ -101,7 +107,7 @@ $self->{ciscoSlaAuthComplianceStatus}); if ($self->{ciscoSlaAuthComplianceStatus} =~ /AUTHORIZED/) { # STRING: "AUTHORIZED" - # STRING: "AUTHORIZED - RESERVED" + # STRING: "AUTHORIZED - RESERVED" scheint der beste Status von allen zu sein $self->add_ok(); } else { $self->add_critical(); @@ -111,18 +117,34 @@ sprintf "smart agent entered out of compliance %d days ago", $self->{ciscoSlaAuthOOCStartTimeDays}); } - my $label = "sla_remaining_days"; - $self->set_thresholds(metric => $label, - warning => "7:", critical => "2:"); - $self->add_info(sprintf "authorization will expire in %d days", - $self->{ciscoSlaAuthExpireTimeDays}) - if $self->{ciscoSlaAuthExpireTimeDays}; - $self->add_info(sprintf "authorization has expired", - $self->{ciscoSlaAuthExpireTimeDays}) - if ! $self->{ciscoSlaAuthExpireTimeDays}; - $self->add_message($self->check_thresholds(metric => $label, - value => $self->{ciscoSlaAuthExpireTimeDays})); - $self->add_perfdata(label => $label, - value => $self->{ciscoSlaAuthExpireTimeDays}); + if ($self->{ciscoSlaAuthComplianceStatus} ne "AUTHORIZED - RESERVED") { + my $label = "sla_remaining_days"; + $self->set_thresholds(metric => $label, + warning => "7:", critical => "2:"); + $self->add_info(sprintf "authorization will expire in %d days", + $self->{ciscoSlaAuthExpireTimeDays}) + if $self->{ciscoSlaAuthExpireTimeDays}; + $self->add_info("authorization has expired") + if ! $self->{ciscoSlaAuthExpireTimeDays}; + $self->add_message($self->check_thresholds(metric => $label, + value => $self->{ciscoSlaAuthExpireTimeDays})); + $self->add_perfdata(label => $label, + value => $self->{ciscoSlaAuthExpireTimeDays}); + } + if ($self->{ciscoSlaAuthEvalPeriodInUse} and + $self->{ciscoSlaAuthEvalPeriodInUse} eq "true") { + my $label = "eval_remaining_days"; + $self->set_thresholds(metric => $label, + warning => "7:", critical => "2:"); + $self->add_info(sprintf "evaluation will expire in %d days", + $self->{ciscoSlaAuthEvalPeriodLeftDays}) + if $self->{ciscoSlaAuthEvalPeriodLeftDays}; + $self->add_info("evaluation has expired") + if ! $self->{ciscoSlaAuthEvalPeriodLeftDays}; + $self->add_message($self->check_thresholds(metric => $label, + value => $self->{ciscoSlaAuthEvalPeriodLeftDays})); + $self->add_perfdata(label => $label, + value => $self->{ciscoSlaAuthEvalPeriodLeftDays}); + } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/check_nwc_health-9.0.1.1/plugins-scripts/Classes/Cisco.pm new/check_nwc_health-9.1/plugins-scripts/Classes/Cisco.pm --- old/check_nwc_health-9.0.1.1/plugins-scripts/Classes/Cisco.pm 2021-09-21 10:48:20.145629800 +0200 +++ new/check_nwc_health-9.1/plugins-scripts/Classes/Cisco.pm 2021-10-13 11:59:07.914410600 +0200 @@ -67,6 +67,8 @@ } elsif ($self->mode =~ /device::licenses::/) { if ($self->implements_mib('CISCO-SMART-LIC-MIB')) { $self->analyze_and_check_lic_subsystem("Classes::Cisco::CISCOSMARTLICMIB::Component::KeySubsystem"); + } elsif ($self->implements_mib('CISCO-LICENSE-MGMT-MIB')) { + $self->analyze_and_check_lic_subsystem("Classes::Cisco::CISCOLICENSEMGMTMIB::Component::KeySubsystem"); } else { $self->no_such_mode(); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/check_nwc_health-9.0.1.1/plugins-scripts/Classes/Device.pm new/check_nwc_health-9.1/plugins-scripts/Classes/Device.pm --- old/check_nwc_health-9.0.1.1/plugins-scripts/Classes/Device.pm 2021-09-21 10:48:20.455629800 +0200 +++ new/check_nwc_health-9.1/plugins-scripts/Classes/Device.pm 2021-10-13 11:59:08.154410600 +0200 @@ -113,6 +113,9 @@ $self->rebless('Classes::Brocade'); } elsif ($self->{productname} =~ /Fibre Channel Switch/i) { $self->rebless('Classes::Brocade'); + } elsif ($self->{productname} =~ /Pulse Secure.*LLC/i) { + # Pulse Secure,LLC,Pulse Policy Secure,IC-6500,5.2R7.1 (build 37645) + $self->rebless('Classes::PulseSecure::Gateway'); } elsif ($self->{productname} =~ /Juniper.*MAG\-\d+/i) { # Juniper Networks,Inc,MAG-4610,7.2R10 $self->rebless('Classes::Juniper'); @@ -125,9 +128,6 @@ $self->rebless('Classes::Juniper'); } elsif ($self->{productname} =~ /JunOS/i) { $self->rebless('Classes::Juniper'); - } elsif ($self->{productname} =~ /Pulse Secure.*LLC/i) { - # Pulse Secure,LLC,Pulse Policy Secure,IC-6500,5.2R7.1 (build 37645) - $self->rebless('Classes::Juniper::IVE'); } elsif ($self->{productname} =~ /DrayTek.*Vigor/i) { $self->rebless('Classes::DrayTek'); } elsif ($self->implements_mib('NETGEAR-MIB')) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/check_nwc_health-9.0.1.1/plugins-scripts/Classes/PulseSecure/Gateway/Component/CpuSubsystem.pm new/check_nwc_health-9.1/plugins-scripts/Classes/PulseSecure/Gateway/Component/CpuSubsystem.pm --- old/check_nwc_health-9.0.1.1/plugins-scripts/Classes/PulseSecure/Gateway/Component/CpuSubsystem.pm 1970-01-01 01:00:00.000000000 +0100 +++ new/check_nwc_health-9.1/plugins-scripts/Classes/PulseSecure/Gateway/Component/CpuSubsystem.pm 2021-10-13 11:59:07.844410600 +0200 @@ -0,0 +1,24 @@ +package Classes::PulseSecure::Gateway::Component::CpuSubsystem; +our @ISA = qw(Monitoring::GLPlugin::SNMP::Item); +use strict; + +sub init { + my ($self) = @_; + $self->get_snmp_objects('PULSESECURE-PSG-MIB', (qw( + iveCpuUtil))); +} + +sub check { + my ($self) = @_; + $self->add_info('checking cpus'); + $self->add_info(sprintf 'cpu usage is %.2f%%', $self->{iveCpuUtil}); + # http://www.juniper.net/techpubs/software/ive/guides/howtos/SA-IC-MAG-SNMP-Monitoring-Guide.pdf + $self->set_thresholds(warning => 50, critical => 90); + $self->add_message($self->check_thresholds($self->{iveCpuUtil})); + $self->add_perfdata( + label => 'cpu_usage', + value => $self->{iveCpuUtil}, + uom => '%', + ); +} + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/check_nwc_health-9.0.1.1/plugins-scripts/Classes/PulseSecure/Gateway/Component/DiskSubsystem.pm new/check_nwc_health-9.1/plugins-scripts/Classes/PulseSecure/Gateway/Component/DiskSubsystem.pm --- old/check_nwc_health-9.0.1.1/plugins-scripts/Classes/PulseSecure/Gateway/Component/DiskSubsystem.pm 1970-01-01 01:00:00.000000000 +0100 +++ new/check_nwc_health-9.1/plugins-scripts/Classes/PulseSecure/Gateway/Component/DiskSubsystem.pm 2021-10-13 11:59:07.844410600 +0200 @@ -0,0 +1,40 @@ +package Classes::PulseSecure::Gateway::Component::DiskSubsystem; +our @ISA = qw(Monitoring::GLPlugin::SNMP::Item); +use strict; + +sub init { + my ($self) = @_; + $self->get_snmp_objects('PULSESECURE-PSG-MIB', (qw( + diskFullPercent raidDescription logFullPercent))); +} + +sub check { + my ($self) = @_; + $self->add_info('checking disks'); + $self->add_info(sprintf 'disk is %.2f%% full', + $self->{diskFullPercent}); + $self->set_thresholds(metric => 'disk_usage', warning => 80, critical => 90); + $self->add_message($self->check_thresholds(metric => 'disk_usage', + value => $self->{diskFullPercent})); + $self->add_perfdata( + label => 'disk_usage', + value => $self->{diskFullPercent}, + uom => '%', + ); + if ($self->{raidDescription} && $self->{raidDescription} =~ /(failed)|(unknown)/) { + $self->add_critical($self->{raidDescription}); + } + if (defined $self->{logFullPercent}) { + $self->add_info(sprintf 'log is %.2f%% full', + $self->{logFullPercent}); + $self->set_thresholds(metric => 'log_usage', warning => 80, critical => 90); + $self->add_message($self->check_thresholds(metric => 'log_usage', + value => $self->{logFullPercent})); + $self->add_perfdata( + label => 'log_usage', + value => $self->{logFullPercent}, + uom => '%', + ); + } +} + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/check_nwc_health-9.0.1.1/plugins-scripts/Classes/PulseSecure/Gateway/Component/EnvironmentalSubsystem.pm new/check_nwc_health-9.1/plugins-scripts/Classes/PulseSecure/Gateway/Component/EnvironmentalSubsystem.pm --- old/check_nwc_health-9.0.1.1/plugins-scripts/Classes/PulseSecure/Gateway/Component/EnvironmentalSubsystem.pm 1970-01-01 01:00:00.000000000 +0100 +++ new/check_nwc_health-9.1/plugins-scripts/Classes/PulseSecure/Gateway/Component/EnvironmentalSubsystem.pm 2021-10-13 11:59:07.844410600 +0200 @@ -0,0 +1,40 @@ +package Classes::PulseSecure::Gateway::Component::EnvironmentalSubsystem; +our @ISA = qw(Monitoring::GLPlugin::SNMP::Item); +use strict; + +sub init { + my ($self) = @_; + $self->{disk_subsystem} = + Classes::PulseSecure::Gateway::Component::DiskSubsystem->new(); + $self->get_snmp_objects('PULSESECURE-PSG-MIB', (qw( + iveTemperature fanDescription psDescription))); +} + +sub check { + my ($self) = @_; + $self->{disk_subsystem}->check(); + $self->add_info(sprintf "temperature is %.2f deg", $self->{iveTemperature}); + $self->set_thresholds(warning => 70, critical => 75); + $self->check_thresholds(0); + $self->add_perfdata( + label => 'temperature', + value => $self->{iveTemperature}, + warning => $self->{warning}, + critical => $self->{critical}, + ) if $self->{iveTemperature}; + if ($self->{fanDescription} && $self->{fanDescription} =~ /(failed)|(threshold)/i) { + $self->add_critical($self->{fanDescription}); + } + if ($self->{psDescription} && $self->{psDescription} =~ /failed/i) { + $self->add_critical($self->{psDescription}); + } + if (! $self->check_messages()) { + $self->add_ok("environmental hardware working fine"); + } +} + +sub dump { + my ($self) = @_; + $self->{disk_subsystem}->dump(); +} + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/check_nwc_health-9.0.1.1/plugins-scripts/Classes/PulseSecure/Gateway/Component/MemSubsystem.pm new/check_nwc_health-9.1/plugins-scripts/Classes/PulseSecure/Gateway/Component/MemSubsystem.pm --- old/check_nwc_health-9.0.1.1/plugins-scripts/Classes/PulseSecure/Gateway/Component/MemSubsystem.pm 1970-01-01 01:00:00.000000000 +0100 +++ new/check_nwc_health-9.1/plugins-scripts/Classes/PulseSecure/Gateway/Component/MemSubsystem.pm 2021-10-13 11:59:07.844410600 +0200 @@ -0,0 +1,33 @@ +package Classes::PulseSecure::Gateway::Component::MemSubsystem; +our @ISA = qw(Monitoring::GLPlugin::SNMP::Item); +use strict; + +sub init { + my ($self) = @_; + $self->get_snmp_objects('PULSESECURE-PSG-MIB', (qw( + iveMemoryUtil iveSwapUtil))); +} + +sub check { + my ($self) = @_; + $self->add_info('checking memory'); + $self->add_info(sprintf 'memory usage is %.2f%%, swap usage is %.2f%%', + $self->{iveMemoryUtil}, $self->{iveSwapUtil}); + $self->set_thresholds(warning => 90, critical => 95); + $self->add_message($self->check_thresholds($self->{iveMemoryUtil}), + sprintf 'memory usage is %.2f%%', $self->{iveMemoryUtil}); + $self->add_perfdata( + label => 'memory_usage', + value => $self->{iveMemoryUtil}, + uom => '%', + ); + $self->set_thresholds(warning => 5, critical => 10); + $self->add_message($self->check_thresholds($self->{iveSwapUtil}), + sprintf 'swap usage is %.2f%%', $self->{iveSwapUtil}); + $self->add_perfdata( + label => 'swap_usage', + value => $self->{iveSwapUtil}, + uom => '%', + ); +} + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/check_nwc_health-9.0.1.1/plugins-scripts/Classes/PulseSecure/Gateway/Component/UserSubsystem.pm new/check_nwc_health-9.1/plugins-scripts/Classes/PulseSecure/Gateway/Component/UserSubsystem.pm --- old/check_nwc_health-9.0.1.1/plugins-scripts/Classes/PulseSecure/Gateway/Component/UserSubsystem.pm 1970-01-01 01:00:00.000000000 +0100 +++ new/check_nwc_health-9.1/plugins-scripts/Classes/PulseSecure/Gateway/Component/UserSubsystem.pm 2021-10-13 11:59:07.834410600 +0200 @@ -0,0 +1,114 @@ +package Classes::PulseSecure::Gateway::Component::UserSubsystem; +our @ISA = qw(Monitoring::GLPlugin::SNMP::Item); +use strict; + +sub init { + my ($self) = @_; + # https://kb.pulsesecure.net/articles/Pulse_Secure_Article/KB44150 + $self->get_snmp_objects('PULSESECURE-PSG-MIB', (qw( + iveSSLConnections iveVPNTunnels + signedInWebUsers signedInMailUsers + iveConcurrentUsers clusterConcurrentUsers iveTotalSignedInUsers + maxLicensedUsers))); + foreach (qw( + iveSSLConnections iveVPNTunnels + signedInWebUsers signedInMailUsers + iveConcurrentUsers clusterConcurrentUsers iveTotalSignedInUsers)) { + $self->{$_} = 0 if ! defined $self->{$_}; + } +} + +sub check { + my ($self) = @_; +# info signedInWebUsers iveConcurrentUsers + +# info but trap clusterConcurrentUsers+maxLicensedUsers + $self->add_info('checking memory'); + if (defined $self->{maxLicensedUsers}) { + $self->add_info(sprintf 'Users: cluster=%d (of %d), node=%d, web=%d, mail=%d, vpn=%d, ssl=%d', + $self->{clusterConcurrentUsers}, + $self->{maxLicensedUsers}, + $self->{iveConcurrentUsers}, + $self->{signedInWebUsers}, + $self->{signedInMailUsers}, + $self->{iveVPNTunnels}, + $self->{iveSSLConnections} + ); + $self->{license_usage} = 100 * $self->{iveConcurrentUsers} / + $self->{maxLicensedUsers}; + $self->{cluster_license_usage} = 100 * $self->{clusterConcurrentUsers} / + $self->{maxLicensedUsers}; + $self->set_thresholds(metric => "license_usage", + warning => 90, critical => 95); + $self->add_message($self->check_thresholds(metric => "license_usage", + value => $self->{license_usage})); + $self->add_perfdata( + label => 'license_usage', + value => $self->{license_usage}, + uom => "%", + ); + } else { + $self->add_info(sprintf 'Users: cluster=%d, node=%d, web=%d, mail=%d, vpn=%d, ssl=%d', + $self->{clusterConcurrentUsers}, + $self->{iveConcurrentUsers}, + $self->{signedInWebUsers}, + $self->{signedInMailUsers}, + $self->{iveVPNTunnels}, + $self->{iveSSLConnections} + ); + $self->set_thresholds(metric => "concurrent_users", + warning => 1000, critical => 1500); + $self->add_message($self->check_thresholds(metric => "concurrent_users", + value => $self->{iveConcurrentUsers})); + } + $self->add_perfdata( + label => 'cluster_concurrent_users', + value => $self->{clusterConcurrentUsers}, + ); + $self->add_perfdata( + label => 'concurrent_users', + value => $self->{iveConcurrentUsers}, + ); + $self->add_perfdata( + label => 'web_users', + value => $self->{signedInWebUsers}, + ); + $self->add_perfdata( + label => 'vpn_tunnels', + value => $self->{iveVPNTunnels}, + ); +} + +__END__ + +Beispiel +Knoten a +[USERSUBSYSTEM] +clusterConcurrentUsers: 153 +iveConcurrentUsers: 153 +iveSSLConnections: 153 +iveTotalSignedInUsers: 153 +iveVPNTunnels: 152 +license_usage: 76.5 +maxLicensedUsers: 200 <- nicht bestaetigt, dass es den wert offiziell gibt. knoten oder cluster? +signedInMailUsers: 0 +signedInWebUsers: 153 + +Knoten b +[USERSUBSYSTEM] +clusterConcurrentUsers: 153 +iveConcurrentUsers: 0 +iveSSLConnections: 0 +iveTotalSignedInUsers: 153 <- identisch mit clusterConcurrentUsers? +iveVPNTunnels: 0 +license_usage: 76.5 +maxLicensedUsers: 200 +signedInMailUsers: 0 +signedInWebUsers: 153 <- vermutlich clusterweit + +iveTotalSignedInUsers 1.3.6.1.4.1.12532.48 +"The Total number of Users Logged In for the Cluster" +iveConcurrentUsers 1.3.6.1.4.1.12532.12 +"The Total number of Concurrent user Licenses used for the IVE Node" +clusterConcurrentUsers 1.3.6.1.4.1.12532.13 +"The Total number of Concurrent user Licenses used for the Cluster" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/check_nwc_health-9.0.1.1/plugins-scripts/Classes/PulseSecure/Gateway.pm new/check_nwc_health-9.1/plugins-scripts/Classes/PulseSecure/Gateway.pm --- old/check_nwc_health-9.0.1.1/plugins-scripts/Classes/PulseSecure/Gateway.pm 1970-01-01 01:00:00.000000000 +0100 +++ new/check_nwc_health-9.1/plugins-scripts/Classes/PulseSecure/Gateway.pm 2021-10-13 11:59:07.834410600 +0200 @@ -0,0 +1,21 @@ +package Classes::PulseSecure::Gateway; +our @ISA = qw(Classes::Juniper); +use strict; + +sub init { + my ($self) = @_; + # irgendwo ausgegraben, nicht offiziell dokumentiert + $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'PULSESECURE-PSG-MIB'}->{'maxLicensedUsers'} = '1.3.6.1.4.1.12532.55'; + if ($self->mode =~ /device::hardware::health/) { + $self->analyze_and_check_environmental_subsystem("Classes::PulseSecure::Gateway::Component::EnvironmentalSubsystem"); + } elsif ($self->mode =~ /device::hardware::load/) { + $self->analyze_and_check_cpu_subsystem("Classes::PulseSecure::Gateway::Component::CpuSubsystem"); + } elsif ($self->mode =~ /device::hardware::memory/) { + $self->analyze_and_check_mem_subsystem("Classes::PulseSecure::Gateway::Component::MemSubsystem"); + } elsif ($self->mode =~ /device::users/) { + $self->analyze_and_check_user_subsystem("Classes::PulseSecure::Gateway::Component::UserSubsystem"); + } else { + $self->no_such_mode(); + } +} + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/check_nwc_health-9.0.1.1/plugins-scripts/Makefile.am new/check_nwc_health-9.1/plugins-scripts/Makefile.am --- old/check_nwc_health-9.0.1.1/plugins-scripts/Makefile.am 2021-09-21 10:48:20.465629800 +0200 +++ new/check_nwc_health-9.1/plugins-scripts/Makefile.am 2021-10-13 11:59:08.164410600 +0200 @@ -52,6 +52,7 @@ ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/CISCOIETFNATMIB.pm \ ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/CISCOIPSECFLOWMONITORMIB.pm \ ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/CISCOL2L3INTERFACECONFIGMIB.pm \ + ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/CISCOLICENSEMGMTMIB.pm \ ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/CISCOLWAPPAPMIB.pm \ ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/CISCOLWAPPHAMIB.pm \ ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/CISCOMEMORYPOOLMIB.pm \ @@ -134,6 +135,7 @@ ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/PANPRODUCTSMIB.pm \ ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/PHIONMIB.pm \ ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/PROXYMIB.pm \ + ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/PULSESECUREPSGMIB.pm \ ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/RAPIDCITYMIB.pm \ ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/RESOURCEMIB.pm \ ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/RMONMIB.pm \ @@ -184,6 +186,7 @@ Classes/Bluecat/DnsDhcpServer/Component/ProcessSubsystem.pm \ Classes/Bluecat/DnsDhcpServer.pm \ Classes/Bluecat.pm \ + Classes/Cisco/CISCOLICENSEMGMTMIB/Component/KeySubsystem.pm \ Classes/Cisco/CISCOSMARTLICMIB/Component/KeySubsystem.pm \ Classes/Cisco/CISCOBGP4MIB/Components/PeerSubsystem.pm \ Classes/Cisco/CISCOEIGRPMIB/Components/PeerSubsystem.pm \ @@ -483,6 +486,12 @@ Classes/Versa/Component/MemSubsystem.pm \ Classes/Versa/Component/PeerSubsystem.pm \ Classes/Versa.pm \ + Classes/PulseSecure/Gateway/Component/UserSubsystem.pm \ + Classes/PulseSecure/Gateway/Component/EnvironmentalSubsystem.pm \ + Classes/PulseSecure/Gateway/Component/CpuSubsystem.pm \ + Classes/PulseSecure/Gateway/Component/DiskSubsystem.pm \ + Classes/PulseSecure/Gateway/Component/MemSubsystem.pm \ + Classes/PulseSecure/Gateway.pm \ Classes/Device.pm SED=/bin/sed diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/check_nwc_health-9.0.1.1/plugins-scripts/Makefile.in new/check_nwc_health-9.1/plugins-scripts/Makefile.in --- old/check_nwc_health-9.0.1.1/plugins-scripts/Makefile.in 2021-09-21 10:48:20.455629800 +0200 +++ new/check_nwc_health-9.1/plugins-scripts/Makefile.in 2021-10-13 11:59:08.164410600 +0200 @@ -294,6 +294,7 @@ ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/CISCOIETFNATMIB.pm \ ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/CISCOIPSECFLOWMONITORMIB.pm \ ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/CISCOL2L3INTERFACECONFIGMIB.pm \ + ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/CISCOLICENSEMGMTMIB.pm \ ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/CISCOLWAPPAPMIB.pm \ ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/CISCOLWAPPHAMIB.pm \ ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/CISCOMEMORYPOOLMIB.pm \ @@ -376,6 +377,7 @@ ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/PANPRODUCTSMIB.pm \ ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/PHIONMIB.pm \ ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/PROXYMIB.pm \ + ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/PULSESECUREPSGMIB.pm \ ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/RAPIDCITYMIB.pm \ ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/RESOURCEMIB.pm \ ../GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/RMONMIB.pm \ @@ -427,6 +429,7 @@ Classes/Bluecat/DnsDhcpServer/Component/ProcessSubsystem.pm \ Classes/Bluecat/DnsDhcpServer.pm \ Classes/Bluecat.pm \ + Classes/Cisco/CISCOLICENSEMGMTMIB/Component/KeySubsystem.pm \ Classes/Cisco/CISCOSMARTLICMIB/Component/KeySubsystem.pm \ Classes/Cisco/CISCOBGP4MIB/Components/PeerSubsystem.pm \ Classes/Cisco/CISCOEIGRPMIB/Components/PeerSubsystem.pm \ @@ -726,6 +729,12 @@ Classes/Versa/Component/MemSubsystem.pm \ Classes/Versa/Component/PeerSubsystem.pm \ Classes/Versa.pm \ + Classes/PulseSecure/Gateway/Component/UserSubsystem.pm \ + Classes/PulseSecure/Gateway/Component/EnvironmentalSubsystem.pm \ + Classes/PulseSecure/Gateway/Component/CpuSubsystem.pm \ + Classes/PulseSecure/Gateway/Component/DiskSubsystem.pm \ + Classes/PulseSecure/Gateway/Component/MemSubsystem.pm \ + Classes/PulseSecure/Gateway.pm \ Classes/Device.pm SED = /bin/sed