Skip to main content

    Filter by idea status

    Filter by product

    644 Ideas

    Aleksey
    AlekseySteward **

    [hardware::pdu::cyberpower::snmp::plugin] new modesNeeds Votes

    Hello. Please improve the capabilities of the hardware::ups::cyberpower::snmp::plugin1) Add a new "input-lines" mode similar to how it is implemented in the "hardware::ats::apc::snmp::plugin"Information about the state of sources A/B inputs can be obtained from the OID table: .1.3.6.1.4.1.3808.1.1.6.9.4 (ePDU2SourceStatusTable)From these OIDs we can obtain information about the current state of the ATS inputs:     Name/OID: ePDU2SourceStatusSelectedSource.1; Value (Integer): sourceA (1)    Name/OID: ePDU2SourceStatusSourceAVolStatus.1; Value (Integer): normal (1)    Name/OID: ePDU2SourceStatusSourceBVolStatus.1; Value (Integer): normal (1)    Name/OID: ePDU2SourceStatusSourceAFreqStatus.1; Value (Integer): normal (1)    Name/OID: ePDU2SourceStatusSourceBFreqStatus.1; Value (Integer): normal (1)    Name/OID: ePDU2SourceStatusPowerSupplySourceAStatus.1; Value (Integer): normal (1)    Name/OID: ePDU2SourceStatusPowerSupplySourceBStatus.1; Value (Integer): normal (1)    Name/OID: ePDU2SourceStatusRedundancyState.1; Value (Integer): atsFullyRedundant (2) From these OIDs we can create a perfdata for the Voltage and Frequency parameters:    Name/OID: ePDU2SourceStatusSourceAVoltage.1; Value (Integer): 218    Name/OID: ePDU2SourceStatusSourceBVoltage.1; Value (Integer): 222    Name/OID: ePDU2SourceStatusSourceAFrequency.1; Value (Integer): 500    Name/OID: ePDU2SourceStatusSourceBFrequency.1; Value (Integer): 500 2) Add a new "time" mode similar to how it is implemented in the "hardware::ats::apc::snmp::plugin"    OID:.1.3.6.1.4.1.3808.2.1.5.1.0 (mconfigClockDate.0); Example value: 2024/09/02    OID:.1.3.6.1.4.1.3808.2.1.5.2.0 (mconfigClockTime.0); Example value: 18:08:57The received time should be compared with the NTP source. 3) Add a new mode for checking the NMC operating time ("uptime")This mode can be simply copied from the plugin "hardware::pdu::apc::snmp::plugin" 4) Add a new environment sensor check mode ("environment" mode):OID space environmentSensor2 (1.3.6.1.4.1.3808.1.1.8) is suitable for obtaining information about temperature (C) and humidity (%)MIB and snmpalk files are attached: https://github.com/user-attachments/files/16846878/CyberPower-ATS-PDU44005.zipThank you

    Luth1ngSteward *

    Generic SNMP plugin with multi mode : allow outputs from different statesNeeds Votes

    Hello,I am trying to use as much I can the centreon plugins feature instead of creating new ones.I would like to use multi modes to get an output with a string-value and a numeric value.This is working great if the two modes are getting the same status, but if one value has a higher criticity, **it overrides all the output**.Example :- Both mode status is OK :```/usr/lib/centreon/plugins/centreon_generic_snmp.pl \--plugin=apps::protocols::snmp::plugin \--mode=multi \--modes-exec=string-value,numeric-value \[...]--option-mode='string-value,--oid=1.3.6.1.4.1...6' \--option-mode='numeric-value,--oid=1.3.6.1.4.1...6' \--option-mode='string-value,--format-ok=%{details_ok}' \--option-mode='string-value,--format-details-ok="my string-value is: %{value}"' \--option-mode='string-value,--format-warning=%{details_warning}' \--option-mode='string-value,--format-details-warning="my string-value is: %{value}"' \--option-mode='string-value,--format-critical=%{details_critical}' \--option-mode='string-value,--format-details-critical="my string-value is: %{value}"' \--option-mode='string-value,--format-unknown=%{details_unknown}' \--option-mode='string-value,--format-details-unknown="my string-value is: %{value}"' \--option-mode='numeric-value,--perfdata-name=myCounter' \--option-mode='numeric-value,--format="my numerical-value is: %s"' \--option-mode='numeric-value,--perfdata-min=0' \OK: "my string-value is: abcdefg" - "my numerical-value is: 1234" | 'myCounter'=1234;;;0;```- Both mode status is WARNING :```/usr/lib/centreon/plugins/centreon_generic_snmp.pl \--plugin=apps::protocols::snmp::plugin \--mode=multi \--modes-exec=string-value,numeric-value \[...]--option-mode='string-value,--oid=1.3.6.1.4.1...6' \--option-mode='numeric-value,--oid=1.3.6.1.4.1...6' \--option-mode='string-value,--format-ok=%{details_ok}' \--option-mode='string-value,--format-details-ok="my string-value is: %{value}"' \--option-mode='string-value,--format-warning=%{details_warning}' \--option-mode='string-value,--format-details-warning="my string-value is: %{value}"' \--option-mode='string-value,--format-critical=%{details_critical}' \--option-mode='string-value,--format-details-critical="my string-value is: %{value}"' \--option-mode='string-value,--format-unknown=%{details_unknown}' \--option-mode='string-value,--format-details-unknown="my string-value is: %{value}"' \--option-mode='string-value,--warning-regexp=.*' \--option-mode='numeric-value,--perfdata-name=myCounter' \--option-mode='numeric-value,--format="my numerical-value is: %s"' \--option-mode='numeric-value,--perfdata-min=0' \--option-mode='numeric-value,--warning=~:1'WARNING: "my string-value is: abcdefg" - "my numerical-value is: 1234" | 'myCounter'=1234;~:1;;0;```- Only string-value status is WARNING, numerical-value status is OK :```/usr/lib/centreon/plugins/centreon_generic_snmp.pl \--plugin=apps::protocols::snmp::plugin \--mode=multi \--modes-exec=string-value,numeric-value \[...]--option-mode='string-value,--oid=1.3.6.1.4.1...6' \--option-mode='numeric-value,--oid=1.3.6.1.4.1...6' \--option-mode='string-value,--format-ok=%{details_ok}' \--option-mode='string-value,--format-details-ok="my string-value is: %{value}"' \--option-mode='string-value,--format-warning=%{details_warning}' \--option-mode='string-value,--format-details-warning="my string-value is: %{value}"' \--option-mode='string-value,--format-critical=%{details_critical}' \--option-mode='string-value,--format-details-critical="my string-value is: %{value}"' \--option-mode='string-value,--format-unknown=%{details_unknown}' \--option-mode='string-value,--format-details-unknown="my string-value is: %{value}"' \--option-mode='string-value,--warning-regexp=.*' \--option-mode='numeric-value,--perfdata-name=myCounter' \--option-mode='numeric-value,--format="my numerical-value is: %s"' \--option-mode='numeric-value,--perfdata-min=0'WARNING: "my string-value is: abcdefg" | 'myCounter'=1234;;;0;```- Only numerical-value status is WARNING, string-value status is OK :```/usr/lib/centreon/plugins/centreon_generic_snmp.pl \--plugin=apps::protocols::snmp::plugin \--mode=multi \--modes-exec=string-value,numeric-value \[...]--option-mode='string-value,--oid=1.3.6.1.4.1...6' \--option-mode='numeric-value,--oid=1.3.6.1.4.1...6' \--option-mode='string-value,--format-ok=%{details_ok}' \--option-mode='string-value,--format-details-ok="my string-value is: %{value}"' \--option-mode='string-value,--format-warning=%{details_warning}' \--option-mode='string-value,--format-details-warning="my string-value is: %{value}"' \--option-mode='string-value,--format-critical=%{details_critical}' \--option-mode='string-value,--format-details-critical="my string-value is: %{value}"' \--option-mode='string-value,--format-unknown=%{details_unknown}' \--option-mode='string-value,--format-details-unknown="my string-value is: %{value}"' \--option-mode='string-value,--warning-regexp=.*' \--option-mode='numeric-value,--perfdata-name=myCounter' \--option-mode='numeric-value,--format="my numerical-value is: %s"' \--option-mode='numeric-value,--perfdata-min=0' \--option-mode='numeric-value,--warning=1'WARNING: "my numerical-value is: 1234" | 'myCounter'=1234;~:1;;0;```What I would like is to keep all the outputs even if the other mode status is different, but of course return only the status with the higher criticity.Could you add this enhancement please?CheersLuth1ng