You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when netdisco returns a status it might be defaulting to error to quickly.
Possible Solution
define flowchart a bit more strict + add a few more levels, perhaps based on syslog:
error: fundamental issue that needs to be manually resolved
return Status->error('missing cmd parameter to exec Hook')
warning (new): errors from the perl interpreter, startup messages;
Use of uninitialized value $proto in numeric eq (==) at /home/netdisco/perl5/lib/perl5/SNMP/Info/LLDP.pm line 461.
[20421] 2024-02-14 13:23:55 warn App::Netdisco 2.072002 web
notification (new): transient in nature
[17471] 2024-02-16 18:36:42 error [10.40.254.33] interfaces - Error! Failed to get uptime from device!
info: unchanged
debug: unchanged
we could be bound to whatever Dancer::Logger::Capture provides as logging levels. moving to something like https://metacpan.org/pod/Log::Report (comes with dancer hooks) might be overkill (see context for issue i'm trying to solve)
Steps to Reproduce (for bugs)
Context
don't have log level defined so using the default log: 'warning' from config.yml
the messages i'm most interested in seem to be getting drowned out by repeated items, for example:
Use of uninitialized value $proto in numeric eq (==) at /home/netdisco/perl5/lib/perl5/SNMP/Info/LLDP.pm line 461.
[18069] 2024-01-13 22:38:16 error [10.93.13.1] interfaces - Error! Failed to get uptime from device!
since those are 98% of the logfile it's easy to overlook thinkgs as [30544] 2024-01-16 23:14:06 error [1.1.1.1] ssh connection error [unable to establish master SSH connection: master process exited unexpectedly]
Expected Behavior
map severity of problem on status code.
Current Behavior
when netdisco returns a status it might be defaulting to error to quickly.
Possible Solution
define flowchart a bit more strict + add a few more levels, perhaps based on syslog:
return Status->error('missing cmd parameter to exec Hook')
Use of uninitialized value $proto in numeric eq (==) at /home/netdisco/perl5/lib/perl5/SNMP/Info/LLDP.pm line 461.
[20421] 2024-02-14 13:23:55 warn App::Netdisco 2.072002 web
[17471] 2024-02-16 18:36:42 error [10.40.254.33] interfaces - Error! Failed to get uptime from device!
we could be bound to whatever Dancer::Logger::Capture provides as logging levels. moving to something like https://metacpan.org/pod/Log::Report (comes with dancer hooks) might be overkill (see context for issue i'm trying to solve)
Steps to Reproduce (for bugs)
Context
don't have log level defined so using the default
log: 'warning'
from config.ymlthe messages i'm most interested in seem to be getting drowned out by repeated items, for example:
uptime
andlldp
are from these lines:since those are 98% of the logfile it's easy to overlook thinkgs as
[30544] 2024-01-16 23:14:06 error [1.1.1.1] ssh connection error [unable to establish master SSH connection: master process exited unexpectedly]
or the dbix errors from #1168
grep -v
can be of assistance ofcourse, if it wouldn't choke on the control characters mentioned in above issue.Your Environment
The text was updated successfully, but these errors were encountered: