<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=utf-8">
<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;}
@font-face
{font-family:"Monotype Corsiva";
panose-1:3 1 1 1 1 2 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
address
{mso-style-priority:99;
mso-style-link:"HTML Address Char";
margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.HTMLAddressChar
{mso-style-name:"HTML Address Char";
mso-style-priority:99;
mso-style-link:"HTML Address";
font-family:"Times New Roman",serif;
font-style:italic;}
span.hoenzb
{mso-style-name:hoenzb;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.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="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">EGADS dude! … Never give out your password !!!!!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Monotype Corsiva";color:black">If you have any questions, please contact me.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Monotype Corsiva";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-family:"Monotype Corsiva";color:#1F497D">James Pietan<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-family:"Monotype Corsiva";color:#1F497D">System Programmer I<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Monotype Corsiva";color:#1F497D">Messaging and Directory Services<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Monotype Corsiva";color:#1F497D">SOA DOA ETS<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Monotype Corsiva";color:#1F497D">(907) 465-5769<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Monotype Corsiva";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Monotype Corsiva";color:#A50021">IMPORTAN WARNING</span><span style="font-size:10.0pt;font-family:"Monotype Corsiva";color:#A50021">: This message is intended for the use of the person or entity
to which it is addressed and may contain<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Monotype Corsiva";color:#A50021">information that is confidential. If you are not the intended recipient, the employee or agent responsible to deliver it to the intended recipient,
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Monotype Corsiva";color:#A50021">you are hereby notified that any disclosure, copying, forwarding or distribution of any information in this message is STRICTLY
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Monotype Corsiva";color:#A50021">PROHIBITED. If you have received this message by error, please notify the sender and immediately delete all copies from your computer
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Monotype Corsiva";color:#A50021">system to prevent further disclosure.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Help [mailto:help-bounces+james.pietan=alaska.gov@monitoring-plugins.org]
<b>On Behalf Of </b>pablo muñoz<br>
<b>Sent:</b> Tuesday, July 7, 2015 7:34 AM<br>
<b>To:</b> Monitoring Plugins Users<br>
<b>Subject:</b> Re: Cannot use snmp_check with snmp v3<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">It is the actual password? I thought it was an example<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br clear="all">
<o:p></o:p></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">Atte.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt"><o:p> </o:p></span></p>
</div>
<div>
<address><span style="font-size:9.5pt">Pablo A. Muñoz Rojas<o:p></o:p></span></address>
<address>Reseller <span style="font-size:9.5pt">Nagios & <a href="http://www.nagios.org/communitynetwork" target="_blank">Nagios Community Manager</a><o:p></o:p></span></address>
<address><span style="font-size:9.5pt">P: +56-32-3140734 | C: +56-9-85499668<o:p></o:p></span></address>
<address><span style="font-size:9.5pt">w: <a href="http://www.e-visus.cl/" target="_blank">www.e-visus.cl</a> – <a href="http://www.nagios-cl.org/" target="_blank">www.nagios-cl.org</a> | d: Ecuador 85, Viña del Mar, Chile<o:p></o:p></span></address>
<address><span style="font-size:9.5pt"><a href="http://www.nagios.com/verify/" target="_blank">Nagios Certified Administrator and Professional - 3HCL9F</a><o:p></o:p></span></address>
<address><b><span style="font-size:9.5pt">Nuestras redes:</span></b><span style="font-size:9.5pt"> <a href="https://cl.linkedin.com/in/pablomunozrojas/" target="_blank">Linkedin </a>- <a href="https://twitter.com/Nagios_Chile" target="_blank">Twitter </a>- <a href="http://www.e-visus.cl/?p=241" target="_blank">Line </a>- <a href="http://www.e-visus.cl/?p=241" target="_blank">skype</a> - <a href="https://www.facebook.com/evisus4nagios" target="_blank">facebook</a><o:p></o:p></span></address>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">2015-07-07 12:31 GMT-03:00 Andreas Ericsson <<a href="mailto:ae@op5.se" target="_blank">ae@op5.se</a>>:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">On 2015-07-07 16:17, José Pedro Brito Röseler wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal" style="margin-bottom:12.0pt">Hello.<br>
<br>
<br>
<br>
I’m trying to check the uptime of a Cisco 2960X switch on Nagios with<br>
check_snmp plugin but I always get the following error:<br>
<br>
<br>
<br>
[root@nagios]# /usr/lib64/nagios/plugins/check_snmp -P 3 -U snmpv3user -L<br>
authPriv -a MD5 -A v3p4ssword#1 -x DES -X v3p4ssword#2 -H 192.168.254.2 -o<br>
DISMAN-EVENT-MIB::sysUpTimeInstance<br>
<br>
External command error: snmpget: Authentication failure (incorrect password,<br>
community or key)<br>
<br>
<br>
<br>
I get the same error on the web console:<br>
<br>
<br>
<br>
<br>
<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">My switches.conf is like this:<br>
<br>
<br>
<br>
# HOST DEFINITIONS<br>
<br>
#<br>
<br>
############################################################################<br>
###<br>
<br>
############################################################################<br>
###<br>
<br>
<br>
<br>
# Define the switch that we'll be monitoring<br>
<br>
<br>
<br>
define host{<br>
<br>
use generic-switch,host-pnp<br>
<br>
host_name cisco_2960x_IT2_Datacenter<br>
<br>
alias cisco 2960x 24p IT2 Datacenter<br>
<br>
address 192.168.254.2<br>
<br>
hostgroups switches_v3<br>
<br>
notification_interval 60<br>
<br>
icon_image switch.png<br>
<br>
statusmap_image switch40.png<br>
<br>
}<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
############################################################################<br>
###<br>
<br>
############################################################################<br>
###<br>
<br>
#<br>
<br>
# HOST GROUP DEFINITIONS<br>
<br>
#<br>
<br>
############################################################################<br>
###<br>
<br>
############################################################################<br>
###<br>
<br>
<br>
<br>
# Create a new hostgroup for switches<br>
<br>
<br>
<br>
define hostgroup{<br>
<br>
hostgroup_name switches ; The name of the hostgroup<br>
<br>
alias Network Switches ; Long name of the group<br>
<br>
}<br>
<br>
<br>
<br>
define hostgroup{<br>
<br>
hostgroup_name switches_v3 ; The name of the hostgroup<br>
<br>
alias Network Switches with SNMP v3 ; Long name of<br>
the group<br>
<br>
}<br>
<br>
<br>
<br>
############################################################################<br>
###<br>
<br>
############################################################################<br>
###<br>
<br>
#<br>
<br>
# SERVICE DEFINITIONS<br>
<br>
#<br>
<br>
############################################################################<br>
###<br>
<br>
############################################################################<br>
###<br>
<br>
<br>
<br>
########## Switches with SNMP V3 ###################<br>
<br>
<br>
<br>
# Service definition to monitor switch uptime using check_snmp<br>
<br>
<br>
<br>
# Monitor uptime via SNMP<br>
<br>
<br>
<br>
define service{<br>
<br>
use generic-service<br>
<br>
hostgroup_name switches_v3<br>
<br>
service_description Uptime<o:p></o:p></p>
</div>
</div>
</blockquote>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
This happens because the shell translates the hash in your password to<br>
the end of the command and the start of a comment. You need to use<br>
either single or double quotes around both your passwords in order for<br>
the shell to see them as a single argument.<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal" style="margin-bottom:12.0pt">check_command check_snmp!-P 3 -U snmpv3user -L authPriv -a MD5 -A<br>
v3p4ssword#1 -x DES -X v3p4ssword#2 -o DISMAN-EVENT-MIB::sysUpTimeInstance<o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><br>
So type in v3p4ssword#1 as 'v3p4ssword#1' with the quotes, and do the<br>
same for 'v3p4ssword#2' and it should work.<span style="color:#888888"><br>
<br>
<span class="hoenzb">-- </span><br>
<span class="hoenzb">Andreas Ericsson <a href="mailto:andreas.ericsson@op5.se" target="_blank">andreas.ericsson@op5.se</a></span><br>
<span class="hoenzb">OP5 AB <a href="http://www.op5.se" target="_blank">www.op5.se</a></span><br>
<span class="hoenzb">Tel: +46 8-230225 Fax: +46 8-230231</span><br>
<br>
<span class="hoenzb">Considering the successes of the wars on alcohol, poverty, drugs and</span><br>
<span class="hoenzb">terror, I think we should give some serious thought to declaring war</span><br>
<span class="hoenzb">on peace.</span></span><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>