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
const snmpTrap = require('snmpjs');
var log = new bunyan({ name: 'snmpd', level: 'trace'});
var trapd = snmpTrap.createTrapListener({log: log});
trapd.bind(options);
trapd.on('trap',function(msg) {
handleTrap(msg);
});
However, when I try graceful shutdown the Node server, I got the port 162 INUSE error, which is because of the absence of removeListener method. So is there a way to gracefully shutdown the snmpTrap listener?
The text was updated successfully, but these errors were encountered:
I am using following for my NodeJS server,
However, when I try graceful shutdown the Node server, I got the port 162 INUSE error, which is because of the absence of removeListener method. So is there a way to gracefully shutdown the snmpTrap listener?
The text was updated successfully, but these errors were encountered: