Hi all,<br><br>I've been trying to build NUT (latest release source) on a pretty "standard" CentOS (RHEL style) linux box, to monitor an APC Symmetra UPS Unit which powers our server room and broadcasts information via SNMP to appropriate clients.
<br><br>I am having some trouble even encouraging NUT to build with snmp support, which doesn't seem to happen by default.<br><br>I am curious if anyone has pointers, or if there is info summarized anywhere on this topic.
<br><br>All help is greatly appreciated. Relevant text is pasted below.<br><br>Many thanks,<br><br>Tim Chipman<br><br><br><br>--------PASTE---------------<br><br> ./configure --with-drivers=snmp-ups<br><br>runs, but I note in output:
<br><br>checking for Net-SNMP cflags... not found<br>checking for Net-SNMP libs... not found<br><br>note that this system has net-snmpd installed and snmp libs are visible under /usr/lib<br><br>When I try to "make" I get errors:
<br><br>[root@hydra nut-2.0.4]# make<br>common/<br>make[1]: Entering directory `/opt/src/nut/nut-2.0.4/common'<br>make[1]: Nothing to be done for `all'.<br>make[1]: Leaving directory `/opt/src/nut/nut-2.0.4/common'<br>drivers/
<br>make[1]: Entering directory `/opt/src/nut/nut-2.0.4/drivers'<br>gcc -I../include -O -Wall -Wsign-compare -c snmp-ups.c<br>In file included from snmp-ups.c:31:<br>snmp-ups.h:46:38: net-snmp/net-snmp-config.h: No such file or directory
<br>snmp-ups.h:54:40: net-snmp/net-snmp-includes.h: No such file or directory<br>...<br><br>note that I can build nut just fine if I don't ask it to build the snmp support. (yay)<br><br><br>as per hints I've found elsewhere, I have got a config file thus, although I'm not yet at a point of actually testing it:
<br><br>[root@hydra etc]# more ups.conf<br>[apc]<br>driver = snmp-ups<br>port = <a href="http://192.168.23.50">192.168.23.50</a><br>community = s3cr3t<br>desc="APC Symmeyra ups"<br>snmp_version = v1<br>mibs = apcc
<br><br><br>