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: Auto start ND2 daemons (Nikolaos Milas)
   2. Re: Auto start ND2 daemons (Oliver Gorwits)
   3. ldap users admin? (Natxo Asenjo)
   4. Re: ldap users admin? (Oliver Gorwits)
   5. Re: ldap users admin? (Natxo Asenjo)
   6. Re: ldap users admin? (Oliver Gorwits)
   7. Error when discovering by DNS name (Francesco Schiavarelli)
   8. Re: Error when discovering by DNS name (Oliver Gorwits)
--- Begin Message ---
On 2/6/2014 1:07 μμ, Oliver Gorwits wrote:

I believe the version on CPAN will now create the init script for you

Thank you Oliver.

Indeed, App::Netdisco v2.027007 does generate the scripts. I have consolidated the two scripts in one /etc/init.d/netdisco file and it works.

You may want to add:

   # chkconfig: <levels> <start> <stop>
   # description: <some description>

in order to provide chkconfig support.

I have added:

   # chkconfig: 2345 73 27
   # description: NetDisco 2

so that the Netdisco services start/end after/before (respectively) the postgresql 8.4 service on which they depend (which in RHEL/CentOS 6 uses: "chkconfig: - 64 36").

All the best,
Nick





--- End Message ---
--- Begin Message ---
On 2014-06-04 14:05, Nikolaos Milas wrote:
On 2/6/2014 1:07 μμ, Oliver Gorwits wrote:

I believe the version on CPAN will now create the init script for you

Thank you Oliver.

Indeed, App::Netdisco v2.027007 does generate the scripts. I have
consolidated the two scripts in one /etc/init.d/netdisco file and it works.

Great :-) Thanks for the confirmation.

You may want to add:

    # chkconfig: <levels> <start> <stop>
    # description: <some description>

I'll mention this to the Daemon::Control developers (this is the module that is actually responsible for the init scripts).

regards,
oliver.


in order to provide chkconfig support.

I have added:

    # chkconfig: 2345 73 27
    # description: NetDisco 2

so that the Netdisco services start/end after/before (respectively) the
postgresql 8.4 service on which they depend (which in RHEL/CentOS 6
uses: "chkconfig: - 64 36").

All the best,
Nick




------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Netdisco mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users




--- End Message ---
--- Begin Message ---
hi,

when logging in as ldap user, the admin controls are not visible. Is it
possible to enable them with a config parameter?

Thanks!
--
Groeten,
natxo

--- End Message ---
--- Begin Message ---
On 2014-06-04 19:38, Natxo Asenjo wrote:
hi,

when logging in as ldap user, the admin controls are not visible. Is
it possible to enable them with a config parameter?

If the user is in the database then there's an 'admin' flag to grant this right.

You need to log in as an admin then grant this using the web interface, or in the database directly.

If you're still stuck, please provide more details on how you've configured user(s) so far in Netdisco and also your LDAP config (in Netdisco or Apache).

regards,
oliver.



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


On Wed, Jun 4, 2014 at 11:03 PM, Oliver Gorwits <[email protected]> wrote:

> On 2014-06-04 19:38, Natxo Asenjo wrote:
> > hi,
> >
> > when logging in as ldap user, the admin controls are not visible. Is
> > it possible to enable them with a config parameter?
>
> If the user is in the database then there's an 'admin' flag to grant
> this right.
>
> You need to log in as an admin then grant this using the web interface,
> or in the database directly.
>
>
aha, so obvious, my apologies for not having tried that before. I added it
there and it's working now.

What I do see is that some utf-8 chars are now funny looking, for instance
I have this first name:

José

and it shows now in the /admin/users page as:

José

Not really important, though, but maybe interesting for you to know.

Thanks!

-- 
regards,
natxo

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

OK, thanks for the confirmation that admin rights are working.

And I'll take a look at the utf-8 bug, many thanks.

regards,
oliver.

On 2014-06-05 08:42, Natxo Asenjo wrote:
Hi Oliver,

On Wed, Jun 4, 2014 at 11:03 PM, Oliver Gorwits <[email protected] [1]>
wrote:

On 2014-06-04 19:38, Natxo Asenjo wrote:
> hi,
>
> when logging in as ldap user, the admin controls are not visible.
Is
> it possible to enable them with a config parameter?

If the user is in the database then there's an 'admin' flag to
grant
this right.

You need to log in as an admin then grant this using the web
interface,
or in the database directly.

aha, so obvious, my apologies for not having tried that before. I
added it there and it's working now.

What I do see is that some utf-8 chars are now funny looking, for
instance I have this first name:

José

and it shows now in the /admin/users page as:

José

Not really important, though, but maybe interesting for you to know.

Thanks!




--- End Message ---
--- Begin Message ---
Hello,

performing manual discovery by using DNS names
sometimes does not work depending on the hostname.

If the hostname contains an underscore ("_" character)
then I get the following error:

~$ bin/netdisco-do discover -d test_router.example.com
[19106]  info @0.000011> discover: started at Mon Jun  9 14:01:58 2014
[19106]  info @0.000418> discover: finished at Mon Jun  9 14:01:58 2014
[19106]  info @0.000580> discover: status error: error running job: Can't
call method "addr" on an undefined value at
/home/netdisco/perl5/lib/perl5/App/Netdisco/Daemon/Worker/Poller/Device.pm
line 50.

If the hostname does not contain an underscore character
then the discovery is successfull:

~$ bin/netdisco-do discover -d test.example.com
[19140]  info @0.000013> discover: started at Mon Jun  9 14:16:30 2014
[19140]  info @6.384684> discover: finished at Mon Jun  9 14:16:36 2014
[19140]  info @6.384977> discover: status done: Ended discover for
123.123.123.123

Discovering the same host using its IP address is ok.

Do you have any idea?

thank you
regards

--- End Message ---
--- Begin Message ---
Hi Francesco,

First, please subscribe to the mail list - I did allow this one message so that you get a prompt reply.

On 2014-06-09 13:19, Francesco Schiavarelli wrote:
If the hostname contains an underscore ("_" character)
 then I get the following error:

Underscore is not a valid character in DNS host names (A records).

I suggest you rename your hosts to use only a-z,0-9 and hyphen ('-'):
http://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_host_names

regards,
oliver.


~$ bin/netdisco-do discover -d test_router.example.com [1]

[19106]  info @0.000011> discover: started at Mon Jun  9 14:01:58
2014
[19106]  info @0.000418> discover: finished at Mon Jun  9 14:01:58
2014
[19106]  info @0.000580> discover: status error: error running job:
Can't call method "addr" on an undefined value at

/home/netdisco/perl5/lib/perl5/App/Netdisco/Daemon/Worker/Poller/Device.pm
line 50.

If the hostname does not contain an underscore character
then the discovery is successfull:

~$ bin/netdisco-do discover -d test.example.com [2]
[19140]  info @0.000013> discover: started at Mon Jun  9 14:16:30
2014
[19140]  info @6.384684> discover: finished at Mon Jun  9 14:16:36
2014
[19140]  info @6.384977> discover: status done: Ended discover for
123.123.123.123

Discovering the same host using its IP address is ok.

Do you have any idea?

 thank you

regards


Links:
------
[1] http://test_router.example.com
[2] http://test.example.com




--- End Message ---
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://www.hpccsystems.com
_______________________________________________
Netdisco mailing list - Digest Mode
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to