Description | For most users, when there is no httpd running, packetfence is just hosed and they need to get in touch with their sysadmin. This could be avoided if we still launched httpd and have them diagnose the problem in the web ui.
one exemple misuse case:
enable trapping.detection (snort) but forget to put an interface monitor, restart:
[root@pf-dev pf]# service packetfence restart
Restarting PacketFence...service|command
pfdhcplistener|stop
pfmon|stop
pfdetect|stop
httpd|stop
snmptrapd|stop
pfsetvlan|stop
snort|stop
Checking configuration sanity...
Uncaught exception from user code:
monitor interface not defined, please disable trapping.dectection or set an interface type=...,monitor
in pf.conf at /usr/lib/perl5/vendor_perl/5.8.8/Log/Log4perl/Logger.pm line 884
at /usr/local/pf/bin/pfcmd line 2225
main::sanity_check('pfdhcplistener', 'pfmon', 'pfdetect', 'httpd', 'snmptrapd', 'pfsetvlan',
'snort') called at /usr/local/pf/bin/pfcmd line 1022
main::service() called at /usr/local/pf/bin/pfcmd line 997
main::service() called at /usr/local/pf/bin/pfcmd line 172
main::__ANON__() called at /usr/local/pf/bin/pfcmd line 186
httpd should be able to start since its not affected by that error but:
[root@pf-dev pf]# bin/pfcmd service httpd start
Checking configuration sanity...
Uncaught exception from user code:
monitor interface not defined, please disable trapping.dectection or set an interface type=...,monitor
in pf.conf at /usr/lib/perl5/vendor_perl/5.8.8/Log/Log4perl/Logger.pm line 884
at bin/pfcmd line 2225
main::sanity_check('httpd') called at bin/pfcmd line 1022
main::service() called at bin/pfcmd line 172
main::__ANON__() called at bin/pfcmd line 186
In you do that through web ui you never get the error message shown, it just never works and if you restart the whole thing by mistake then you can never get it back up.
The log of the last ERRORs / FATALs would help in that case. This was reported elsewhere.
Nov 16 12:30:34 pfcmd(0) FATAL: monitor interface not defined, please disable trapping.dectection or
set an interface type=...,monitor in pf.conf (main::sanity_check)
|