Results 1 to 3 of 3

Thread: Set the host_name with a discovery_run

  1. #1
    Junior Member
    Join Date
    Jul 2012
    Posts
    7

    Set the host_name with a discovery_run

    Hi all,

    I set a discovery_run that give me the sysname of the host by snmp like this:
    xxx.xxx.xxx.xxx::host_name=SW554A101

    but this value is not considered by the script shinken-discovery. the script put the IP address for the host_name parameter on the conf file.
    I didn't find any information on how to do that.

    is there a way to do that with the discovery script ?

  2. #2
    Administrator
    Join Date
    Dec 2011
    Posts
    278

    Re: Set the host_name with a discovery_run

    Sorry, out of the box it does not.

    But the discovery runners can be modified for this exact behaviour. That is why you can have multiple runners for different devices classes.

    Just look at the python discovery runner script you are using and edit it for your needs. Anytime is a good time to learn Python. ;-)

    I used to swear by Perl, but even though I am more proficient by a mile in Perl, I do enjoy programming/ddodling in Python, it is a much easier language to maintain and program. :-)

    Cheers,

    xkilian

  3. #3
    Junior Member
    Join Date
    Jul 2012
    Posts
    7

    Re: Set the host_name with a discovery_run

    Thanks for you answer,

    I think it should be great to have this possibility on one of the new shinken version.

    I don't know python, but, yes, you're right.
    I should try to program with python to get the best of shinken !!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •