mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Mark OID not increasing as invalid (#13548)
* Mark OID not increasing as invalid * Provisional test data * verified return code is 1
This commit is contained in:
@@ -68,7 +68,7 @@ class SnmpResponse
|
||||
{
|
||||
$this->errorMessage = '';
|
||||
// not checking exitCode because I think it may lead to false negatives
|
||||
$invalid = preg_match('/(Timeout: No Response from .*|Unknown user name|Authentication failure)/', $this->stderr, $errors)
|
||||
$invalid = preg_match('/(Timeout: No Response from .*|Unknown user name|Authentication failure|Error: OID not increasing: .*)/', $this->stderr, $errors)
|
||||
|| empty($this->raw)
|
||||
|| preg_match('/(No Such Instance|No Such Object|No more variables left).*/', $this->raw, $errors);
|
||||
|
||||
|
Reference in New Issue
Block a user