Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I would like to monitor a network device (a disarray) which is attached to a server with its own local network (10.0.0.x). The server is reachable from another private space (172.16.x.x).

I can do snmpwalk between my monitoring server and the machine in question. But I would also like to monitor the disk array attached to the server in question.

Some sort of SNMP proxying or NATing comes to mind. So this could be a question on how to enable NAT (which would allow udp) on MacOS

Thanks

share|improve this question
    
SSH port forwarding might get you going really easily here. –  SpacemanSpiff Dec 8 '11 at 15:08

2 Answers 2

up vote 2 down vote accepted

If it's a mac... just enable routing traffic between the two networks. You can do this by enabling packet-forwarding.

Basically, this will make your mac into a simple ip router. You may want to enable firewall rules to limit traffic to/from/through your mac tho. Keep in mind, unless your "outside" machine (the one doing the snmpwalk) is using your mac as a router, you'll need to manually add a route to the 10. network using your mac as the gateway. i.e.

route add --net 10.0.0.0 mask 255.0.0.0 gw 172.16.mac.ip
share|improve this answer

You can define a custom OID in the SNMP config on the server which will execute the required snmpwalk commands. Your monitoring server would then query these OIDs on the server, which would then query the disk array, and pass the results back. Kind of a hack, but no worse then setting up routing on the server.

share|improve this answer
    
it has the implication that then I have to make my monitoring system understand the OID. Both the server and diskarray have physical disks (RAID) and they have OIDs for monitoring disk related things. Routing is probably a better choice. –  geoaxis Dec 9 '11 at 9:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.