New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


How do I activate SNMP on Mac OS in order to monitor it with PRTG?

Votes:

0

Your Vote:

Up

Down

I would like to monitor my machine running on Mac OS X, using PRTG's SNMP sensors.

How do I activate SNMP on Mac OS, so PRTG can query values for disk free, load average, etc. via SNMP?

mac mac-mini macos macosx prtg snmp snmp-daemon snmpd

Created on Oct 2, 2012 12:24:48 PM by  Daniel Zobel [Paessler Support]

Last change on Oct 2, 2012 2:43:25 PM by  Daniel Zobel [Paessler Support]



3 Replies

Accepted Answer

Votes:

0

Your Vote:

Up

Down

This article applies to PRTG Network Monitor 12.4 or later

Activate SNMP on Mac OS and Monitor with PRTG

This is an example of how we successfully activated SNMP on a Mac mini. Adapt this example to suit your needs.

Step 1

On your Mac OS machine start the Terminal, locate the snmpd.conf file under /etc/snmp/snmpd.conf and save a backup copy, maybe with this command:

mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.org

Step 2

Change the snmpd.conf file with the following command:

sudo nano /etc/snmp/snmpd.conf

In our example, it looks like this:

#Allow read-access with the following SNMP Community String:
rocommunity public

# all other settings are optional but recommended.

# Location of the device
syslocation data centre A

# Human Contact for the device
syscontact SysAdmin

# System Name of the device
sysName SystemName

# the system OID for this device. This is optional but recommended,
# to identify this as a MAC OS system.
sysobjectid 1.3.6.1.4.1.8072.3.2.16


Step 3

Start the SNMP service, e.g. with the following command:

sudo launchctl load -w /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist


Zoom in


Step 4

In PRTG, create a new device which represents your Mac OS machine, using the respective IP address or DNS name.

  • For this new device, perform an auto-discovery to let PRTG automatically create SNMP sensors. This will create some sensors.
  • You can further add other SNMP sensors manually. Not all measurements will be available via SNMP, but we were able to successfully create the following sensor types:
    • SNMP Traffic sensors to monitor traffic flowing through the network card(s)
    • SNMP Linux Load Average sensor (this one works although it is intended for Linux OS)
    • SNMP System Uptime to monitor how long the system has been running
    • SNMP Disk Free sensors to monitor free disk space
    • SNMP CPU Load sensor to monitor the load of each CPU
    • Several generic SNMP values such as ICMP errors, UPD datagrams, etc. which were found by the auto-discovery.


PRTG monitoring a Mac mini via SNMP Zoom in


Step 5

Since we started the SNMP service manually in Step 3, the service will not run after a reboot of the Mac OS system.

In order to start the SNMP service automatically on your Mac OS' system startup you can edit the file /etc/hostconfig.

In the file, locate the line APPLETALK_HOSTNAME and add the following entry before this line: SNMPSERVER:=-YES-

This should start your SNMP service automatically on system startup.

Created on Oct 2, 2012 12:38:57 PM by  Daniel Zobel [Paessler Support]

Last change on Aug 23, 2013 1:40:54 PM by  Gerald Schoch [Paessler Support]



Votes:

0

Your Vote:

Up

Down

/etc/hostconfig appears to be gone in El Capitan. How can we configure SNMP to run automatically on the newest version of OSX?

Created on Mar 21, 2016 7:26:38 PM by  blong_at_dma_dot_org (0)



Votes:

0

Your Vote:

Up

Down

Hi there,

Please check this link for an SNMP configuration guide for the El Capitan OS.

Best regards, Felix

Created on Mar 22, 2016 6:35:18 AM by  Felix Saure [Paessler Support]



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.