Send Netdot-users mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://osl.uoregon.edu/mailman/listinfo/netdot-users
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Netdot-users digest..."
Today's Topics:
1. Re: Net::Telnet - bad parameter "-o" (Nico)
2. Re: Error while exporting nagios (Nico)
----------------------------------------------------------------------
Message: 1
Date: Wed, 28 Jun 2017 10:22:31 +0200
From: Nico <[email protected]>
Subject: Re: [Netdot-users] Net::Telnet - bad parameter "-o"
To: David Buechler <[email protected]>
Cc: "[email protected]" <[email protected]>
Message-ID:
<CAKXQfmvQMxvA0j38WWDy_XYxXe8NXB_t=xh+pixy5y6kcta...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
Hello David,
I'm having this problem also.
I'm sure there must be a more elegant and convenient solution, but I
fixed the error by editing lib/Netdot/Model/Device/CLI.pm and
commenting the lines 90 and 91.
81 $personality ||= 'ios';
82
83 my %sess_args = (
84 host => $host,
85 transport => $transport,
86 personality => $personality,
87 connect_options => {
88 shkc => 0,
89 opts => [
90 # '-o', "ConnectTimeout=$timeout",
91 # '-o', 'CheckHostIP=no',
92 ],
93 },
94 );
I guess that will affect also SSH connections that will not receive
the ConnectTimeout and CheckHostIP parameters, but that seems not to
brake anything on my setup.
I tried this on a 1721 and it yields no error, but don't get arp table
either (and router has arp entries if I issue a "show ip arp" on it).
But i tested it on a 2801 with access with both Telnet and SSH and
trying with both protocols it seems to work and gather the ARP table
correctly.
Netdot is not even trying to telnet to the 1721 (no telnet traffic
seen from Netdot host to 1721 using tcpdump, only snmp), so i'm not
sure what's wrong there.
Best regards
2016-11-09 11:21 GMT+01:00 David Buechler <[email protected]>:
> All,
>
> Any idea why this is occurring on my devices Netdot speaks to using Telnet?
>
> DEBUG - XXXXXXXX.cablemo.net: issuing CLI command: 'show mac
> address-table dynamic' over Telnet
> [ 0.010860] pr finding prompt
> [ 0.014192] tr creating Net::Telnet wrapper for telnet
> [ 0.015414] tr connecting with: telnet Host XXXXXXXX.cablemo.net Port
> 23 -o ConnectTimeout=30 -o CheckHostIP=no
> ERROR: Device::CLI::_get_arp_from_cli: XXXXXXXX.cablemo.net: bad named
> parameter "-o" given to Net::Telnet::new() at
> /usr/local/share/perl5/Net/CLI/Interact/Transport/Role/ConnectCore.pm
> line 25
>
> --
> Regards,
> David A. Buechler
> System Administrator
>
> CableAmerica Missouri LLC
> 350 E. 10th Drive
> Mesa, AZ 85210-8709
> 480.355.2761 direct
> [email protected]
>
> _______________________________________________
> Netdot-users mailing list
> [email protected]
> https://osl.uoregon.edu/mailman/listinfo/netdot-users
--
Nico
------------------------------
Message: 2
Date: Wed, 28 Jun 2017 12:48:44 +0200
From: Nico <[email protected]>
Subject: Re: [Netdot-users] Error while exporting nagios
To: Ahmed Maged <[email protected]>
Cc: "[email protected]" <[email protected]>
Message-ID:
<CAKXQfmvEVKrfRAJ3TV9v8y=dhoage_ygqtvuceohppiysr1...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Hello Ahmed,
That is the value you set in etc/Site.conf as NMS_DEVICE => 'localhost',
In my case i set it to the name of my core routing device, as it will be
the "center" from wich topologies are painted, don't use nagios, so i'm not
sure if in your case it should point somewhere else, anyway set the value
of NMS_DEVICE to an existing device in your netdot database and play with
it to see if you can export to nagios and if the results suit your needs.
Best regards,
2017-06-02 1:44 GMT+02:00 Ahmed Maged <[email protected]>:
> Hi,
>
> I am getting this error when i export nagios config file.
>
> *config_tasks.html* produced the following error:
>
> Netdot::Exporter::Nagios: Monitoring device 'localhost' not found in DB
>
>
> Any ideas ?
>
> Thanks
>
> Ahmed
>
>
> --
>
>
> _______________________________________________
> Netdot-users mailing list
> [email protected]
> https://osl.uoregon.edu/mailman/listinfo/netdot-users
>
>
--
Nico
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://osl.uoregon.edu/pipermail/netdot-users/attachments/20170628/39269199/attachment-0001.html
------------------------------
_______________________________________________
Netdot-users mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-users
End of Netdot-users Digest, Vol 98, Issue 4
*******************************************