Send netdisco-users mailing list submissions to
        netdisco-users@lists.sourceforge.net

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
        netdisco-users-requ...@lists.sourceforge.net

You can reach the person managing the list at
        netdisco-users-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:

   1. Polling failures (Charlie Butera)
--- Begin Message ---
Hello,

I am having an issue where various jobs (discover, arpnip & macsuck) fail
on random devices and never complete. This results in a stuck state since
the device is never polled successfully from that point on (for the
respective job).

Example Host 10.x.x.x
Last Discover 2021-02-04 19:04
Last Arpnip 2021-02-05 16:20
Last Macsuck 2021-02-04 21:00

Query to view stuck jobs for that host (apologies for display of table, I
tried sending an image but it didnt send pending "moderator can review it
for approval")

~ $ ./bin/netdisco-do psql -e "SELECT * FROM admin WHERE finished IS NULL
AND device = '10.x.x.x'"
[459] 2021-02-12 14:53:33  info App::Netdisco version 2.047002 loaded.
[459] 2021-02-12 14:53:33  info psql:  started at Fri Feb 12 14:53:33 2021
  job  |          entered           |          started           | finished
|  device  | port |  action  | subaction |          status         |
username | userip | log | debug | device_key
-------+----------------------------+----------------------------+----------+----------+------+----------+-----------+-------------------------+----------+--------+-----+-------+------------
  3064 | 2021-02-04 20:00:36.570694 | 2021-02-04 20:00:48.60293  |
 | 10.x.x.x |      | discover |           | queued-netdisco-backend |
   |        |     |       |
  6178 | 2021-02-04 21:50:43.342499 | 2021-02-04 21:50:45.729956 |
 | 10.x.x.x |      | macsuck  |           | queued-netdisco-backend |
   |        |     |       |
 10449 | 2021-02-05 17:20:32.251217 | 2021-02-05 17:20:33.91666  |
 | 10.x.x.x |      | arpnip   |           | queued-netdisco-backend |
   |        |     |       |
(3 rows)

[459] 2021-02-12 14:53:33  info psql: finished at Fri Feb 12 14:53:33 2021
[459] 2021-02-12 14:53:33  info psql: status done: psql session closed.

However when I run a ./bin/netdisco-do manually or trigger the job via the
web ui it completes successfully.
~ $ ./bin/netdisco-do macsuck -d 10.x.x.x
[17326] 2021-02-12 15:04:57  info App::Netdisco version 2.047002 loaded.
[17326] 2021-02-12 15:04:57  info macsuck: [10.x.x.x] started at Fri Feb 12
15:04:57 2021
[17326] 2021-02-12 15:04:59  info macsuck: finished at Fri Feb 12 15:04:59
2021
[17326] 2021-02-12 15:04:59  info macsuck: status done: Ended macsuck for
10.x.x.x

Software Version
App::Netdisco 2.47.2
SNMP::Info 3.71
DB Schema 64
PostgreSQL 12.00.2
Perl 5.30.3

Deployment Info:
1 netdisco-backend (docker container)
1 netdisco-web (docker container)
1 netdisco-postgres (docker container)




*Charles Butera*

*Network Engineer*

cbut...@squarespace.com <kkne...@squarespace.com>

Squarespace

Squarespace.com

--- End Message ---
_______________________________________________
Netdisco mailing list - Digest Mode
netdisco-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to