2014R1.0RC1 Initial reaction and question(s)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
b2m
Posts: 71
Joined: Tue Jun 11, 2013 9:18 am

Re: 2014R1.0RC1 Initial reaction and question(s)

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: 2014R1.0RC1 Initial reaction and question(s)

Post by scottwilkerson »

I just looked at your command again and it is missing several of the required args like

Code: Select all

-a md5 -x DES
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
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
b2m
Posts: 71
Joined: Tue Jun 11, 2013 9:18 am

Re: 2014R1.0RC1 Initial reaction and question(s)

Post 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:

Code: Select all

OK - Interface Gig0/24 is up.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: 2014R1.0RC1 Initial reaction and question(s)

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
b2m
Posts: 71
Joined: Tue Jun 11, 2013 9:18 am

Re: 2014R1.0RC1 Initial reaction and question(s)

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: 2014R1.0RC1 Initial reaction and question(s)

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
b2m
Posts: 71
Joined: Tue Jun 11, 2013 9:18 am

Re: 2014R1.0RC1 Initial reaction and question(s)

Post 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.
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: 2014R1.0RC1 Initial reaction and question(s)

Post 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.
Former Nagios employee
b2m
Posts: 71
Joined: Tue Jun 11, 2013 9:18 am

Re: 2014R1.0RC1 Initial reaction and question(s)

Post by b2m »

And did you do something in the final version regarding the wizard?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: 2014R1.0RC1 Initial reaction and question(s)

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked