{"id":18497665,"url":"https://github.com/centreon/nagiostocentreon","last_synced_at":"2025-04-09T00:30:39.619Z","repository":{"id":55623615,"uuid":"46924086","full_name":"centreon/nagiosToCentreon","owner":"centreon","description":"Import your nagios config files into Centreon DB... And it rocks !","archived":true,"fork":false,"pushed_at":"2020-12-17T16:09:11.000Z","size":51,"stargazers_count":10,"open_issues_count":8,"forks_count":13,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-03-02T22:43:57.157Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/centreon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-26T11:55:47.000Z","updated_at":"2024-12-26T11:26:51.000Z","dependencies_parsed_at":"2022-08-15T04:40:56.610Z","dependency_job_id":null,"html_url":"https://github.com/centreon/nagiosToCentreon","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centreon%2FnagiosToCentreon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centreon%2FnagiosToCentreon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centreon%2FnagiosToCentreon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centreon%2FnagiosToCentreon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/centreon","download_url":"https://codeload.github.com/centreon/nagiosToCentreon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247949665,"owners_count":21023364,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T13:35:18.922Z","updated_at":"2025-04-09T00:30:39.333Z","avatar_url":"https://github.com/centreon.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nagios Reader to Centreon CLAPI\n\n\"Nagios Reader to Centreon CLAPI\" is a free and open source project to analyse\nNagios CFG configuration files and to transform monitoring configuration to\nCentreon CLAPI command in order to import configuration into Centreon web\ninterface.\n\n## Prerequisites\n\nFirst of all you need a Centreon server installed and ready to use. Please see the\ndocument on htt://document.centreon.com to install a Centreon server based on ISO or RPM.\n\n## Installation\n\nThis script uses the Perl-Nagios-Object library to read CFG files. To install\nit please follow this steps on your Nagios(R) server:\n\n    $ yum install perl-Module-Build perl-Test-Exception perl-Test-NoWarnings perl-List-Compare\n\t$ cd /tmp\n\t$ wget http://search.cpan.org/CPAN/authors/id/D/DU/DUNCS/Nagios-Object-0.21.20.tar.gz\n\t$ tar xzf Nagios-Object-0.21.20.tar.gz\n\t$ cd Nagios-Object-0.21.20\n\t$ perl Build.PL\n    $ ./Build\n    $ ./Build test\n    $ ./Build install\n\nNote : perl-List-Compare is from EPEL repo for CentOS/Red Hat\n\n## Usage\n\nTo display help use the command:\n\n    $ perl nagios_reader_to_centreon_clapi.pl --help\n    ######################################################\n    #    Copyright (c) 2005-2017 Centreon                #\n    #    Bugs to http://github.com/nagiosToCentreon      #\n    ######################################################\n    \n    Version: 3.0.0\n    Usage: nagios_reader_to_centreon_clapi.pl\n        -C (--config)      Path to nagios configuration files (must be a directory) (Default: /usr/local/nagios/etc/)\n        -V (--version)     Nagios version of the configuration files (Default: 3)\n        -P (--poller)      Name of the targeted poller (Default: Central)\n        -p (--prefix)      Add a prefix before commands, contacts, templates, groups, etc.\n        -s (--switch)      Switch alias and name of contacts for the configurations that need it\n        -f (--filter)      Filter files to process with regexp (Default: '^(?!(\\.|connector\\.cfg))(.*\\.cfg)$')\n        --default-htpl     Define default host template for template-less hosts or host templates\\n\";\n        --default-stpl     Define default service template for template-less services or service templates\\n\";\n        -h (--help)        Usage help\n\nTo run the script please use the following command:\n\n    $ perl nagios_reader_to_centreon_clapi.pl --config /usr/local/nagios/etc/ \u003e /tmp/centreon_clapi_import_commands.txt\n\nExport the file /tmp/centreon_clapi_import_commands.txt on your Centreon server.\n\nRun the following command to import configuration into Centreon on your Centreon server:\n\n    $ /usr/share/centreon/bin/centreon -u admin -p @PASSWORD -i /tmp/centreon_clapi_import_commands.txt\n\n## Notes\n\n- Services by hostgroups will be transformed : a template of \nservice will be created using old service definition, and a unitary service will be created for all hosts linked to the hostgroup using the newly created service template.\n- Hostgroups exclusions (i.e. hostgroup_name !Windows) won't be taken into account.\n- Using filters may provoque errors at CLAPI import because of the contacts definition on several objects being the full name instead of the login/alias as CLAPI intend it to be.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcentreon%2Fnagiostocentreon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcentreon%2Fnagiostocentreon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcentreon%2Fnagiostocentreon/lists"}