CONFIG SNMP?

quedayone
Contributor

Just wondering if any one is setting up SNMP, and if so when and how are you doing it.
Currently I am setting up SNMP on my base image and it works, but I am setting the location in this step, and in the future I may be imaging computers for other locations.
So doing this on my base image my not be the best practice.
Is there a way to set up some sort of scrip or package to run at imaging that can config SNMP?

Thanks in advance for any suggestions or help.

Will Pierce | Macintosh Systems Administrator | COLLE+McVOY
O: 612-305-6310 | E: will.pierce at collemcvoy.com<mailto:will.pierce at collemcvoy.com>
Twitter: @quedayone | Skype: quedayone | IM: qday1 at me.com<mailto:qday1 at me.com>

Follow us: www.collemcvoy.com | www.facebook.com/collemcvoy | www.twitter.com/collemcvoy

4 REPLIES 4

b_mike
New Contributor III

Will - I'm not installing SNMP on any Macs at this point, but wondered what exactly you were hoping to track with it?

quedayone
Contributor

We have some users complaining about "I need more ram" or "My CPU is maxed" It would be good to have some actual metrics to see what is actually going on.

stevewood
Honored Contributor II
Honored Contributor II

I used @ChrisL script in this post:

https://jamfnation.jamfsoftware.com/discussion.html?id=6908

I have a launchd running every 5 minutes that executes that script and writes to a text file hidden on the system. I can then go in and check that text file (pull it into Excel or something) to see what the PageOuts have been for a user.

You might also look at using the UNIX sar command to pull performance data. There was a write up in the May issue of MacTech (www.mactech.com) on how to use sar and the sar utilities. I haven't implemented any of it, but I am looking into it.

johncwelch
New Contributor

once you have a good snmpd.conf file, you can just copy that as part of your image and the base config is done. You can change the location pretty easily by modifying the syslocation entry in the config afterwards. it's always syslocation "value" so there's a dozen ways to mod it. Then bounce SNMPd and you're done.

the nice thing about snmp is that if you use v3, you get encryption and better security, and the overhead is quite small. And there are a ton of free SNMP consoles for every platform.