Nagios Exchange Nagios Exchange
  • Home
  • Directory
  • Library
  • Support
  • About
  • Submit Feedback

Advanced Search

Build precise queries to find exactly what you need

Search Logic

Select compatible versions

Press ESC to close

Sign In Sign Up

Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More

  • Home
  • Directory
  • Library
  • Support
  • About
  • Submit Feedback
Plugins4405Themes and Skins13Add-ons759Graphics and Logos36View All Categories
LinuxSecuritySNMPFile SystemCloud
New Listings Recently Updated Listings Most Favored Listings Most Popular Listings Most Rated Listings Most Reviewed Listings
Random Project
Other Tutorials And HOWTOs Using Nagios to Monitor Your Clusters’ Health
0.0 (0)
70.2K
RSS Feed
Newest Listings Updated Listings
Top Contributors
deskwork_itunes142 (4)Chad Columbus (3)Marcin Bednarski (3)Davide Lemma (3)Sam N (2)
See More
Newest Contributors
matthewducey (1)Linuxfabrik (1)signalgrid (1)Sanna Glue (2)fisherrs (1)
See More

Copyright © 2009-2026 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home > Amarildo Sertório dos Santos
AS

Amarildo Sertório dos Santos

@amarildosertorio

User Stats

Member Since: July 25, 2018

Favorites0

Views

Projects0

No Projects Found
Nagios-2JiraServerDesk-Issue-Creator

Adjusted for Jira 7

# grep NagiosIssue2JSD -A1 -B1 /usr/local/nagios/etc/objects/commands.cfg define command{ command_name NagiosIssue2JSD command_line $USER1$/NagiosIssue2JSD.pl -s "$SERVICESTATE$" -t "$SERVICESTATETYPE$" -A "$SERVICEATTEMPT$" -H "$HOSTNAME$" -S "$SERVICEDESC$" -a "$SERVICEOUTPUT$" -d "$SHORTDATETIME$" } # cat /usr/local/nagios/libexec/NagiosIssue2JSD.pl #!/bin/perl use strict; use warnings; use JIRA::REST; use Data::Dumper; use Getopt::Std; use Getopt::Long qw(:config no_ignore_case bundling); my $jira = JIRA::REST->new({ url => 'https://jira.localhost', username => 'nagios', password => '******' }); #my $baseurl = $jira->GET('/rest/servicedeskapi/info'); #print Dumper($baseurl); use vars qw( $state $type $attempt $hostname $servicedesc $serviceoutput $datetime ); GetOptions( 'help|h' => &print_usage, 'state|s=s' => $state, 'type|t=s' => $type, 'attempt|A=i' => $attempt, 'hostname|H=s' => $hostname, 'servicedesc|S=s' => $servicedesc, 'serviceoutput|a=s' => $serviceoutput, 'datetime|d=s' => $datetime, ); if(!$state or !$type or !$attempt or !$hostname or !$servicedesc) { print "tUSAGE:/usr/local/nagios/libexec/jira_eventhandler.pl -s -t -A -H -S n"; exit 3; #unknown } if($type ne "HARD" or $state eq "OK") { # not doing anything till its reaaaally a problem exit 0; #ok } my $issue = $jira->POST('/issue', undef, { fields => { project => { key => 'CAT' }, issuetype => { name => 'Incident' }, summary => "[NAGIOS] Hostname:$hostname Service:$servicedesc State:$state", description => "Hostname:$hostnamen Service:$servicedescn State:$staten Info:$serviceoutputn DateTime:$datetimen" }, }); exit 0;

Reviewed 8 years ago

No Favorites Found

Copyright © 2009-2026 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile