<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">A few days ago I configured Network UPS Tools in a Ubuntu VM on a XCP-NG VM. The driver installed flawlessly, and I was able to scan and find the UPS using nut-scanner -S -s 192.168.0.1 -e 192.168.0.254<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">It returned the UPS configuration below from the network, and I configured ups.conf without a hitch. Because I want to send the shutdown command to my UPS, I need my NUT master installed in dom0, and I’m not trying to configure NUT inside
 of dom0 in XCP-NG host, and I’m having difficulty.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[MILLRACKUPS01]<o:p></o:p></p>
<p class="MsoNormal">        driver = "snmp-ups"<o:p></o:p></p>
<p class="MsoNormal">        port = "192.168.0.32"<o:p></o:p></p>
<p class="MsoNormal">        desc = "Smart-UPS X 2000"<o:p></o:p></p>
<p class="MsoNormal">        mibs = "apcc"<o:p></o:p></p>
<p class="MsoNormal">        community = "public"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">On my Dell R740, I installed the following in dom0<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">yum install nut --enablerepo=epel,base,updates<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When I run nut-scanner without parameters, it returns the two PSUs in the server (below)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[nutdev1]<o:p></o:p></p>
<p class="MsoNormal">        driver = "nut-ipmipsu"<o:p></o:p></p>
<p class="MsoNormal">        port = "id1"<o:p></o:p></p>
<p class="MsoNormal">[nutdev2]<o:p></o:p></p>
<p class="MsoNormal">        driver = "nut-ipmipsu"<o:p></o:p></p>
<p class="MsoNormal">        port = "id2"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When I run nut-scanner to find the SNMP UPS, it returns nothing<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[23:04 milsrv01 ups]# nut-scanner -S -s 192.168.0.1 -e 192.168.0.254<o:p></o:p></p>
<p class="MsoNormal">Cannot load XML library (libneon.so.27) : file not found. XML search disabled.<o:p></o:p></p>
<p class="MsoNormal">Scanning SNMP bus.<o:p></o:p></p>
<p class="MsoNormal">[23:05 milsrv01 ups]#<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If I go ahead and configure ups.conf using the previously good config that worked in the Ubuntu VM, I get unknown mibs value: apcc<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[23:06 milsrv01 ups]# /usr/sbin/upsdrvctl -DD start<o:p></o:p></p>
<p class="MsoNormal">Network UPS Tools - UPS driver controller 2.7.2<o:p></o:p></p>
<p class="MsoNormal">   0.000000<o:p></o:p></p>
<p class="MsoNormal">If you're not a NUT core developer, chances are that you're told to enable debugging<o:p></o:p></p>
<p class="MsoNormal">to see why a driver isn't working for you. We're sorry for the confusion, but this is<o:p></o:p></p>
<p class="MsoNormal">the 'upsdrvctl' wrapper, not the driver you're interested in.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Below you'll find one or more lines starting with 'exec:' followed by an absolute<o:p></o:p></p>
<p class="MsoNormal">path to the driver binary and some command line option. This is what the driver<o:p></o:p></p>
<p class="MsoNormal">starts and you need to copy and paste that line and append the debug flags to that<o:p></o:p></p>
<p class="MsoNormal">line (less the 'exec:' prefix).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">   0.000524     Starting UPS: MILLRACKUPS01<o:p></o:p></p>
<p class="MsoNormal">   0.000569     1 remaining attempts<o:p></o:p></p>
<p class="MsoNormal">   0.000619     exec:  /usr/sbin/snmp-ups -a MILLRACKUPS01<o:p></o:p></p>
<p class="MsoNormal">Network UPS Tools - Generic SNMP UPS driver 0.72 (2.7.2)<o:p></o:p></p>
<p class="MsoNormal">Unknown mibs value: apcc<o:p></o:p></p>
<p class="MsoNormal">   6.042075     Driver failed to start (exit status=1)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Running the latest version of NUT in XCP-NG 8.<span style="display:none"><o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="0" style="width:0in">
<tbody>
<tr>
<td style="padding:0in 0in 0in 0in"></td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>