Giter Site home page Giter Site logo

nagiostv-ndoutils's People

Contributors

chriscareycode avatar gopherkhan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nagiostv-ndoutils's Issues

PHP 7 support

This app doesn't work on PHP 7. It needs to use the mysqli extension instead of just mysql, which is gone from PHP 7.

The latest Ubuntu release (16.04) doesn't have PHP 5 in the repositories at all. I had to compile mysql.so manually.

Everything else seems to work fine on PHP 7, all that needs to happen is a switch to mysqli.

Multiple instances

I think it should be possible to run multiple instances on the same codebase. That is, not needing to use frames pointing to different installs.

I guess it takes some work primarily on the javascripts.

Not working with icingas idoutils

Hi and thanks for a nice web-interface.

I am running icinga instead of nagios, and idoutils is almost exactly the same as ndoutils(if not completely the same).

I got NagiosTV running, but i had to change all occurences of nagios_ in api.php to icinga_ to get it to work.

This should be set in the config file.

Thanks for a great app.

time.js missing

I thought I would give this a spin. I get the following error in my apache log.

File does not exist: /var/www/html/NagiosTV/lib/time.js

I grabbed a copy from http://datejs.googlecode.com/svn-history/r191/trunk/src/time.js, which got rid of that error, but I still get the following

PHP Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead' in /var/www/html/NagiosTV/api.php:74\nStack trace:\n#0 /var/www/html/NagiosTV/api.php(74): DateTime->__construct()\n#1 {main}\n thrown in /var/www/html/NagiosTV/api.php on line 74, referer: http://dc01centdb01.hosted.exlibrisgroup.com/NagiosTV/index.htm

So, in api.php, I added date_default_timezone_set('America/Chicago'); around line 9, and now it works. :)

BTW, this is very cool. Thank you for writing this.

Regards,
John

Wrong Local Timezone

Congratulations to perfect job on this project, work with OSPView perfect !

Only 2 problems with timezone on my installation:

  1. Local Time Zone is incorrect: America/Buenos_Aires instead of America/Sao_Paulo (and with diference of -1h to real São Paulo hour)

  2. Notifications with wrong hour (diference of +3 hours of ). On OSPView all notifications is with correct hour.

Where i can correct this ?

Feature Request: Dynamic page background colour & triggered sounds

Hi Chris,

I'm still unfamiliar with GitHub, so apologies in advance if this is in the wrong section...

So this isn't an issue with NagiosTV, as it is awesome already, and I have it up and running - it's a feature request for a couple additions which would probably be fairly easy to tack on. Ultimately, I'd like to use NagiosTV on a large, portrait mounted TV, for a visual and audible indication of network and host statuses. The small additions I can see as beneficial for anyone using NagiosTV are:

  1. dynamic background colour

The black background is great, but it is not strikingly obvious when there are unacknowledged/current hosts/services changing to a hard warning/critical status, especially if there are a number of acknowledged alerts.

pseudo-code state to colour:

if hard_criticals > 0 then bg = red
else if hard_warnings > 0 then bg = yellow
else if soft_criticals > 0 then bg = dark-red
else if soft_warnings > 0 then bg = dark-yellow
else bg = black
document.body.style.backgroundColor = bg

  1. triggered, possibly repeating, audio alerts for hard statuses

We can't always be watching NagiosTV all the time, maybe some people don't have line-of-sight to the monitor/TV when at their desk, so some form of audible alerts for hard warnings and hard criticals would be really nice. I think repeating the audio alert every X minutes would be good in case the status change occured when people were not around to hear the first alert sound.

pseudo-code again:

if hard_criticals > 0 and critical_sound_interval_is_up then soundCriticalAlert
else if hard_warnings > 0 and warning_sound_interval_is_up then soundWarningAlert

not sure what to suggest as a sound format that all platforms/browsers would play embedded without issue or need for plugins/addons... maybe wav or mp3?

Hope you can find some time to add these features for a new version in the future :)

Keep up the good work!

Steve

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.