To configure snmp on Mac OS, you first need to install the snmpd package.
If the file /etc/snmp/snmpd.conf
exists, then snmp is already installed.
If not, you can install it using one of these methods:
Edit the file /etc/hostconfig
Search for the header # Services and below the list of services (just above the line APPLETALK_HOSTNAME) add the following line :
SNMPSERVER=-YES-
Save the file
Next, you need to edit the :
nano /etc/snmp/snmpd.conf
Change the line ( or put it as a comment ) and replace it with :
agentAddress udp:127.0.0.1:161
by
agentAddress udp:0.0.0.0:161
The next step is to configure the SNMP community:
rocommunity read_community default
or rocommunity “ community name ” “ range ip (unique ip ) /subnet mask ”.
rocommunity read_community 10.7.0.14/32
Then restart the SNMP service by typing :
sudo launchctl unload /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist sudo launchctl load -w /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist
As the SNMP service on Mac OS is the same as on Linux, the esia …_SNMP_LINUX_… patterns and plugins will work on Macs.