Posts Tagged ‘PHP’

Oreon (Centreon) issue with php pear

Sunday, August 10th, 2008

It appears in some cases, for some pieces of software (anyone said “open source and poorly documented?”) that every installation has its own quirks and issues. It seems that following the same pattern is not always enough. It can be caused by the day you have selected to download and use the external component which the software you are to install requires, or it can be caused by some mysterious configuration which you neglected to check, and should have had no relevance to the software you are to install whatsoever – but fate has it you are facing an issue you have never seen before, or an issue you did not expect to find.

Installing Oreon today had the same result – a minor thing didn’t work. Cause? Unknown…

When you use the software – a nice web system for configuring and viewing Nagios alerts (as Nagios itself is rather complicated to manage), you get on the top of some of the pages a wierd text – “PHP_EOLPHP_EOL” and so on.

PHP Pear should have had a constant named PHP_EOL which defines the way to terminate a line. In this case, it was undefined, and caused javascripts to fail to work.

The (ugly hack) solution I used was to find the oreon.conf.php file and add to it, at the bottom, the following lines:

if (!defined(‘PHP_EOL’)) {
define(‘PHP_EOL’, “n”);
}

Worked like a charm. FYI.

NabRSS 0.4 has been released

Saturday, October 20th, 2007

This upgrade allows disabling and re-enabling feeds. No need to delete unwanted feeds if you only want it to shut up temporarily. nabrss-0.4.tar.gz

I have had time this weekend. NabRSS version 0.3 has been released

Sunday, July 15th, 2007

Update to the version posted here, the new shiny version includes several interesting additions. From the ChangeLog:

NabRSS Version 0.3 Jul 15th 07:
– DB – Extended feed_list table to include selected voice
– DB – Inserted all voices into DB
– add_url.php – Enhanced to allow for (optional) selection of voice to an RSS feed
– add_url.php – Now checks input for duplicates and prevents them
– list.php – Enhanced to support voice definitions
– get.php – Changed stracture to somewhat more natural (to me, that is)
– get.php – Added support for voice selection. If not selected, randomize the voice
– get.php – Updated the DB scheme comment
– header.php – fixed problem with comments. They were incorrect, and now they are ok.

Also easy (or at least, easier) upgrade from past versions.

Available here: nabrss-0.3.tar.gz

Enjoy!

NabRSS updated to version 0.21

Saturday, July 14th, 2007

Again, on a short notice, the package introduced here and updated here has been updated.

From the ChangeLog:

NabRSS Version 0.21 Jul 14th 07:
– Started moving functions into functions.php
– Added support for RSS feeds with login
– Hiding passwords for login-based RSS feeds
– Minor updates to README.txt

Enjoy

NabRSS updated to version 0.2

Saturday, July 14th, 2007

NabRSS has been updated from the version posted here.

NabRSS is a set of PHP scripts meant to assist anyone with a PHP/MySQL/Apache server available to gather feeds from RSS sources and send them via Nabaztag API to his/her Nabaztag.

Available here: nabrss-0.2.tar.gz

Quoting from the changelog:

NabRSS Version 0.2 Jul 14th 07:
– get.php: Fixed an incorrect condition in function debug_set
– get.php: Added function set_ear_pos to randomize ear position on every post
– get.php: Added function set_voice to randomize each RSS post voice
– list.php: Added a “Reset” button to allow reseting the last post saved in the date field inside the DB

Todo (short range):
– DB: Extend the scheme and move voices into DB as a seperated table
– add_url.php: Select a voice for each RSS feed. Possiblity to select “random”
– list.php: Show selected voice for each RSS feed
– get.php: Insert a function to deal with voices per post