Send netdisco-users mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/netdisco-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 netdisco-users digest..."
Today's Topics:

   1. netdisco daemon ? (Auger, Ivan (ITS))
   2. Re: netdisco daemon ? (Oliver Gorwits)
   3. 403 forbidden error (matthew jennings)
   4. SSHCollector Issues (Graybeal, Andrew C.)
   5. Re: unable to parse configuration file (Oliver Gorwits)
   6. Re: Port Report Help (Jeroen van Ingen)
--- Begin Message ---
I see lot of these in the daemon log file all the time:


Can't call method "error" on an undefined value at 
/usr/local/netdisco2/perl5/lib/perl5/App/Netdisco/Util/SNMP.pm line 174, 
<__ANONIO__> line 1


--- End Message ---
--- Begin Message ---

Thanks Ivan, I've created a tracker item for the bug:

https://sourceforge.net/p/netdisco/netdisco2/211/

On 2015-04-08 22:13, Auger, Ivan (ITS) wrote:
I see lot of these in the daemon log file all the time:

 Can't call method "error" on an undefined value at
/usr/local/netdisco2/perl5/lib/perl5/App/Netdisco/Util/SNMP.pm line
174, <__ANONIO__> line 1




--- End Message ---
--- Begin Message ---
i'm getting closer to working with netdisco but when i try to open the 
localhost/netdisco in my brower, i get the 403 error message. i assume, from 
what i've read, that this is an apache2 issue? do i need to change the 
user/group from apache/apache to netdisco in /etc/httpd/conf/httpd.conf?
                                          

--- End Message ---
--- Begin Message ---
Finally starting the process of moving our environment to Netdisco 2. The SSH 
Collector is a great feature. We've hacked together this stuff previously and 
it's always been terribly sloppy.

I'm having trouble though getting the sshcollector to run. I've encountered the 
same issue on both CentOS 7 and Centos 6.6. It appears that the required 
dependencies aren't installed by default, so I ran the following to get them 
installed:


$ curl -L http://cpanmin.us/ | perl - --notest --local-lib ~/perl5 Net::OpenSSH

$ curl -L http://cpanmin.us/ | perl - --notest --local-lib ~/perl5 Expect


I also found and uncommented the debug line in the sshcollector script. End 
goal is to get the ARP cache from some multi-context ASA devices - I'd have to 
add it as a new device as the syntax doesn't match anything existing, but I'd 
be happy to share this once done. Through the process of writing this though it 
seemed that it kept exiting before entering any commands. I figured I'd do some 
debugging by testing with the Linux platform script as this should be easy to 
test against any Linux host. I'm seeing the same issues though - it appears 
that it disconnects as soon as it establishes a connection. Interestingly, if I 
swap to the IOS script (which doesn't use Expect), it appears to run correctly 
(with the wrong commands of course) - and produces a message of "...warn 
WARNING: no entries received..." versus no message at all from the other 
scripts.

Any debugging I can do or set-up steps I missed?

--- End Message ---
--- Begin Message ---
On 2015-04-07 14:23, matthew jennings wrote:
i uncommented the "host" 'localhost; port=5432'" line and still get
the error:

Hi Matthew, based on you other message about Apache and the 403 error, can I assume that you made it past this issue and Netdisco is now working using its own webserver on port 5000?

regards,
oliver.



--- End Message ---
--- Begin Message ---
Hi Oliver, Tobias,

Shouldn't the two checks in the WHERE clause be combined with an OR statement? I'd say you want ports that are "currently up" or "have had a state change in the last month but may be down at last_discover".


Regards,

Jeroen van Ingen
ICT Service Centre
University of Twente, P.O.Box 217, 7500 AE Enschede, The Netherlands


On 04/07/2015 11:55 PM, Oliver Gorwits wrote:
Hi Tobias,

On 2015-04-07 14:47, Tobias Gerlach wrote:
I'm currently working on a custom switch port report.
But I don't know how to identify only that switch ports which were
active in the last month?
Can anybody help me with that and complete the SQL query?

You want the lastchange column of device_ports, but because of the
specification of this data in the MIBs the SQL is a little hairy. This
then needs combining with a check that the port state is UP (that is,
the port changed to UP from another state). For example:

SELECT device_port.ip, device_port.port from device_port
LEFT JOIN device ON device_port.ip = device.ip
WHERE device_port.up = "up"
   AND (device.last_discover - (device.uptime - device_port.lastchange) /
100 * interval '1 second')
       > (now() - interval '1 month');

You can also add something like this to show the lastchange as a
column:

to_char(
   (device.last_discover - (device.uptime - device_port.lastchange) / 100
* interval '1 second'),
   'YYYY-MM-DD HH24:MI:SS',
) as 'last_change'

Hope that helps,

regards,
oliver.




select count(*) from device_port
   inner join device on device_port.ip=device.ip
    where (device.dns like 'dlnn8%') and device_port.type like
'ethernetCsmacd'
     and __ active within the last month __ ??

Thanks a lot!


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live
exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
event?utm_

source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Netdisco mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Netdisco mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users





--- End Message ---
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Netdisco mailing list - Digest Mode
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to