Skip to content

Email based on value of report

I’m looking to grep a numeric value from a tripwire report, and if the value is greater than 0, send an email. The script so far looks like this: Not sure how to grab the value and set it as a variable or if there’s a way to include it in the if statement itself. Answer First count the entries:

Using register with a loop in Ansible

i want to code a playbook which IF a user exists changes the pw of it. The playbook should be able to take n User’s and change the pw of those Users. At the moment im having the issue that the when is empty due to the loop, i tried using with_items: {{ user_exists.results }} but this is somehow not

HiveMQ systemctl service not listening to port

I am trying to set up HiveMQ on my Amazon EC2 instance (ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-20170414) using this guide: http://www.hivemq.com/docs/hivemq/latest/#hivemqdocs_installation_for_specific_operating_systems After installing I can succesfully run HiveMQ using: Change directory to H…

C read() : Invalid arguments

I am trying to read from a nbd device with function read() Here is the code: argv[2] is a nbd device: /dev/nbd0 MSGDEBUG is defined to print __FILE__, __LINE__ and __FUNCTION__ and I got the error msg: Error!!! dedup.c: 554: main read: Invalid argument err: 0 Aborted Am I doing something wrong? Answer read re…

How to install JavaPackage on ubuntu

I came across a debian application by the name JavaPackage which can create a debian installation file (.deb) form a java binary (.tar.gz) which you can then install using dpkg -i application_name.deb. With Ubuntu being a debian-based linux distribution, it is possible that it can be installed on ubuntu as we…