Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using SNMP v3, Automation can report extraneous warnings #3429

Closed
bmfmancini opened this issue Apr 7, 2020 · 5 comments
Closed

When using SNMP v3, Automation can report extraneous warnings #3429

bmfmancini opened this issue Apr 7, 2020 · 5 comments
Labels
bug Undesired behaviour confirmed Bug is confirm by dev team resolved A fixed issue
Milestone

Comments

@bmfmancini
Copy link
Member

Hey Guys

I noticed after running device discovery the following errors come up
I don't see any specific issues with AUTOM8 adding the device

Thought I would report it to get your take if this is a dummy alert or something else

2020/04/06 10:36:53 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_automation.php[358]:discoverDevices(), /poller_automation.php[569]:automation_valid_snmp_device(), /lib/api_automation.php[3265]:cacti_snmp_session_get(), /lib/snmp.php[479]:SNMP->get(), CactiErrorHandler())
2020/04/06 10:36:51 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_automation.php[358]:discoverDevices(), /poller_automation.php[569]:automation_valid_snmp_device(), /lib/api_automation.php[3265]:cacti_snmp_session_get(), /lib/snmp.php[479]:SNMP->get(), CactiErrorHandler())
2020/04/06 10:36:51 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_automation.php[358]:discoverDevices(), /poller_automation.php[569]:automation_valid_snmp_device(), /lib/api_automation.php[3265]:cacti_snmp_session_get(), /lib/snmp.php[479]:SNMP->get(), CactiErrorHandler())
2020/04/06 10:36:50 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_automation.php[358]:discoverDevices(), /poller_automation.php[569]:automation_valid_snmp_device(), /lib/api_automation.php[3265]:cacti_snmp_session_get(), /lib/snmp.php[479]:SNMP->get(), CactiErrorHandler())
2020/04/06 10:36:50 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_automation.php[358]:discoverDevices(), /poller_automation.php[569]:automation_valid_snmp_device(), /lib/api_automation.php[3265]:cacti_snmp_session_get(), /lib/snmp.php[479]:SNMP->get(), CactiErrorHandler())
2020/04/06 10:36:50 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_automation.php[358]:discoverDevices(), /poller_automation.php[569]:automation_valid_snmp_device(), /lib/api_automation.php[3265]:cacti_snmp_session_get(), /lib/snmp.php[479]:SNMP->get(), CactiErrorHandler())
2020/04/06 10:36:50 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_automation.php[358]:discoverDevices(), /poller_automation.php[569]:automation_valid_snmp_device(), /lib/api_automation.php[3265]:cacti_snmp_session_get(), /lib/snmp.php[479]:SNMP->get(), CactiErrorHandler())
2020/04/06 10:36:49 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_automation.php[358]:discoverDevices(), /poller_automation.php[569]:automation_valid_snmp_device(), /lib/api_automation.php[3265]:cacti_snmp_session_get(), /lib/snmp.php[479]:SNMP->get(), CactiErrorHandler())
2020/04/06 10:36:49 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_automation.php[358]:discoverDevices(), /poller_automation.php[569]:automation_valid_snmp_device(), /lib/api_automation.php[3265]:cacti_snmp_session_get(), /lib/snmp.php[479]:SNMP->get(), CactiErrorHandler())
2020/04/06 10:36:49 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_automation.php[358]:discoverDevices(), /poller_automation.php[569]:automation_valid_snmp_device(), /lib/api_automation.php[3265]:cacti_snmp_session_get(), /lib/snmp.php[479]:SNMP->get(), CactiErrorHandler())
2020/04/06 10:36:48 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_automation.php[358]:discoverDevices(), /poller_automation.php[569]:automation_valid_snmp_device(), /lib/api_automation.php[3265]:cacti_snmp_session_get(), /lib/snmp.php[479]:SNMP->get(), CactiErrorHandler())
2020/04/06 10:36:48 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_automation.php[358]:discoverDevices(), /poller_automation.php[569]:automation_valid_snmp_device(), /lib/api_automation.php[3265]:cacti_snmp_session_get(), /lib/snmp.php[479]:SNMP->get(), CactiErrorHandler())

@bmfmancini bmfmancini added bug Undesired behaviour unverified Some days we don't have a clue labels Apr 7, 2020
@TheWitness
Copy link
Member

Can you show more of the error. There should also be a WARNING.

@bmfmancini
Copy link
Member Author

Sure

Here you go

2020/04/06 10:37:14 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_automation.php[358]:discoverDevices(), /poller_automation.php[569]:automation_valid_snmp_device(), /lib/api_automation.php[3265]:cacti_snmp_session_get(), /lib/snmp.php[479]:SNMP->get(), CactiErrorHandler())
2020/04/06 10:37:14 - ERROR PHP WARNING: SNMP::get(): Fatal error: Unknown user name in file: /var/www/html/cacti/lib/snmp.php on line: 479
2020/04/06 10:37:14 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_automation.php[358]:discoverDevices(), /poller_automation.php[569]:automation_valid_snmp_device(), /lib/api_automation.php[3265]:cacti_snmp_session_get(), /lib/snmp.php[479]:SNMP->get(), CactiErrorHandler())
2020/04/06 10:37:14 - ERROR PHP WARNING: SNMP::get(): Fatal error: Unknown user name in file: /var/www/html/cacti/lib/snmp.php on line: 479
2020/04/06 10:37:14 - AUTOM8 NOTE: Graph Added - Device[1481], Graph[13695], DS[Missing Datasource 12314], Rule[Interface Errors]
2020/04/06 10:37:13 - AUTOM8 NOTE: Graph Added - Device[1481], Graph[13694], DS[Missing Datasource 12313], Rule[Interface Errors]
2020/04/06 10:37:13 - AUTOM8 NOTE: Graph Added - Device[1481], Graph[13693], DS[Missing Datasource 12312], Rule[Interface Errors]
2020/04/06 10:37:13 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_automation.php[358]:discoverDevices(), /poller_automation.php[569]:automation_valid_snmp_device(), /lib/api_automation.php[3265]:cacti_snmp_session_get(), /lib/snmp.php[479]:SNMP->get(), CactiErrorHandler())
2020/04/06 10:37:13 - ERROR PHP WARNING: SNMP::get(): Fatal error: Unknown user name in file: /var/www/html/cacti/lib/snmp.php on line: 479
2020/04/06 10:37:13 - AUTOM8 NOTE: Graph Added - Device[1481], Graph[13692], DS[Missing Datasource 12311], Rule[Interface Errors]

@bmfmancini
Copy link
Member Author

The missing DS is fine I did delete that device later on

@TheWitness
Copy link
Member

Okay, we just need to mask off those error messages. They are normal. Just clogging the log.

@TheWitness TheWitness removed the unverified Some days we don't have a clue label Apr 8, 2020
@TheWitness TheWitness added this to the 1.2.12 milestone Apr 8, 2020
@TheWitness TheWitness changed the title cacti 1.2.11 AUTOM8 Backtrace errors AUTOM8 Backtrace Errors due to SNMP class not muting snmpv3 auth errors Apr 9, 2020
TheWitness added a commit that referenced this issue Apr 9, 2020
AUTOM8 Backtrace Errors due to SNMP class not muting snmpv3 auth errors
@TheWitness TheWitness added the resolved A fixed issue label Apr 9, 2020
@TheWitness
Copy link
Member

So, test again with the latest lib/snmp.php in the 1.2.x branch.

@netniV netniV added the confirmed Bug is confirm by dev team label Apr 26, 2020
@netniV netniV changed the title AUTOM8 Backtrace Errors due to SNMP class not muting snmpv3 auth errors When using SNMP v3, Automation can report extraneous warnings May 3, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Aug 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour confirmed Bug is confirm by dev team resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

3 participants