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. Re: More than one custom report. (Peter Grasso)
--- Begin Message ---
Hi Max,


Yep, that was the whole problem - my YAML was not concise enough. That tester 
makes it easy to spot if it is correct or not.


Regards,





Pete

________________________________
From: Caines, Max <[email protected]>
Sent: Monday, April 8, 2019 8:57:09 PM
To: Peter Grasso; Oliver Gorwits; [email protected]
Subject: RE: [Netdisco] More than one custom report.


Hi Peter



Unless your copy/paste has changed the indentation, that’s not valid YAML. The 
indentation on the “power_inventory” line doesn’t mention that on the “serials” 
line. I ran this through http://yaml-online-parser.appspot.com/



Regards



Max



From: Peter Grasso <[email protected]>
Sent: 08 April 2019 11:43
To: Oliver Gorwits <[email protected]>; [email protected]
Subject: Re: [Netdisco] More than one custom report.



Hi guys,

Not doing anything fancy at all, here is what hangs the web interface:



reports:

  - tag: power_inventory

    label: 'Power Supply Inventory'

    category: Device

    columns:

      - {name: 'Name'}

      - {ps1_type: 'PS1 Type'}

      - {ps1_status: 'PS1 Status'}

    query: |

      SELECT d.name, d.ps1_type, d.ps1_status

        FROM device d

      ORDER BY name

- tag: serials

  label: 'Module Serials'

  columns:

    - {name: 'Device'}

    - {serial: 'Module Serial'}

    - {type: 'Module Type'}

  query: |

    SELECT d.name, dm.ip, dm.serial, dm.type

      FROM device_module dm

      LEFT JOIN device d USING (ip)

      WHERE dm.type ~* ? and dm.serial != ''

    ORDER BY name, type, serial

  bind_params: ['dm.type']







I can run one or the other, but not both…



Regards,





Peter Grasso

Network Projects Administration
Methodist Ladies' College
207 Barkers Road, Kew Vic 3101, Australia
Telephone: +61 3 92748187

Facsimile: +61 3 92748101
Email: [email protected]<mailto:[email protected]>



Disclaimer: This email is intended for the use of the named individual or 
entity and may contain confidential and privileged information. Any 
dissemination, distribution or copying by anyone other than the intended 
recipient of this email is strictly prohibited. Attachments are opened and 
transmitted at the user's own risk. Any representations or opinions expressed 
are those of the individual sender, and not necessarily those of Methodist 
Ladies' College.

________________________________



From: Oliver Gorwits <[email protected]<mailto:[email protected]>>
Sent: Monday, 8 April 2019 6:00 PM
To: Peter Grasso <[email protected]<mailto:[email protected]>>; 
[email protected]<mailto:[email protected]>
Subject: Re: [Netdisco] More than one custom report.



Hi Peter



If you're able to share your custom reports config (on 
http://paste.scsys.co.uk/<https://url6.mailanyone.net/v1/?m=1hDRmL-000D0J-5m&i=57e1b682&c=MO3lJ0khhxadHAWBQ-gYpCPLIQ4FnmVmwMUeVDqyqW2uvXhFjkO3ALBpMdYSfxUaRUt-R9CNVMbAYusXefnezJdXE4sbOE_Mkq4WIn_v2PEWZ-pGmFfBplkm1x0hnX2NHowFizFVOX6r9gBgfrPSZ407Xp7Z78Hbi5szo5l3_ElE_56ZOOQK5cvob1uB1MrH7Zs3uo-6cVrEYPg_wByN-dbDQcu-xR9bFjU52YJK3vg>
 for example) we can give it a try.



On Sun, 7 Apr 2019 at 06:30, Peter Grasso 
<[email protected]<mailto:[email protected]>> wrote:

Hi all,



Does anyone know if it is possible to add more than one custom report to the 
end of deployment.yml ?



I can get the first report to work fine, but if I try to add another it seems 
to hang the web interface.



Regards,





Pete

_______________________________________________
Netdisco mailing list
[email protected]<mailto:[email protected]>
https://sourceforge.net/p/netdisco/mailman/netdisco-users/<https://url6.mailanyone.net/v1/?m=1hDRmL-000D0J-5m&i=57e1b682&c=pIwriWyBCMyuk_iSFSmJMHJ6WeREWeKEtCGJggvuBOBQ1YWZrWj5wVTQ8dgUgEHcwW3XYf7HGW9z3m9AfIzUXF3s6G_785rmN1HdnV2KfCUOD8koV1gfpBMXQ0hD7gbaBp00PnWwbzqmseVBQIzJ0bLL3Sus7fHpnZ9NWaJZbVAaYVQOcdgRyToGYfe4H09Nz-z7nkLHpIM8qGt5p0m2_3a3uAPF5JMcy9W7nkny_FLe2sqChxP442gyZNU_UmmvCkRh0sBF6FBUwhE4fjgBRA>

________________________________

This email has been scanned for spam & viruses. If you believe this email 
should have been stopped by our filters, click 
here<https://portal.mailanyone.net/index.html#/outer/reportspam?token=dXNlcj1NYXguQ2FpbmVzQHdsdi5hYy51azt0cz0xNTU0NzIwMzMwO3V1aWQ9NUNBQjI2NDlEMDI1ODJFMjdBN0NFQjlDNjlGMkZDQzY7dG9rZW49MDY5OWI5ZmI1M2E0MDMyN2YyM2UwN2YyMjRhNDYwMWRjYjk4OWMyYzs%3D>
 to report it.

--- End Message ---
_______________________________________________
Netdisco mailing list - Digest Mode
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to