OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: phoenix on January 20, 2017, 02:09:47 pm

Title: [WORKAROUND] 17.1.r1 and snmpd not installed
Post by: phoenix on January 20, 2017, 02:09:47 pm
I've just done a clean install and settings import for the rc1 release, all is working fine except that I couldn't find snmp in the services section. A quick check showed that it wasn't installed, is that intentional?

I did install snmp at this point and it's running fine but the problem I reported on the beta version still exists, if I enable the Host Resources module then the CPU use goes straight to 100%. All the other modules can be enabled without and CPU use problems but the Host Resources on it's own or with the other modules puts the CPU into overdrive. Anything that can be done to find out what's causing this problem or should a file a bug for it?

Other than that, well done to all the team for the great work on this release. :)
Title: Re: 17.1.r1 and snmpd not installed
Post by: weust on January 20, 2017, 03:05:57 pm
Well, if you'd read the announcement then you would have seen SNMP is now a plugin ;-)
https://forum.opnsense.org/index.php?topic=4295.msg15985#new
Title: Re: 17.1.r1 and snmpd not installed
Post by: weust on January 20, 2017, 03:06:38 pm
btw, I saw Will` on IRC mentioning the high CPU issue as well.
Title: Re: 17.1.r1 and snmpd not installed
Post by: phoenix on January 20, 2017, 03:13:31 pm
Well, if you'd read the announcement then you would have seen SNMP is now a plugin ;-)
https://forum.opnsense.org/index.php?topic=4295.msg15985#new
I did read it but not in enough detail, I was too busy checking the other 'problems' had gone - at least that my excuse for today. ;D

Thanks for pointing me to that.
Title: Re: 17.1.r1 and snmpd not installed
Post by: franco on January 20, 2017, 03:16:05 pm
Hi guys,

We'll look into the high CPU issue after 17.1 is out. I know that FreeBSD recently added a lot of changes to their SNMP, there may be something there.


Cheers,
Franco
Title: Re: 17.1.r1 and snmpd not installed
Post by: will on January 21, 2017, 01:42:31 pm
Just to add what I'm seeing for SNMP / Host resources:

With just SNMP enabled the process consumes 0.1-0.2% CPU.

With all modules except host resources enabled 0.2-0.3% CPU.

With just host resources module 20-30% CPU spiking up to 90% utilisation when the device is queried.


My test setup:
PC Engines APU
SNMP is listening only on one interface (LAN)
17.1.r1 though I noticed this behaviour was also present in 17.1.b
Title: Re: 17.1.r1 and snmpd not installed
Post by: phoenix on January 21, 2017, 01:56:02 pm
Those figures are pretty much what I see except that when Host Resources is enabled I'm seeing 100% cpu usage, that consists of 80-95% system and the remainder is user%. As I mentioned before, it makes no difference if Host Resources is enabled on it's own (with the required MibII) or all the services are enabled - if I disable just the Host Resources the cpu usage immediately drops to 1-5%.
Title: Re: 17.1.r1 and snmpd not installed
Post by: eyedrops on January 21, 2017, 05:04:52 pm
I had this issue, and did some digging.   It looks like it's this in freebsd:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215471

And another reference:
https://redmine.pfsense.org/issues/6882
Title: Re: 17.1.r1 and snmpd not installed
Post by: franco on January 21, 2017, 05:53:02 pm
Quite nasty. Thanks for the pointers. I'll keep this in CC.
Title: Re: 17.1.r1 and snmpd not installed
Post by: tillsense on January 21, 2017, 06:45:59 pm
ups.. well to read this. thanks!
Title: Re: 17.1.r1 and snmpd not installed
Post by: phoenix on January 21, 2017, 07:25:23 pm
I had this issue, and did some digging.   It looks like it's this in freebsd:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215471

And another reference:
https://redmine.pfsense.org/issues/6882
That's interesting and I can confirm the FreeBSD Bugzilla – Bug 215471 as the problem on my VM. I connceted the cd/dvd drive and enabled the Host Resources in SNMP and Bingo! cpu usage stays at 1-5% - I'll leave it in that state overnight just to see if anything else happens.
Title: Re: 17.1.r1 and snmpd not installed
Post by: franco on January 22, 2017, 05:01:20 pm
Problem is Will had issues on an APU hardware. Still need to investigate.