Page 6 of 7
Re: 2014R1.0RC1 Initial reaction and question(s)
Posted: Thu May 01, 2014 2:55 pm
by b2m
scottwilkerson wrote:Actually, I believe there may be a bug in the command definition
Can you run the following?
Code: Select all
./check_ifoperstatnag 10124 -v 3 -u manager -A xxx -X xxx -l authPriv 192.168.120.126
either way, we will be testing this internally and get it sorted BEFORE the full 2014 Release
No, it's the same error then.
Code: Select all
[root@localhost libexec]# ./check_ifoperstatnag 10124 -v 3 -u manager -A df3Uvo0QfaA1bP3n -X 1qv6hJ3C9Q1PvzR8 -l authPriv 192.168.120.126
No log handling enabled - turning on stderr logging
snmpwalk: Authentication failure (incorrect password, community or key) (Sub-id not found: (top) -> ifOperStatus)
./check_ifoperstatnag: line 18: [: -eq: unary operator expected
./check_ifoperstatnag: line 21: [: -eq: unary operator expected
WARNING - No info is being retrieved
The script looks to me like it could only handle SNMPv1/v2c, buzzword "community string". Would you also look into the path thing with cfg-maker? I'm sure many customers will need reliable SNMPv3 for the wizard

.
Thanks.
Re: 2014R1.0RC1 Initial reaction and question(s)
Posted: Thu May 01, 2014 4:08 pm
by scottwilkerson
I just looked at your command again and it is missing several of the required args like
However, the developer jus took a look at the wizard and determined there were a couple bugs in it and here is the fix (until the next release)
Install the attached wizard via Admin -> Manage Wizards
switch.zip
Also, make /etc/mrtg/mrtg.cfg contain just the following:
Code: Select all
# Minimal mrtg.cfg
#--------------------
HtmlDir: /var/www/mrtg
ImageDir: /var/www/mrtg
LogFormat: rrdtool
LogDir: /var/lib/mrtg
ThreshDir: /var/lib/mrtg
WorkDir: /var/lib/mrtg
Include: conf.d/*.cfg
Finally, re-run the wizard for your host
Re: 2014R1.0RC1 Initial reaction and question(s)
Posted: Fri May 02, 2014 11:09 am
by b2m
Hi,
I still got no success with your new version.
The wizard now generates:
Code: Select all
check_xi_service_ifoperstatusnag!10122!-v3 -u manager -A xxx -X xxx -a SHA -l authPriv
This results in the following script execution:
Code: Select all
[root@localhost libexec]# ./check_ifoperstatnag 10122 -v3 -u manager -A df3Uvo0QfaA1bP3n -X 1qv6hJ3C9Q1PvzR8 -a SHA -l authPriv 192.168.120.253
Timeout: No Response from 192.168.120.253
./check_ifoperstatnag: line 18: [: -eq: unary operator expected
./check_ifoperstatnag: line 21: [: -eq: unary operator expected
WARNING - No info is being retrieved
Correct would be something like:
Code: Select all
[root@localhost libexec]# ./check_ifoperstatnag -v3 -a SHA -A df3Uvo0QfaA1bP3n -l authPriv -u manager -x AES -X 1qv6hJ3C9Q1PvzR8 192.168.120.253 IF-MIB::ifOperStatus.10122
OK - Interface -v3 is up.
So add the encryption method (-x) and everything is fine

. Default seems to be DES and it doesn't seem to distinguish between AES128, AES192 and whatever.
You should also add the if-name as it was in the old wizard so that it shows something like:
Re: 2014R1.0RC1 Initial reaction and question(s)
Posted: Fri May 02, 2014 11:12 am
by abrist
b2m wrote:check_xi_service_ifoperstatusnag!10122!-v3 -u manager -A xxx -X xxx -a SHA -l authPriv
What is "10122" ? What wizard form generated that?
Re: 2014R1.0RC1 Initial reaction and question(s)
Posted: Fri May 02, 2014 11:53 am
by b2m
abrist wrote:b2m wrote:check_xi_service_ifoperstatusnag!10122!-v3 -u manager -A xxx -X xxx -a SHA -l authPriv
What is "10122" ? What wizard form generated that?
The SNMP interface-id. It is generated by the switch wizard.
Re: 2014R1.0RC1 Initial reaction and question(s)
Posted: Fri May 02, 2014 2:23 pm
by sreinhardt
OK, I see what you are saying with the commands that are defined. Going to check some things and will be back with more info or a fix from us.
Re: 2014R1.0RC1 Initial reaction and question(s)
Posted: Mon May 05, 2014 2:24 pm
by b2m
Hi, are things working fine?
Is there any need for a basic perl plugin that can do snmp polling of switch / router interfaces and write it to xml? I'm currently working on such a thing for using it here. I could provide it for download somewhere when I'm done.
Re: 2014R1.0RC1 Initial reaction and question(s)
Posted: Mon May 05, 2014 2:48 pm
by tmcdonald
MRTG should take care of that already, but having it in a single plugin might be useful. Feel free to upload it to exchange.nagios.com if you'd like.
Re: 2014R1.0RC1 Initial reaction and question(s)
Posted: Tue May 13, 2014 2:31 pm
by b2m
And did you do something in the final version regarding the wizard?
Re: 2014R1.0RC1 Initial reaction and question(s)
Posted: Tue May 13, 2014 2:54 pm
by lmiltchev
I don't think so, at least I don't see this listed under "WIZARDS":
http://assets.nagios.com/downloads/nagi ... S-2014.TXT
There were some bug fixes on 05/01/2014:
- Fixed bugs with Switch / Router wizard and SNMP v3 -JO