<div dir="ltr">a backup of your server is never a bad idea before making changes<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px">Atte.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><address style="font-size:12.8px">Pablo A. Muñoz Rojas</address><address style="font-size:12.8px"><span style="font-size:small">Reseller</span><span style="font-size:small"> </span>Nagios & <a href="http://www.nagios.org/communitynetwork" target="_blank">Nagios Community Manager</a></address><address style="font-size:12.8px">P: +56-32-3140734 | C: +56-9-85499668</address><address style="font-size:12.8px">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> | <span style="font-size:12.8px">d: Ecuador 85, Viña del Mar, Chile</span></address><address style="font-size:12.8px"><span lang="EN-US"><a href="http://www.nagios.com/verify/" target="_blank">Nagios Certified Administrator and Professional - 3HCL9F</a></span></address><address style="font-size:12.8px"><b>Nuestras redes:</b> <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></address></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2015-07-07 12:51 GMT-03:00 José Pedro Brito Röseler <span dir="ltr"><<a href="mailto:pedro.roeseler@av.it.pt" target="_blank">pedro.roeseler@av.it.pt</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Andreas.<br>
<br>
Thanks for the tip. I tried with both double and single quotes but I get the<br>
same error...<br>
And yes, the passwords I posted here are just examples. :-)<br>
<br>
I think I will then proceed with the check_snmp plugin upgrade...<br>
I already downloaded the latest version of nagios<br>
plugins(nagios-plugins-2.0.3) and copied it to the server.<br>
My current plugins are in /usr/lib64/nagios/plugins<br>
<br>
The thing is that I'm running a Full automated installation of Nagios(FAN)<br>
so I'm not sure of how to proceed without breaking something else during the<br>
upgrade.<br>
<br>
Is it safe to do this?<br>
<br>
tar xzf nagios-plugins-2.0.3<br>
cd nagios-plugins-2.0.3<br>
./configure --with-nagios-user=nagios --with-nagios-group=nagios<br>
make<br>
make install<br>
<br>
<br>
<br>
regards,<br>
Pedro Röseler<br>
<span class="im HOEnZb"><br>
-----Original Message-----<br>
From: Help<br>
[mailto:<a href="mailto:help-bounces%2Bpedro.roeseler">help-bounces+pedro.roeseler</a>=<a href="mailto:av.it.pt@monitoring-plugins.org">av.it.pt@monitoring-plugins.org</a>] On<br>
</span><span class="im HOEnZb">Behalf Of Andreas Ericsson<br>
Sent: 7 de julho de 2015 16:31<br>
To: Monitoring Plugins Users<br>
Subject: Re: Cannot use snmp_check with snmp v3<br>
<br>
</span><div class="HOEnZb"><div class="h5">On 2015-07-07 16:17, José Pedro Brito Röseler wrote:<br>
> 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<br>
> -L authPriv -a MD5 -A v3p4ssword#1 -x DES -X v3p4ssword#2 -H<br>
> 192.168.254.2 -o DISMAN-EVENT-MIB::sysUpTimeInstance<br>
><br>
> External command error: snmpget: Authentication failure (incorrect<br>
> password, community or key)<br>
><br>
><br>
><br>
> I get the same error on the web console:<br>
><br>
><br>
><br>
><br>
><br>
> My switches.conf is like this:<br>
><br>
><br>
><br>
> # HOST DEFINITIONS<br>
><br>
> #<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>
> #<br>
><br>
> # HOST GROUP DEFINITIONS<br>
><br>
> #<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<br>
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<br>
hostgroup<br>
><br>
> alias Network Switches with SNMP v3 ; Long name<br>
of<br>
> the group<br>
><br>
> }<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>
><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<br>
><br>
<br>
This happens because the shell translates the hash in your password to the<br>
end of the command and the start of a comment. You need to use either single<br>
or double quotes around both your passwords in order for the shell to see<br>
them as a single argument.<br>
<br>
> check_command check_snmp!-P 3 -U snmpv3user -L authPriv -a MD5<br>
-A<br>
> v3p4ssword#1 -x DES -X v3p4ssword#2 -o<br>
> DISMAN-EVENT-MIB::sysUpTimeInstance<br>
><br>
<br>
So type in v3p4ssword#1 as 'v3p4ssword#1' with the quotes, and do the same<br>
for 'v3p4ssword#2' and it should work.<br>
<br>
--<br>
Andreas Ericsson <a href="mailto:andreas.ericsson@op5.se">andreas.ericsson@op5.se</a><br>
OP5 AB <a href="http://www.op5.se" rel="noreferrer" target="_blank">www.op5.se</a><br>
Tel: +46 8-230225 Fax: +46 8-230231<br>
<br>
Considering the successes of the wars on alcohol, poverty, drugs and terror,<br>
I think we should give some serious thought to declaring war on peace.<br>
<br>
</div></div></blockquote></div><br></div>