Install the Thready app to make sure that your threads have a meaningful name.
Then use the following scripts :
https://bitbucket.org/atlassianlabs/atlassian-support/src/master/
Install the Thready app to make sure that your threads have a meaningful name.
Then use the following scripts :
https://bitbucket.org/atlassianlabs/atlassian-support/src/master/
https://confluence.atlassian.com/doc/configuring-a-datasource-connection-937166084.html
pg_ctl -D /usr/local/var/postgres start && brew services start postgresqlpsql postgresCREATE ROLE otrs WITH LOGIN PASSWORD 'otrs'; ALTER ROLE otrs CREATEDB;\q#create user and dbpsql postgres -U otrsCREATE DATABASE otrs;GRANT ALL PRIVILEGES ON DATABASE otrs TO otrs;#show databases\list #import dumppsql -h localhost -d otrs -U otrs -f /Users/tokamak/Desktop/IN/MISSIONS/TOTAL/OTRS/Files/psql_otrs_dump.sql#show all db sizesSELECT pg_database.datname, pg_size_pretty(pg_database_size(pg_database.datname)) AS size FROM pg_database;#Create jiradb and userCREATE USER jiradbuser WITH PASSWORD 'jiraSQL';CREATE DATABASE jiradb WITH ENCODING 'UNICODE' LC_COLLATE 'C' LC_CTYPE 'C' TEMPLATE template0;GRANT ALL PRIVILEGES ON DATABASE jiradb TO jiradbuser; |
opsgenie is a tool allowing filtering and routing of monitoring-triggered alerts (nagios, AWS SNS, datadog, ...) to specific channels (SMS, phone-call, Slack, Jira, ...).
Main features on top of this :
Opsgenie Learning Center : https://docs.opsgenie.com/
[video] Opsgenie : "What do we do?" https://www.youtube.com/watch?v=yphtZ9z2TtA&feature=youtu.be
[video] Opsgenie: "First Look" https://www.youtube.com/watch?v=pyM2dROKn6g
Opsgenie Pricing : https://www.atlassian.com/software/opsgenie/pricing
Implement nagios to opsgenie Heartbeats :
Add new lines in description texts
https://apps4lifehost.com/Instagram/CaptionMaker.html
Schedule (free plans)
from a book called The Elements of Eloquence: How to Turn the Perfect English Phrase.
Adjectives, writes the author, professional stickler Mark Forsyth, “absolutely have to be in this order:
opinion-size-age-shape-colour-origin-material-purpose Noun.
So you can have a lovely little old rectangular green French silver whittling knife. But if you mess with that order in the slightest you’ll sound like a maniac.”
https://getpocket.com/explore/item/how-non-english-speakers-are-taught-this-crazy-english-grammar-rule-you-know-but-have-never-heard-of
Starting in ansible 2.10, ansible now recommends using the FQCN for each module (Fully Qualified Collection Name)
This might become mandatory in a future release.
To identify the redirection from the default / previous/ still working to the FQCN :
# ansible-playbook deploy.yaml -vv
redirecting (type:module) ansible.builtin.timezone to community.general.timezone
namely, this is an example for the helm (example from Montreal Ansible meetup on 30-sept-2020)
If you're using the AWS SNS opsgenie integration and want to publish to JIRA, you can for example use the following code to present the data in a slightly better way :
I this use-case I'm using the SNS channel to publish outputs from a system manager (AWS SSM) command that also publishes it's outputs to an S3, so we're using this extraction to provide the direct links to the s3 logs and the SSM run command history.
And in the end, we copy the message we received from the SNS channel "raw"..
In Opsgenie, in the specific Amazon SNS integration (Incoming Amazon SNS), in the Alert Fields, you can for example modify the "Description" so that it transforms the Message received like this :
h3. Details
|| AWS region | {{ TopicArn.extract(/arn:aws:sns:([^:]*):.*/) }} |
|| Status | {{ Message.extract(/.*"status":"([^"]*)".*/) }} |
|| Instance ID | {{ Message.extract(/.*"instanceId":"([^"]*)".*/) }} [(aws link)|https://{{ TopicArn.extract(/arn:aws:sns:([^:]*):.*/) }}.console.aws.amazon.com/ec2/v2/home?region={{ TopicArn.extract(/arn:aws:sns:([^:]*):.*/) }}#InstanceDetails:instanceId={{ Message.extract(/.*"instanceId":"([^"]*)".*/) }}]|
|| Command ID | {{ Message.extract(/.*"commandId":"([^"]*)".*/) }} [(aws cmd)|https://console.aws.amazon.com/systems-manager/run-command/{{ Message.extract(/.*"commandId":"([^"]*)".*/) }}] [(s3 logs)|https://console.aws.amazon.com/s3/buckets/ssm-output/ssm-log/{{ Message.extract(/.*"commandId":"([^"]*)".*/) }}/{{ Message.extract(/.*"instanceId":"([^"]*)".*/) }}/?region={{ TopicArn.extract(/arn:aws:sns:([^:]*):.*/) }}&showversions=false ]
|
|| documentName | {{ Message.extract(/.*"documentName":"([^"]*)".*/) }} |
|| requestedDateTime | {{ Message.extract(/.*"requestedDateTime":"([^"]*)".*/) }} |
|| eventTime | {{ Message.extract(/.*"eventTime":"([^"]*)".*/) }} |
h3. Opsgenie info
|| EventType | {{eventType}} |
|| Timestamp (opsgenie) | {{Timestamp}}|
|| Tags | {{tags}} |
|| TopicArn | {{TopicArn}} |
|| Actions | {{actions}} |
h3. Original Message (raw):
{code}
{{Message}}
{code}
Nb: this might only be available in certain OpsGenie subscriptions unfortunately :-(
Context :
I needed to have all my nagios files on my computer to be able to run some python scripts trying to figure out what refactoring needed to be done, and identifying gaps in the configuration I inherited.
I took that opportunity to version all our nagios configuration files, with a git repository configured at the /usr/local/nagios/etc level.
That proved itself useful to gain some confidence that we're not going to loose anything.
Initial idea was taken from :
Script to automatically commit changes done in Nagios and push them to the central repo.
NB : still a few things to investigate, but ...
auto-git-commit-push.sh
http://makeinternetnoise.com/ : opens random webpages every 5 sec. This creates some artificial clutter in your web history => recommendation algorithms are lost.
(source : https://getpocket.com/explore/item/how-to-disappear )
empathy vs sympathy : https://www.youtube.com/watch?v=1Evwgu369Jw
https://www.amazon.com/Leadership-Step-Become-Person-Others/dp/0814437931
https://www.amazon.com/Your-Brain-Work-Strategies-Distraction/dp/0061771295
https://www.amazon.com/Business-Communication-Strategies-Skills-management/dp/003033067X
https://www.amazon.com/Dark-Side-Interpersonal-Communication/dp/080585780X
https://www.amazon.com/Leadership-Step-Become-Person-Others/dp/0814437931