Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Oncall provider:logstash integration with Icinga "help wanted" #44

Open
gangsta opened this issue Mar 6, 2015 · 3 comments
Open

Oncall provider:logstash integration with Icinga "help wanted" #44

gangsta opened this issue Mar 6, 2015 · 3 comments

Comments

@gangsta
Copy link

gangsta commented Mar 6, 2015

Hi
Did someone of you integrate opsweekly with icinga i did try with logstash oncall but i cant get icinga stuff in opsweekly . below you can find config file ,any ideas ?

array( "root_url" => "", "display_name" => "ops", "email_report_to" => "email", "database" => "opsweekly", "weekly_hints" => array( "github"), "oncall" => array( "provider" => "logstash", "timezone" => "Europe/Brussels", "start" => "monday 08:00", "end" => "monday 08:00", ), ), ); $weekly_providers = array( "github" => array( "display_name" => "Github", "lib" => "providers/weekly/github.php", "class" => "GithubHints", "options" => array( "github_url" => "https://github.com/mycompany", ), ), ); $oncall_providers = array( "logstash" => array( "display_name" => "ops", "lib" => "providers/oncall/logstash.php", "options" => array( "base_url" => "logstash.mycompany:9200", ), ), ); $search_results_per_page = 25; $error_log_file = "/var/log/httpd/opsweekly_debug.log"; $dev_fqdn = "/(\w+).vms.mycompany.com/"; $prod_fqdn = "opsweekly.mycompany"; also please check if there is something missed with github, cause i cant get some things from github too. Greetings Karen
@arioch
Copy link

arioch commented Mar 27, 2015

+1

@benohara
Copy link
Contributor

Does icinga log with different variable to nagios?

The plugin does a query to logstash

"query": "nagios_notifyname:"'.$pagername.'" AND NOT (nagios_state:"ACKNOWLEDGEMENT*" OR nagios_state:"UP" OR nagios_state:"OK") AND NOT nagios_service:"SMS Check""

perhaps icinga_ ?

I wrote the plugin, its currently hardcoded... i'll make the query settable via config and submit a PR if it helps.

@yosh-se
Copy link

yosh-se commented Oct 5, 2015

I setup logstash-forwarder on the icinga machine to shoot the icinga logs into logstash.
I think the logstash nagios rules worked out of the box with that, but I'd need to revisit my setup to make sure.

I checked the nagios provider query, and I hadn't changed it.

How did you setup the logstash filter for the logs?
pattern => "%{NAGIOSLOGLINE}" ?

As for the github stuff, does your icinga contact names match your users github names?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants