PacketFence - BTS - PacketFence
View Issue Details
0000813PacketFencepublic2009-10-14 08:392011-01-26 15:43
obilodeau 
obilodeau 
normalminoralways
closedfixed 
 
 
0000813: When a switch doesn't compile, packetfence issues an error but then goes on like its normal
Switch modules are instantiated only when first used. If a switch module is broken, here's what you get in the logs:

Oct 14 08:18:38 pfcmd(0) ERROR: Can not load perl module for switch 192.168.1.61, type: pf::SNMP::Cisco::Catalyst_2960. 
Either the type is unknown or the perl module has compilation errors. Read the following message for 
details: Missing right curly or square bracket at /usr/local/pf/lib/pf/SNMP/Cisco.pm line 1496, at end 
of line
syntax error at /usr/local/pf/lib/pf/SNMP/Cisco.pm line 1496, at EOF
Compilation failed in require at (eval 78) line 3.
        ...propagated at /usr/lib/perl5/5.8.8/base.pm line 85.
BEGIN failed--compilation aborted at /usr/local/pf/lib/pf/SNMP/Cisco/Catalyst_2950.pm line 24.
Compilation failed in require at (eval 77) line 3.
        ...propagated at /usr/lib/perl5/5.8.8/base.pm line 85.
BEGIN failed--compilation aborted at /usr/local/pf/lib/pf/SNMP/Cisco/Catalyst_2960.pm line 28.
Compilation failed in require at /usr/local/pf/lib/pf/SwitchFactory.pm line 74. (pf::SwitchFactory::instantiate)



I'm not convinced that this is what should happen. Maybe we should do a sanity check of all modules specified in switches.conf at startup and stop starting right there.

What do you guys think?
No tags attached.
duplicate of 0000755closed obilodeau unhelpful packetfence error message when a switch module doesn't compile 
Issue History
2009-10-14 08:39obilodeauNew Issue
2009-10-14 08:39obilodeauStatusnew => assigned
2009-10-14 08:39obilodeauAssigned To => obilodeau
2009-10-15 14:20rbalzardNote Added: 0001334
2009-10-15 14:20rbalzardStatusassigned => resolved
2009-10-15 14:20rbalzardResolutionopen => fixed
2009-10-16 10:12obilodeauRelationship addedduplicate of 0000755
2011-01-26 15:43obilodeauStatusresolved => closed

Notes
(0001334)
rbalzard   
2009-10-15 14:20   
fixed in revision 5815165026bd8d612710cba3cb088b9d3c931e80