Categorieën
Geen categorie

WordPress monitoring with Zabbix

In want to be able to see if WordPress needs to be updated on a specific webhost.

I have several WordPress sites and it would be nice to see which ones need to be updated.

First, I place a small file in the root directory of every WordPress instance that I call “zabbix-check.php”. Warning: choose your own filename! You don’t want hackers to scriptsearch for hackable WordPress instances!

Anyway, after this short disclaimer we continue with placing the following php code in said file:

<?PHP
# script to test remotely if wordpress update is needed
# tested on WordPress 3.6
# 1.0 J.Baten september 17, 2013
# License: GPLv2

ini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(-1);

require('wp-load.php');
require('wp-admin/includes/update.php');
print "Currently: ".$wp_version;

$updates = get_core_updates();
if ( !isset($updates[0]->response) || 'latest' == $updates[0]->response ) {
echo ', no update needed';
} else {
echo ', update needed';
}
?>

All I need to do now is add a scenario to Zabbix that checks for the text “no update needed”. It also shows the version number if you like.

I hope this script is usefull to you.

Categorieën
LibrePlan

Project margins feature in LibrePlan

Hello,

It’s been a while and Miciele has been very busy developing stuff for LibrePlan.

Our latest development has to do with project margins. As a projectmanager you will probably want to know if a task in a project takes longer than expected because it is your job to act upon those kind of things. Well, now you can!

In the “general data” tab of a project is is possible to add margins on time and budget. For instance, you can say that you work with a 10% margin. As soon as a task takes longer than expected the indicator turns orange. As soon as the task takes more than 10% longer the indicator turns red. This way, you do not have to check all of your projects every day, you can only check the ones that need some attention.

The screenhots that show this functionality are as follows: first the list of projects that show you which project needs attention:

margin-status

 

 

 

 

 

 

 

 

As you can see in the picture above, there are some projects that need attention.  There is a new column and the left icon is for time, and the right column is voor money. Now, how does an open project look?

margin-status-project-detail

Now when I open one of those projects like in the picture above, I can see the tasks that need attention, and I can even see the containers that have tasks that need attention.

This makes it very easy to find tasks that need attention.

There is more stuff that we are working on but for now this should be enough 🙂

Kind regards,

Categorieën
Geen categorie

Inlog ellende op werk.nl

De site werk.nl is voor velen makkelijk en voor een aantal mensen duidelijk niet. Zo gebruik ik de site als werkgever om mensen te zoeken die misschien bij een vacature van me zouden kunnen passen.

Helaas heb ik er continue last van dat ik vergeet me af te melden en ik elke keer wordt welkom geheten met de melding:  “An error occurred while processing the request. Try refreshing your browser. If the problem persists contact the site administrator”. Wat je ook doet (reload, F5, Ctrl-R, Ctrl-F5) niks helpt. De reden daarvoor is dat er nog oude cookies aanwezig zijn en de site eerlijk gezegd te brak gecodeerd is om hier netjes mee om te gaan.

Ten einde raad was ik vanmorgen begonnen om een extension te gaan bouwen voor Google Chrome zodat ik, en met mij vele anderen als ik afga op een eenvoudige google search, verlost werden van dit stuk ontbrekende functionaliteit.

Maar al zoekende bleek de oplossing erg makkelijk te realiseren door een gevorderde instelling binnen de Google Chrome browser.

De uitleg staat hier: https://support.google.com/chrome/bin/answer.py?hl=nl&answer=95647 . Volg de beschreven stappen onder ” Machtigingen voor cookies en sitegegevens aanpassen”, klik op: “Cookies verwijderen” en daarna op “Uitzonderingen instellen voor cookies van specifieke websites of domeinen”.

Stel daarmee in dat alle cookies van “[*.]werk.nl” bij het verlaten van Chrome verwijderd moeten worden.

Klaar!

Elke keer als Chrome wordt afgesloten worden de cookies verwijderd en kun je daarna gewoon weer inloggen.

Categorieën
LibrePlan

Latest news about our LibrePlan development work

Hi all,

It has been some time and Miciele has been very busy developing new stuff to add to LibrePlan. In this post I will try to tell you all about our latest modifications.

Configuration database

The first one is under the hood, so not visible to users. We saw that the LibrePlan configuration was stored in 1 record in the “configuration” table and was extended by everyone who wanted to add configuration information to LibrePlan. We developed a new table called AppProperties with the fields “id”, “major”, “minor”, “parameter” and “value”. The idea behind this is that everyone who wants to add configuration information can add his or her’s own records easily. The “major” field is meant for indication some large piece of functionality, like “jira” for a Jira connector. The “minor” field is used for some submodule within this piece of code and the “parameter” and “value” field I guess explain themselves.

We hope the LibrePlan community will accept this configuration model as a new way of storing configuration information.

Multiple connectors

After developing a Jira and a Timn (more on this later) connector and realizing that more connectors are on the way elsewhere in the world we discovered that it could be a good idea if we made connector configuration a different part of the configuration process. To make it more scale-able than it was. So we made a “connectors” tab in the configuration screen with a pull-down list for available connectors.

connectors-configuration

The parameters you can change come from the configuration database and all have a “test-connection” button to help in the process. A screenshot shows this:

test-connection-to-tim

Scheduler

We discovered that some connectors need to run automatically so we added a Java schedulerlibrary to LibrePlan. The configuration syntax is based on the well known crontab configuration syntax so you can enter it manually.

job-scheduling-screen

There is a section with some hints about the crontab syntax, the schedules next time to start the job and a manual button to trigger an extra run if you like to test data-exchange if you like.

There is also a little extra window to give you also some basic data-entry functionality.

cron-expression-input-screen

Timn Enterprise connector

This brings me to a new connector we developer specifically to interface with the Dutch Timn Enterprise product from Aenova. Timn is an application for the administration fo time spent on projects and tasks. It is a Dutch product and it is used a lot in large Dutch healthcare organisations and local municipalities (personally I am not very enthusiastic about the product but that is a whole other story). Anyway, we needed a way to sent all the billable hours stored/gathered in LibrePlan to Timn. Timn has some sort of soapish interface so we used that one to get out of Timn the roster of an employee (holidays, sick-leave, etc) and map that to the calender of a user, and we sent the timesheet info back to Timn.

This means that there is an extra connector that can be enabled and if that is done, an extra section is shown in all projectdata screens:

It shows you the last time a sync was made and with what product-code and you can edit and change to a new productcode if you like.

export-to-tim

In the XML format to the Timn interface we define a replacement key based on date, time, user and product so a replace action is done if the record
already exists.

Future plans

We will submit the patches shortly to the core LibrePlan team and look forward to their feedback so we can hopefully have it in 1.4 as soon as possible.

Miciele will than start with a new piece of functionality to LibrePlan because sometimes we want to plan a project more SCRUM-like with a backlog combined with resource allocation. As soon as there is something to show we will write about it again.

Bye for now,

Jeroen.

Categorieën
Geen categorie

Beschermd: Een nieuw EPD idee

Deze inhoud is beschermd met een wachtwoord. Voer hieronder je wachtwoord in om het te bekijken: