Giter VIP home page Giter VIP logo

php-nagios-json's People

Contributors

lizell 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-nagios-json's Issues

Issue with duplicate service names

Hi,

The script is very useful, but, when I have services in separate hosts with the same service name, I see only one the last in the resulting JSON. For instance, if I have a service called service1 in host1 and a service1 in host2 the script returns only the second service1.

Wouldn't it be better if the service keys on the JSON were composed of the host name and service description?

Thanks in advanced.

Adding hostcomment and servicecomment

I'm looking to see if it's possible to add hostcomment and servicecomment to the PHP JSON file?

I've been tinkering on this for a few hours now, and keep hitting my head against the wall.

I'm hopeful you have an easy solution

script returns a white page

Hi,

when trying to use this I only get a white page back. While debugging the script I noticed that getData3 returns this array:

Array
(
    [modified_host_attributes] => 1
    [modified_service_attributes] => 1
    [nagios_pid] => 15789
    [daemon_mode] => 1
    [program_start] => 1402561589
    [last_command_check] => 1402565505
    [last_log_rotation] => 0
    [enable_notifications] => 1
    [active_service_checks_enabled] => 1
    [passive_service_checks_enabled] => 1
    [active_host_checks_enabled] => 1
    [passive_host_checks_enabled] => 1
    [enable_event_handlers] => 1
    [obsess_over_services] => 0
    [obsess_over_hosts] => 0
    [check_service_freshness] => 1
    [check_host_freshness] => 0
    [enable_flap_detection] => 1
    [enable_failure_prediction] => 1
    [process_performance_data] => 0
    [global_host_event_handler] => 
    [global_service_event_handler] => 
    [next_comment_id] => 487346
    [next_downtime_id] => 51129
    [next_event_id] => 4922987
    [next_problem_id] => 2364885
    [next_notification_id] => 1360359
    [total_external_command_buffer_slots] => 4096
    [used_external_command_buffer_slots] => 0
    [high_external_command_buffer_slots] => 879
    [active_scheduled_host_check_stats] => 34,375,1133
    [active_ondemand_host_check_stats] => 5,16,51
    [passive_host_check_stats] => 0,0,0
    [active_scheduled_service_check_stats] => 748,5150,15668
    [active_ondemand_service_check_stats] => 0,0,0
    [passive_service_check_stats] => 18,810,2248
    [cached_host_check_stats] => 3,11,38
    [cached_service_check_stats] => 0,0,0
    [external_command_stats] => 19,816,2264
    [parallel_host_check_stats] => 36,381,1146
    [serial_host_check_stats] => 0,0,0
)

I suspect that it should contain all services and hosts.

More info: I use the latest version of the script and nagios 3

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.