nuxsmin / sysMonDash

Systems Monitor Dashboard, monitoring dashboard for Nagios, Icinga Check_MK and Zabbix
GNU General Public License v3.0
34 stars 13 forks source link

Check for events filter level #18

Closed nuxsmin closed 7 years ago

nuxsmin commented 8 years ago

Add a check to show or not those new events that have been filtered out by backend level

nuxsmin commented 8 years ago

Related #12

ghost commented 8 years ago

sysMonDash is great dashboard.

I have configured sysMonDash for OMD(check_mk) but it's not displaying any critical events, even after I given socket details.

I have checked mk_livestatus socket using
echo 'GET hosts' | unixcat /omd/sites/blutomonit/tmp/run/live it's displaying critical events but in the sysMonDash it's not displaying any critical events.

can you please help me.

can you please add mk_livestatus tcp based if possible.

nuxsmin commented 8 years ago

I'm very glad that you like it ;)

Did you set the permissions for the webserver user on the socket?

Let me do some find outs about TCP implementation.

ghost commented 8 years ago

Thanks for quick reply.

I have set the webserver user permissions on the socket as below.

srw-rw---- 1 apache apache 0 Jul 8 11:56 /omd/sites/blutomonit/tmp/run/live

still no luck.

:-) There are no notices to show webpage showing this.

nuxsmin commented 8 years ago

Some questions...can you point to this URL http://yourserver/sysmondash/inc/functions.php?raw=1 ? Does it show anything?

Which is the livestatus version you're running on?

ghost commented 8 years ago

yes it showing out put as below.

**Backend: BlutoMonit Hosts Array ( ) Services Array ( [0] => SMD\Backend\Event\Service Object ( [type] => 1 [state] => 1 [stateType] => 1 [acknowledged] => [hostDisplayName] => blutomonit-master [displayName] => Check_MK Discovery [checkCommand] => check-mk-inventory [pluginOutput] => WARN - 1 unmonitored services (ntp.time:1)(!), no vanished services found [lastCheck] => 1467995158 [lastTimeUp] => 1467987958 [lastTimeOk] => 0 [lastTimeUnreachable] => 0 [lastHardStateChange] => 1467995158 [lastHardState] => 1 [lastTimeDown] => 0 [activeChecksEnabled] => 1 [scheduledDowntimeDepth] => 0 [currentAttempt] => 1 [maxCheckAttempts] => 1 [flapping] => [notificationsEnabled] => [hostAlias] => blutomonit-master [alias] => [hostScheduledDowntimeDepth] => 0 [hostLastTimeUnreachable] => 0 [hostLastTimeUp] => 1468001942 [hostState] => 0 [backendAlias] => BlutoMonit [backendUrl] => [backendLevel] => 0 [filterStatus] => )

) Downtimes Array ( )**

ghost commented 8 years ago

also unixsocket out put as below.

**

[root@omd ~]# echo 'GET hosts' | unixcat /omd/sites/blutomonit/tmp/run/live | egrep 'CRITICAL|WARN' 1;0;0;/blutomonit/pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=HOST' class='tips' rel='/blutomonit/pnp4nagios/index.php/popup?host=$HOSTNAME$&srv=HOST;/blutomonit/pnp4nagios/index.php/graph?host=blutomonit-master&srv=HOST' class='tips' rel='/blutomonit/pnp4nagios/index.php/popup?host=blutomonit-master&srv=HOST;1;127.0.0.1;blutomonit-master;check-mk-host-ping!-w 200.00,80.00% -c 500.00,100.00%;check-mk-host-ping!-w 200.00,80.00% -c 500.00,100.00%;0;0;1.0000000000e+00;0;24X7;0;1;;;;;check-mk-notify,all;check-mk-notify;1;0;FILENAME,ADDRESS_FAMILY,ADDRESS_4,ADDRESS_6,TAGS;/wato/hosts.mk,4,127.0.0.1,,/wato/ cmk-agent ip-v4 ip-v4-only lan prod site:blutomonit tcp wato;FILENAME|/wato/hosts.mk,ADDRESS_FAMILY|4,ADDRESS_4|127.0.0.1,ADDRESS_6|,TAGS|/wato/ cmk-agent ip-v4 ip-v4-only lan prod site:blutomonit tcp wato;blutomonit-master;;;;0;8.0500000000e-03;/wato/hosts.mk;0.0000000000e+00;1;check_mk;0;1;0.0000000000e+00;;;;1;1;1;0;0;0;1468002554;0;1467907806;0;0;1467907806;0;0;1468002555;2.4200000000e-01;;0.0000000000e+00;1;;;;0;0;;blutomonit-master;1468002615;0;0;;;;;0.0000000000e+00;24X7;1;26;1;1;20;4;1;20;0;4;1;1;;0;0.0000000000e+00;rta=0.011ms;200.000;500.000;0; pl=0%;80;100;; rtmax=0.041ms;;;; rtmin=0.003ms;;;;;OK - 127.0.0.1: rta 0.011ms, lost 0%;1;1;1.0000000000e+00;0;;Uptime,TCP Connections,Smart_sda,Postfix Queue,OMD blutomonit status,OMD blutomonit performance,OMD blutomonit apache,Number of threads,Mount options of /boot,Mount options of /,Memory,LOAD,Kernel Process Creations,Kernel Major Page Faults,Kernel Context Switches,Interface 2,Filesystem /boot,Filesystem /,FS_var,FS_hirn,Disk IO SUMMARY,Check_MK Discovery,Check_MK,CPU utilization,CPU load,Aptitude;Uptime|0|1|OK - up since Fri Jul 8 23:53:54 2016 (0d 00:05:09)|0|1|1|0|0|1,TCP Connections|0|1|OK - ESTABLISHED: 5, TIME_WAIT: 12, LISTEN: 7|0|1|1|0|0|1,Smart_sda|2|1|CRIT - CRITICAL - SMART_ENABLE: Inappropriate ioctl for device|2|1|1|0|0|1,Postfix Queue|0|1|OK - deferred queue length is 0, active queue length is 0|0|1|1|0|0|1,OMD blutomonit status|0|1|OK - running|0|1|1|0|0|1,OMD blutomonit performance|0|1|OK - Host Checks: 0.0/s, Service Checks: 0.3/s, Process Creations: 0.0/s, Livestatus Connects: 0.3/s, Livestatus Requests: 0.6/s, Log Messages: 0.0/s, 1 Hosts, 26 Services, Core version: 3.5.0, Livestatus version: 1.2.8p5|0|1|1|0|0|1,OMD blutomonit apache|0|1|OK - 0.15 Requests/s, 0.00 Seconds serving/s, 407.95 B Sent/s|0|1|1|0|0|1,Number of threads|0|1|OK - 170 threads|0|1|1|0|0|1,Mount options of /boot|0|1|OK - mount options exactly as expected|0|1|1|0|0|1,Mount options of /|0|1|OK - mount options exactly as expected|0|1|1|0|0|1,Memory|0|1|OK - RAM used: 467.54 MB of 3.70 GB, Swap used: 0.00 B of 3.00 GB, Total virtual memory used: 467.54 MB of 6.70 GB (6.8%),|0|1|1|0|0|1,LOAD|3|1|UNKNOWN - Invalid plugin status 127. Output is:|3|1|1|0|0|1,Kernel Process Creations|0|1|OK - 4/s|0|1|1|0|0|1,Kernel Major Page Faults|0|1|OK - 0/s|0|1|1|0|0|1,Kernel Context Switches|0|1|OK - 163/s|0|1|1|0|0|1,Interface 2|0|1|OK - eth0 MAC: 52:54:00:23:14:19, speed unknown, in: 779.51 B/s, out: 1022.50 B/s|0|1|1|0|0|1,Filesystem /boot|0|1|OK - 33.5% used (166.47 of 496.67 MB), trend: 0.00 B / 24 hours|0|1|1|0|0|1,Filesystem /|0|1|OK - 11.1% used (2.94 of 26.46 GB), trend: -881.47 kB / 24 hours|0|1|1|0|0|1,FS_var|3|1|UNKNOWN - Invalid plugin status 127. Output is:|3|1|1|0|0|1,FS_hirn|3|1|UNKNOWN - Invalid plugin status 127. Output is:|3|1|1|0|0|1,Disk IO SUMMARY|0|1|OK - Utilization: 0.1%, Read: 0.00 B/s, Write: 7.76 kB/s, Average Wait: 2.16 ms, Average Read Wait: 0.00 ms, Average Write Wait: 2.16 ms, Latency: 0.61 ms|0|1|1|0|0|1,Check_MK Discovery|1|1|WARN - 1 unmonitored services (ntp.time:1)(!), no vanished services found|1|1|1|0|0|1,Check_MK|0|1|OK - Agent version 1.2.8p5, execution time 0.2 sec|0|1|1|0|0|1,CPU utilization|0|1|OK - user: 0.6%, system: 0.6%, wait: 0.0%, steal: 0.0%, guest: 0.0%, total: 1.2%|0|1|1|0|0|1,CPU load|0|1|OK - 15 min load 0.05 at 2 Cores (0.03 per Core)|0|1|1|0|0|1,Aptitude|3|1|UNKNOWN - Invalid plugin status 127. Output is:|3|1|1|0|0|1;Uptime|0|1|OK - up since Fri Jul 8 23:53:54 2016 (0d 00:05:09),TCP Connections|0|1|OK - ESTABLISHED: 5, TIME_WAIT: 12, LISTEN: 7,Smart_sda|2|1|CRIT - CRITICAL - SMART_ENABLE: Inappropriate ioctl for device,Postfix Queue|0|1|OK - deferred queue length is 0, active queue length is 0,OMD blutomonit status|0|1|OK - running,OMD blutomonit performance|0|1|OK - Host Checks: 0.0/s, Service Checks: 0.3/s, Process Creations: 0.0/s, Livestatus Connects: 0.3/s, Livestatus Requests: 0.6/s, Log Messages: 0.0/s, 1 Hosts, 26 Services, Core version: 3.5.0, Livestatus version: 1.2.8p5,OMD blutomonit apache|0|1|OK - 0.15 Requests/s, 0.00 Seconds serving/s, 407.95 B Sent/s,Number of threads|0|1|OK - 170 threads,Mount options of /boot|0|1|OK - mount options exactly as expected,Mount options of /|0|1|OK - mount options exactly as expected,Memory|0|1|OK - RAM used: 467.54 MB of 3.70 GB, Swap used: 0.00 B of 3.00 GB, Total virtual memory used: 467.54 MB of 6.70 GB (6.8%),,LOAD|3|1|UNKNOWN - Invalid plugin status 127. Output is:,Kernel Process Creations|0|1|OK - 4/s,Kernel Major Page Faults|0|1|OK - 0/s,Kernel Context Switches|0|1|OK - 163/s,Interface 2|0|1|OK - eth0 MAC: 52:54:00:23:14:19, speed unknown, in: 779.51 B/s, out: 1022.50 B/s,Filesystem /boot|0|1|OK - 33.5% used (166.47 of 496.67 MB), trend: 0.00 B / 24 hours,Filesystem /|0|1|OK - 11.1% used (2.94 of 26.46 GB), trend: -881.47 kB / 24 hours,FS_var|3|1|UNKNOWN - Invalid plugin status 127. Output is:,FS_hirn|3|1|UNKNOWN - Invalid plugin status 127. Output is:,Disk IO SUMMARY|0|1|OK - Utilization: 0.1%, Read: 0.00 B/s, Write: 7.76 kB/s, Average Wait: 2.16 ms, Average Read Wait: 0.00 ms, Average Write Wait: 2.16 ms, Latency: 0.61 ms,Check_MK Discovery|1|1|WARN - 1 unmonitored services (ntp.time:1)(!), no vanished services found,Check_MK|0|1|OK - Agent version 1.2.8p5, execution time 0.2 sec,CPU utilization|0|1|OK - user: 0.6%, system: 0.6%, wait: 0.0%, steal: 0.0%, guest: 0.0%, total: 1.2%,CPU load|0|1|OK - 15 min load 0.05 at 2 Cores (0.03 per Core),Aptitude|3|1|UNKNOWN - Invalid plugin status 127. Output is:;Uptime|0|1,TCP Connections|0|1,Smart_sda|2|1,Postfix Queue|0|1,OMD blutomonit status|0|1,OMD blutomonit performance|0|1,OMD blutomonit apache|0|1,Number of threads|0|1,Mount options of /boot|0|1,Mount options of /|0|1,Memory|0|1,LOAD|3|1,Kernel Process Creations|0|1,Kernel Major Page Faults|0|1,Kernel Context Switches|0|1,Interface 2|0|1,Filesystem /boot|0|1,Filesystem /|0|1,FS_var|3|1,FS_hirn|3|1,Disk IO SUMMARY|0|1,Check_MK Discovery|1|1,Check_MK|0|1,CPU utilization|0|1,CPU load|0|1,Aptitude|3|1;3.3333333333e-02;0;1;;26;2;2;0.0000000000e+00;0.0000000000e+00;0.0000000000e+00

**

ghost commented 8 years ago

screenshot from 2016-07-09 00 00 49

nuxsmin commented 8 years ago

Can you issue this command?:

echo -e "GET hosts\nFilter: checks_enabled = 1\nOutputFormat: json" | unixcat /omd/sites/blutomonit/tmp/run/live

nuxsmin commented 8 years ago

And also this one for services: echo -e "GET services\nFilter: checks_enabled = 1\nOutputFormat: json\n\n" | unixcat /omd/sites/blutomonit/tmp/run/live

ghost commented 8 years ago

plz find the out put for hosts and services.

[root@omd ~]# echo -e "GET hosts\nFilter: checks_enabled = 1\nOutputFormat: json" | unixcat /omd/sites/blutomonit/tmp/run/live [["accept_passive_checks","acknowledged","acknowledgement_type","action_url","action_url_expanded","active_checks_enabled","address","alias","check_command","check_command_expanded","check_flapping_recovery_notification","check_freshness","check_interval","check_options","check_period","check_type","checks_enabled","childs","comments","comments_with_extra_info","comments_with_info","contact_groups","contacts","current_attempt","current_notification_number","custom_variable_names","custom_variable_values","custom_variables","display_name","downtimes","downtimes_with_info","event_handler","event_handler_enabled","execution_time","filename","first_notification_delay","flap_detection_enabled","groups","hard_state","has_been_checked","high_flap_threshold","icon_image","icon_image_alt","icon_image_expanded","in_check_period","in_notification_period","in_service_period","initial_state","is_executing","is_flapping","last_check","last_hard_state","last_hard_state_change","last_notification","last_state","last_state_change","last_time_down","last_time_unreachable","last_time_up","latency","long_plugin_output","low_flap_threshold","max_check_attempts","metrics","mk_inventory","mk_inventory_gz","mk_inventory_last","modified_attributes","modified_attributes_list","name","next_check","next_notification","no_more_notifications","notes","notes_expanded","notes_url","notes_url_expanded","notification_interval","notification_period","notifications_enabled","num_services","num_services_crit","num_services_hard_crit","num_services_hard_ok","num_services_hard_unknown","num_services_hard_warn","num_services_ok","num_services_pending","num_services_unknown","num_services_warn","obsess_over_host","parents","pending_flex_downtime","percent_state_change","perf_data","plugin_output","pnpgraph_present","process_performance_data","retry_interval","scheduled_downtime_depth","service_period","services","services_with_fullstate","services_with_info","services_with_state","staleness","state","state_type","statusmap_image","total_services","worst_service_hard_state","worst_service_state","x_3d","y_3d","z_3d"], [1,0,0,"/blutomonit/pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=HOST' class='tips' rel='/blutomonit/pnp4nagios/index.php/popup?host=$HOSTNAME$&srv=HOST","/blutomonit/pnp4nagios/index.php/graph?host=blutomonit-master&srv=HOST' class='tips' rel='/blutomonit/pnp4nagios/index.php/popup?host=blutomonit-master&srv=HOST",1,"127.0.0.1","blutomonit-master","check-mk-host-ping!-w 200.00,80.00% -c 500.00,100.00%","check-mk-host-ping!-w 200.00,80.00% -c 500.00,100.00%",0,0,1.0000000000e+00,0,"24X7",0,1,[],[],[],[],["check-mk-notify","all"],["check-mk-notify"],1,0,["FILENAME","ADDRESS_FAMILY","ADDRESS_4","ADDRESS_6","TAGS"],["/wato/hosts.mk","4","127.0.0.1","","/wato/ cmk-agent ip-v4 ip-v4-only lan prod site:blutomonit tcp wato"],{"FILENAME":"/wato/hosts.mk","ADDRESS_FAMILY":"4","ADDRESS_4":"127.0.0.1","ADDRESS_6":"","TAGS":"/wato/ cmk-agent ip-v4 ip-v4-only lan prod site:blutomonit tcp wato"},"blutomonit-master",[],[],"",0,7.3040000000e-03,"/wato/hosts.mk",0.0000000000e+00,1,["check_mk"],0,1,0.0000000000e+00,"","","",1,1,1,0,0,0,1468006946,0,1467907806,0,0,1467907806,0,0,1468006947,4.2000000000e-02,"",0.0000000000e+00,1,[],"","",0,0,[],"blutomonit-master",1468007007,0,0,"","","","",0.0000000000e+00,"24X7",1,26,1,1,20,4,1,20,0,4,1,1,[],0,0.0000000000e+00,"rta=0.013ms;200.000;500.000;0; pl=0%;80;100;; rtmax=0.045ms;;;; rtmin=0.004ms;;;;","OK - 127.0.0.1: rta 0.013ms, lost 0%",1,1,1.0000000000e+00,0,"",["Uptime","TCP Connections","Smart_sda","Postfix Queue","OMD blutomonit status","OMD blutomonit performance","OMD blutomonit apache","Number of threads","Mount options of /boot","Mount options of /","Memory","LOAD","Kernel Process Creations","Kernel Major Page Faults","Kernel Context Switches","Interface 2","Filesystem /boot","Filesystem /","FS_var","FS_hirn","Disk IO SUMMARY","Check_MK Discovery","Check_MK","CPU utilization","CPU load","Aptitude"],[["Uptime",0,1,"OK - up since Fri Jul 8 23:53:54 2016 (0d 01:18:09)",0,1,1,0,0,1],["TCP Connections",0,1,"OK - ESTABLISHED: 5, TIME_WAIT: 10, LISTEN: 7",0,1,1,0,0,1],["Smart_sda",2,1,"CRIT - CRITICAL - SMART_ENABLE: Inappropriate ioctl for device",2,1,1,0,0,1],["Postfix Queue",0,1,"OK - deferred queue length is 0, active queue length is 0",0,1,1,0,0,1],["OMD blutomonit status",0,1,"OK - running",0,1,1,0,0,1],["OMD blutomonit performance",0,1,"OK - Host Checks: 0.0/s, Service Checks: 0.4/s, Process Creations: 0.0/s, Livestatus Connects: 0.8/s, Livestatus Requests: 1.0/s, Log Messages: 0.0/s, 1 Hosts, 26 Services, Core version: 3.5.0, Livestatus version: 1.2.8p5",0,1,1,0,0,1],["OMD blutomonit apache",0,1,"OK - 0.15 Requests/s, 0.00 Seconds serving/s, 409.72 B Sent/s",0,1,1,0,0,1],["Number of threads",0,1,"OK - 166 threads",0,1,1,0,0,1],["Mount options of /boot",0,1,"OK - mount options exactly as expected",0,1,1,0,0,1],["Mount options of /",0,1,"OK - mount options exactly as expected",0,1,1,0,0,1],["Memory",0,1,"OK - RAM used: 476.32 MB of 3.70 GB, Swap used: 0.00 B of 3.00 GB, Total virtual memory used: 476.32 MB of 6.70 GB (6.9%),",0,1,1,0,0,1],["LOAD",3,1,"UNKNOWN - Invalid plugin status 127. Output is:",3,1,1,0,0,1],["Kernel Process Creations",0,1,"OK - 2/s",0,1,1,0,0,1],["Kernel Major Page Faults",0,1,"OK - 2/s",0,1,1,0,0,1],["Kernel Context Switches",0,1,"OK - 147/s",0,1,1,0,0,1],["Interface 2",0,1,"OK - eth0 MAC: 52:54:00:23:14:19, speed unknown, in: 521.62 B/s, out: 768.59 B/s",0,1,1,0,0,1],["Filesystem /boot",0,1,"OK - 33.5% used (166.47 of 496.67 MB), trend: 0.00 B / 24 hours",0,1,1,0,0,1],["Filesystem /",0,1,"OK - 11.1% used (2.95 of 26.46 GB), trend: +1.19 MB / 24 hours",0,1,1,0,0,1],["FS_var",3,1,"UNKNOWN - Invalid plugin status 127. Output is:",3,1,1,0,0,1],["FS_hirn",3,1,"UNKNOWN - Invalid plugin status 127. Output is:",3,1,1,0,0,1],["Disk IO SUMMARY",0,1,"OK - Utilization: 0.1%, Read: 7.67 kB/s, Write: 14.98 kB/s, Average Wait: 2.65 ms, Average Read Wait: 0.44 ms, Average Write Wait: 4.20 ms, Latency: 0.29 ms",0,1,1,0,0,1],["Check_MK Discovery",1,1,"WARN - 1 unmonitored services (ntp.time:1)(!), no vanished services found",1,1,1,0,0,1],["Check_MK",0,1,"OK - Agent version 1.2.8p5, execution time 0.2 sec",0,1,1,0,0,1],["CPU utilization",0,1,"OK - user: 0.7%, system: 0.3%, wait: 0.0%, steal: 0.0%, guest: 0.0%, total: 1.0%",0,1,1,0,0,1],["CPU load",0,1,"OK - 15 min load 0.05 at 2 Cores (0.03 per Core)",0,1,1,0,0,1],["Aptitude",3,1,"UNKNOWN - Invalid plugin status 127. Output is:",3,1,1,0,0,1]],[["Uptime",0,1,"OK - up since Fri Jul 8 23:53:54 2016 (0d 01:18:09)"],["TCP Connections",0,1,"OK - ESTABLISHED: 5, TIME_WAIT: 10, LISTEN: 7"],["Smart_sda",2,1,"CRIT - CRITICAL - SMART_ENABLE: Inappropriate ioctl for device"],["Postfix Queue",0,1,"OK - deferred queue length is 0, active queue length is 0"],["OMD blutomonit status",0,1,"OK - running"],["OMD blutomonit performance",0,1,"OK - Host Checks: 0.0/s, Service Checks: 0.4/s, Process Creations: 0.0/s, Livestatus Connects: 0.8/s, Livestatus Requests: 1.0/s, Log Messages: 0.0/s, 1 Hosts, 26 Services, Core version: 3.5.0, Livestatus version: 1.2.8p5"],["OMD blutomonit apache",0,1,"OK - 0.15 Requests/s, 0.00 Seconds serving/s, 409.72 B Sent/s"],["Number of threads",0,1,"OK - 166 threads"],["Mount options of /boot",0,1,"OK - mount options exactly as expected"],["Mount options of /",0,1,"OK - mount options exactly as expected"],["Memory",0,1,"OK - RAM used: 476.32 MB of 3.70 GB, Swap used: 0.00 B of 3.00 GB, Total virtual memory used: 476.32 MB of 6.70 GB (6.9%),"],["LOAD",3,1,"UNKNOWN - Invalid plugin status 127. Output is:"],["Kernel Process Creations",0,1,"OK - 2/s"],["Kernel Major Page Faults",0,1,"OK - 2/s"],["Kernel Context Switches",0,1,"OK - 147/s"],["Interface 2",0,1,"OK - eth0 MAC: 52:54:00:23:14:19, speed unknown, in: 521.62 B/s, out: 768.59 B/s"],["Filesystem /boot",0,1,"OK - 33.5% used (166.47 of 496.67 MB), trend: 0.00 B / 24 hours"],["Filesystem /",0,1,"OK - 11.1% used (2.95 of 26.46 GB), trend: +1.19 MB / 24 hours"],["FS_var",3,1,"UNKNOWN - Invalid plugin status 127. Output is:"],["FS_hirn",3,1,"UNKNOWN - Invalid plugin status 127. Output is:"],["Disk IO SUMMARY",0,1,"OK - Utilization: 0.1%, Read: 7.67 kB/s, Write: 14.98 kB/s, Average Wait: 2.65 ms, Average Read Wait: 0.44 ms, Average Write Wait: 4.20 ms, Latency: 0.29 ms"],["Check_MK Discovery",1,1,"WARN - 1 unmonitored services (ntp.time:1)(!), no vanished services found"],["Check_MK",0,1,"OK - Agent version 1.2.8p5, execution time 0.2 sec"],["CPU utilization",0,1,"OK - user: 0.7%, system: 0.3%, wait: 0.0%, steal: 0.0%, guest: 0.0%, total: 1.0%"],["CPU load",0,1,"OK - 15 min load 0.05 at 2 Cores (0.03 per Core)"],["Aptitude",3,1,"UNKNOWN - Invalid plugin status 127. Output is:"]],[["Uptime",0,1],["TCP Connections",0,1],["Smart_sda",2,1],["Postfix Queue",0,1],["OMD blutomonit status",0,1],["OMD blutomonit performance",0,1],["OMD blutomonit apache",0,1],["Number of threads",0,1],["Mount options of /boot",0,1],["Mount options of /",0,1],["Memory",0,1],["LOAD",3,1],["Kernel Process Creations",0,1],["Kernel Major Page Faults",0,1],["Kernel Context Switches",0,1],["Interface 2",0,1],["Filesystem /boot",0,1],["Filesystem /",0,1],["FS_var",3,1],["FS_hirn",3,1],["Disk IO SUMMARY",0,1],["Check_MK Discovery",1,1],["Check_MK",0,1],["CPU utilization",0,1],["CPU load",0,1],["Aptitude",3,1]],4.5000000000e-01,0,1,"",26,2,2,0.0000000000e+00,0.0000000000e+00,0.0000000000e+00]]

[root@omd ~]# echo -e "GET services\nFilter: checks_enabled = 1\nOutputFormat: json\n\n" | unixcat /omd/sites/blutomonit/tmp/run/live [["accept_passive_checks","acknowledged","acknowledgement_type","action_url","action_url_expanded","active_checks_enabled","cache_interval","cached_at","check_command","check_command_expanded","check_freshness","check_interval","check_options","check_period","check_type","checks_enabled","comments","comments_with_extra_info","comments_with_info","contact_groups","contacts","current_attempt","current_notification_number","custom_variable_names","custom_variable_values","custom_variables","description","display_name","downtimes","downtimes_with_info","event_handler","event_handler_enabled","execution_time","first_notification_delay","flap_detection_enabled","groups","has_been_checked","high_flap_threshold","host_accept_passive_checks","host_acknowledged","host_acknowledgement_type","host_action_url","host_action_url_expanded","host_active_checks_enabled","host_address","host_alias","host_check_command","host_check_command_expanded","host_check_flapping_recovery_notification","host_check_freshness","host_check_interval","host_check_options","host_check_period","host_check_type","host_checks_enabled","host_childs","host_comments","host_comments_with_extra_info","host_comments_with_info","host_contact_groups","host_contacts","host_current_attempt","host_current_notification_number","host_custom_variable_names","host_custom_variable_values","host_custom_variables","host_display_name","host_downtimes","host_downtimes_with_info","host_event_handler","host_event_handler_enabled","host_execution_time","host_filename","host_first_notification_delay","host_flap_detection_enabled","host_groups","host_hard_state","host_has_been_checked","host_high_flap_threshold","host_icon_image","host_icon_image_alt","host_icon_image_expanded","host_in_check_period","host_in_notification_period","host_in_service_period","host_initial_state","host_is_executing","host_is_flapping","host_last_check","host_last_hard_state","host_last_hard_state_change","host_last_notification","host_last_state","host_last_state_change","host_last_time_down","host_last_time_unreachable","host_last_time_up","host_latency","host_long_plugin_output","host_low_flap_threshold","host_max_check_attempts","host_metrics","host_mk_inventory","host_mk_inventory_gz","host_mk_inventory_last","host_modified_attributes","host_modified_attributes_list","host_name","host_next_check","host_next_notification","host_no_more_notifications","host_notes","host_notes_expanded","host_notes_url","host_notes_url_expanded","host_notification_interval","host_notification_period","host_notifications_enabled","host_num_services","host_num_services_crit","host_num_services_hard_crit","host_num_services_hard_ok","host_num_services_hard_unknown","host_num_services_hard_warn","host_num_services_ok","host_num_services_pending","host_num_services_unknown","host_num_services_warn","host_obsess_over_host","host_parents","host_pending_flex_downtime","host_percent_state_change","host_perf_data","host_plugin_output","host_pnpgraph_present","host_process_performance_data","host_retry_interval","host_scheduled_downtime_depth","host_service_period","host_services","host_services_with_fullstate","host_services_with_info","host_services_with_state","host_staleness","host_state","host_state_type","host_statusmap_image","host_total_services","host_worst_service_hard_state","host_worst_service_state","host_x_3d","host_y_3d","host_z_3d","icon_image","icon_image_alt","icon_image_expanded","in_check_period","in_notification_period","in_service_period","initial_state","is_executing","is_flapping","last_check","last_hard_state","last_hard_state_change","last_notification","last_state","last_state_change","last_time_critical","last_time_ok","last_time_unknown","last_time_warning","latency","long_plugin_output","low_flap_threshold","max_check_attempts","metrics","modified_attributes","modified_attributes_list","next_check","next_notification","no_more_notifications","notes","notes_expanded","notes_url","notes_url_expanded","notification_interval","notification_period","notifications_enabled","obsess_over_service","percent_state_change","perf_data","plugin_output","pnpgraph_present","process_performance_data","retry_interval","scheduled_downtime_depth","service_period","staleness","state","state_type"], [1,0,0,"/blutomonit/pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=$SERVICEDESC$' class='tips' rel='/blutomonit/pnp4nagios/index.php/popup?host=$HOSTNAME$&srv=$SERVICEDESC$","/blutomonit/pnp4nagios/index.php/graph?host=blutomonit-master&srv=Check_MK' class='tips' rel='/blutomonit/pnp4nagios/index.php/popup?host=blutomonit-master&srv=Check_MK",1,0,0,"check-mk","check-mk",0,1.0000000000e+00,0,"24X7",0,1,[],[],[],["check-mk-notify","all"],["check-mk-notify"],1,0,[],[],{},"Check_MK","Check_MK",[],[],"",0,2.2387100000e-01,0.0000000000e+00,1,[],1,0.0000000000e+00,1,0,0,"/blutomonit/pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=HOST' class='tips' rel='/blutomonit/pnp4nagios/index.php/popup?host=$HOSTNAME$&srv=HOST","/blutomonit/pnp4nagios/index.php/graph?host=blutomonit-master&srv=HOST' class='tips' rel='/blutomonit/pnp4nagios/index.php/popup?host=blutomonit-master&srv=HOST",1,"127.0.0.1","blutomonit-master","check-mk-host-ping!-w 200.00,80.00% -c 500.00,100.00%","check-mk-host-ping!-w 200.00,80.00% -c 500.00,100.00%",0,0,1.0000000000e+00,0,"24X7",0,1,[],[],[],[],["check-mk-notify","all"],["check-mk-notify"],1,0,["FILENAME","ADDRESS_FAMILY","ADDRESS_4","ADDRESS_6","TAGS"],["/wato/hosts.mk","4","127.0.0.1","","/wato/ cmk-agent ip-v4 ip-v4-only lan prod site:blutomonit tcp wato"],{"FILENAME":"/wato/hosts.mk","ADDRESS_FAMILY":"4","ADDRESS_4":"127.0.0.1","ADDRESS_6":"","TAGS":"/wato/ cmk-agent ip-v4 ip-v4-only lan prod site:blutomonit tcp wato"},"blutomonit-master",[],[],"",0,7.3040000000e-03,"/wato/hosts.mk",0.0000000000e+00,1,["check_mk"],0,1,0.0000000000e+00,"","","",1,1,1,0,0,0,1468006946,0,1467907806,0,0,1467907806,0,0,1468006947,4.2000000000e-02,"",0.0000000000e+00,1,[],"","",0,0,[],"blutomonit-master",1468007007,0,0,"","","","",0.0000000000e+00,"24X7",1,26,1,1,20,4,1,20,0,4,1,1,[],0,0.0000000000e+00,"rta=0.013ms;200.000;500.000;0; pl=0%;80;100;; rtmax=0.045ms;;;; rtmin=0.004ms;;;;","OK - 127.0.0.1: rta 0.013ms, lost 0%",1,1,1.0000000000e+00,0,"",["Uptime","TCP Connections","Smart_sda","Postfix Queue","OMD blutomonit status","OMD blutomonit performance","OMD blutomonit apache","Number of threads","Mount options of /boot","Mount options of /","Memory","LOAD","Kernel Process Creations","Kernel Major Page Faults","Kernel Context Switches","Interface 2","Filesystem /boot","Filesystem /","FS_var","FS_hirn","Disk IO SUMMARY","Check_MK Discovery","Check_MK","CPU utilization","CPU load","Aptitude"],[["Uptime",0,1,"OK - up since Fri Jul 8 23:53:54 2016 (0d 01:18:09)",0,1,1,0,0,1],["TCP Connections",0,1,"OK - ESTABLISHED: 5, TIME_WAIT: 10, LISTEN: 7",0,1,1,0,0,1],["Smart_sda",2,1,"CRIT - CRITICAL - SMART_ENABLE: Inappropriate ioctl for device",2,1,1,0,0,1],["Postfix Queue",0,1,"OK - deferred queue length is 0, active queue length is 0",0,1,1,0,0,1],["OMD blutomonit status",0,1,"OK - running",0,1,1,0,0,1],["OMD blutomonit performance",0,1,"OK - Host Checks: 0.0/s, Service Checks: 0.4/s, Process Creations: 0.0/s, Livestatus Connects: 0.8/s, Livestatus Requests: 1.0/s, Log Messages: 0.0/s, 1 Hosts, 26 Services, Core version: 3.5.0, Livestatus version: 1.2.8p5",0,1,1,0,0,1],["OMD blutomonit apache",0,1,"OK - 0.15 Requests/s, 0.00 Seconds serving/s, 409.72 B Sent/s",0,1,1,0,0,1],["Number of threads",0,1,"OK - 166 threads",0,1,1,0,0,1],["Mount options of /boot",0,1,"OK - mount options exactly as expected",0,1,1,0,0,1],["Mount options of /",0,1,"OK - mount options exactly as expected",0,1,1,0,0,1],["Memory",0,1,"OK - RAM used: 476.32 MB of 3.70 GB, Swap used: 0.00 B of 3.00 GB, Total virtual memory used: 476.32 MB of 6.70 GB (6.9%),",0,1,1,0,0,1],["LOAD",3,1,"UNKNOWN - Invalid plugin status 127. Output is:",3,1,1,0,0,1],["Kernel Process Creations",0,1,"OK - 2/s",0,1,1,0,0,1],["Kernel Major Page Faults",0,1,"OK - 2/s",0,1,1,0,0,1],["Kernel Context Switches",0,1,"OK - 147/s",0,1,1,0,0,1],["Interface 2",0,1,"OK - eth0 MAC: 52:54:00:23:14:19, speed unknown, in: 521.62 B/s, out: 768.59 B/s",0,1,1,0,0,1],["Filesystem /boot",0,1,"OK - 33.5% used (166.47 of 496.67 MB), trend: 0.00 B / 24 hours",0,1,1,0,0,1],["Filesystem /",0,1,"OK - 11.1% used (2.95 of 26.46 GB), trend: +1.19 MB / 24 hours",0,1,1,0,0,1],["FS_var",3,1,"UNKNOWN - Invalid plugin status 127. Output is:",3,1,1,0,0,1],["FS_hirn",3,1,"UNKNOWN - Invalid plugin status 127. Output is:",3,1,1,0,0,1],["Disk IO SUMMARY",0,1,"OK - Utilization: 0.1%, Read: 7.67 kB/s, Write: 14.98 kB/s, Average Wait: 2.65 ms, Average Read Wait: 0.44 ms, Average Write Wait: 4.20 ms, Latency: 0.29 ms",0,1,1,0,0,1],["Check_MK Discovery",1,1,"WARN - 1 unmonitored services (ntp.time:1)(!), no vanished services found",1,1,1,0,0,1],["Check_MK",0,1,"OK - Agent version 1.2.8p5, execution time 0.2 sec",0,1,1,0,0,1],["CPU utilization",0,1,"OK - user: 0.7%, system: 0.3%, wait: 0.0%, steal: 0.0%, guest: 0.0%, total: 1.0%",0,1,1,0,0,1],["CPU load",0,1,"OK - 15 min load 0.05 at 2 Cores (0.03 per Core)",0,1,1,0,0,1],["Aptitude",3,1,"UNKNOWN - Invalid plugin status 127. Output is:",3,1,1,0,0,1]],[["Uptime",0,1,"OK - up since Fri Jul 8 23:53:54 2016 (0d 01:18:09)"],["TCP Connections",0,1,"OK - ESTABLISHED: 5, TIME_WAIT: 10, LISTEN: 7"],["Smart_sda",2,1,"CRIT - CRITICAL - SMART_ENABLE: Inappropriate ioctl for device"],["Postfix Queue",0,1,"OK - deferred queue length is 0, active queue length is 0"],["OMD blutomonit status",0,1,"OK - running"],["OMD blutomonit performance",0,1,"OK - Host Checks: 0.0/s, Service Checks: 0.4/s, Process Creations: 0.0/s, Livestatus Connects: 0.8/s, Livestatus Requests: 1.0/s, Log Messages: 0.0/s, 1 Hosts, 26 Services, Core version: 3.5.0, Livestatus version: 1.2.8p5"],["OMD blutomonit apache",0,1,"OK - 0.15 Requests/s, 0.00 Seconds serving/s, 409.72 B Sent/s"],["Number of threads",0,1,"OK - 166 threads"],["Mount options of /boot",0,1,"OK - mount options exactly as expected"],["Mount options of /",0,1,"OK - mount options exactly as expected"],["Memory",0,1,"OK - RAM used: 476.32 MB of 3.70 GB, Swap used: 0.00 B of 3.00 GB, Total virtual memory used: 476.32 MB of 6.70 GB (6.9%),"],["LOAD",3,1,"UNKNOWN - Invalid plugin status 127. Output is:"],["Kernel Process Creations",0,1,"OK - 2/s"],["Kernel Major Page Faults",0,1,"OK - 2/s"],["Kernel Context Switches",0,1,"OK - 147/s"],["Interface 2",0,1,"OK - eth0 MAC: 52:54:00:23:14:19, speed unknown, in: 521.62 B/s, out: 768.59 B/s"],["Filesystem /boot",0,1,"OK - 33.5% used (166.47 of 496.67 MB), trend: 0.00 B / 24 hours"],["Filesystem /",0,1,"OK - 11.1% used (2.95 of 26.46 GB), trend: +1.19 MB / 24 hours"],["FS_var",3,1,"UNKNOWN - Invalid plugin status 127. Output is:"],["FS_hirn",3,1,"UNKNOWN - Invalid plugin status 127. Output is:"],["Disk IO SUMMARY",0,1,"OK - Utilization: 0.1%, Read: 7.67 kB/s, Write: 14.98 kB/s, Average Wait: 2.65 ms, Average Read Wait: 0.44 ms, Average Write Wait: 4.20 ms, Latency: 0.29 ms"],["Check_MK Discovery",1,1,"WARN - 1 unmonitored services (ntp.time:1)(!), no vanished services found"],["Check_MK",0,1,"OK - Agent version 1.2.8p5, execution time 0.2 sec"],["CPU utilization",0,1,"OK - user: 0.7%, system: 0.3%, wait: 0.0%, steal: 0.0%, guest: 0.0%, total: 1.0%"],["CPU load",0,1,"OK - 15 min load 0.05 at 2 Cores (0.03 per Core)"],["Aptitude",3,1,"UNKNOWN - Invalid plugin status 127. Output is:"]],[["Uptime",0,1],["TCP Connections",0,1],["Smart_sda",2,1],["Postfix Queue",0,1],["OMD blutomonit status",0,1],["OMD blutomonit performance",0,1],["OMD blutomonit apache",0,1],["Number of threads",0,1],["Mount options of /boot",0,1],["Mount options of /",0,1],["Memory",0,1],["LOAD",3,1],["Kernel Process Creations",0,1],["Kernel Major Page Faults",0,1],["Kernel Context Switches",0,1],["Interface 2",0,1],["Filesystem /boot",0,1],["Filesystem /",0,1],["FS_var",3,1],["FS_hirn",3,1],["Disk IO SUMMARY",0,1],["Check_MK Discovery",1,1],["Check_MK",0,1],["CPU utilization",0,1],["CPU load",0,1],["Aptitude",3,1]],6.1666666667e-01,0,1,"",26,2,2,0.0000000000e+00,0.0000000000e+00,0.0000000000e+00,"","","",1,1,1,0,0,0,1468006924,0,1467907965,0,0,1467907965,0,1468006924,0,0,2.1000000000e-02,"",0.0000000000e+00,1,[],0,[],1468006984,0,0,"","","","",0.0000000000e+00,"24X7",1,1,0.0000000000e+00,"execution_time=0.163 user_time=0.060 system_time=0.020 children_user_time=0.000 children_system_time=0.000","OK - Agent version 1.2.8p5, execution time 0.2 sec",1,1,1.0000000000e+00,0,"",9.8333333333e-01,0,1], [1,0,0,"","",1,0,0,"check-mk-inventory","check-mk-inventory",0,1.2000000000e+02,0,"24X7",0,1,[],[],[],["check-mk-notify","all"],["check-mk-notify"],1,1,[],[],{},"Check_MK Discovery","Check_MK Discovery",[],[],"",0,1.1612030000e+00,0.0000000000e+00,1,[],1,0.0000000000e+00,1,0,0,"/blutomonit/pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=HOST' class='tips' rel='/blutomonit/pnp4nagios/index.php/popup?host=$HOSTNAME$&srv=HOST","/blutomonit/pnp4nagios/index.php/graph?host=blutomonit-master&srv=HOST' class='tips' rel='/blutomonit/pnp4nagios/index.php/popup?host=blutomonit-master&srv=HOST",1,"127.0.0.1","blutomonit-master","check-mk-host-ping!-w 200.00,80.00% -c 500.00,100.00%","check-mk-host-ping!-w 200.00,80.00% -c 500.00,100.00%",0,0,1.0000000000e+00,0,"24X7",0,1,[],[],[],[],["check-mk-notify","all"],["check-mk-notify"],1,0,["FILENAME","ADDRESS_FAMILY","ADDRESS_4","ADDRESS_6","TAGS"],["/wato/hosts.mk","4","127.0.0.1","","/wato/ cmk-agent ip-v4 ip-v4-only lan prod site:blutomonit tcp wato"],{"FILENAME":"/wato/hosts.mk","ADDRESS_FAMILY":"4","ADDRESS_4":"127.0.0.1","ADDRESS_6":"","TAGS":"/wato/ cmk-agent ip-v4 ip-v4-only lan prod site:blutomonit tcp wato"},"blutomonit-master",[],[],"",0,7.3040000000e-03,"/wato/hosts.mk",0.0000000000e+00,1,["check_mk"],0,1,0.0000000000e+00,"","","",1,1,1,0,0,0,1468006946,0,1467907806,0,0,1467907806,0,0,1468006947,4.2000000000e-02,"",0.0000000000e+00,1,[],"","",0,0,[],"blutomonit-master",1468007007,0,0,"","","","",0.0000000000e+00,"24X7",1,26,1,1,20,4,1,20,0,4,1,1,[],0,0.0000000000e+00,"rta=0.013ms;200.000;500.000;0; pl=0%;80;100;; rtmax=0.045ms;;;; rtmin=0.004ms;;;;","OK - 127.0.0.1: rta 0.013ms, lost 0%",1,1,1.0000000000e+00,0,"",["Uptime","TCP Connections","Smart_sda","Postfix Queue","OMD blutomonit status","OMD blutomonit performance","OMD blutomonit apache","Number of threads","Mount options of /boot","Mount options of /","Memory","LOAD","Kernel Process Creations","Kernel Major Page Faults","Kernel Context Switches","Interface 2","Filesystem /boot","Filesystem /","FS_var","FS_hirn","Disk IO SUMMARY","Check_MK Discovery","Check_MK","CPU utilization","CPU load","Aptitude"],[["Uptime",0,1,"OK - up since Fri Jul 8 23:53:54 2016 (0d 01:18:09)",0,1,1,0,0,1],["TCP Connections",0,1,"OK - ESTABLISHED: 5, TIME_WAIT: 10, LISTEN: 7",0,1,1,0,0,1],["Smart_sda",2,1,"CRIT - CRITICAL - SMART_ENABLE: Inappropriate ioctl for device",2,1,1,0,0,1],["Postfix Queue",0,1,"OK - deferred queue length is 0, active queue length is 0",0,1,1,0,0,1],["OMD blutomonit status",0,1,"OK - running",0,1,1,0,0,1],["OMD blutomonit performance",0,1,"OK - Host Checks: 0.0/s, Service Checks: 0.4/s, Process Creations: 0.0/s, Livestatus Connects: 0.8/s, Livestatus Requests: 1.0/s, Log Messages: 0.0/s, 1 Hosts, 26 Services, Core version: 3.5.0, Livestatus version: 1.2.8p5",0,1,1,0,0,1],["OMD blutomonit apache",0,1,"OK - 0.15 Requests/s, 0.00 Seconds serving/s, 409.72 B Sent/s",0,1,1,0,0,1],["Number of threads",0,1,"OK - 166 threads",0,1,1,0,0,1],["Mount options of /boot",0,1,"OK - mount options exactly as expected",0,1,1,0,0,1],["Mount options of /",0,1,"OK - mount options exactly as expected",0,1,1,0,0,1],["Memory",0,1,"OK - RAM used: 476.32 MB of 3.70 GB, Swap used: 0.00 B of 3.00 GB, Total virtual memory used: 476.32 MB of 6.70 GB (6.9%),",0,1,1,0,0,1],["LOAD",3,1,"UNKNOWN - Invalid plugin status 127. Output is:",3,1,1,0,0,1],["Kernel Process Creations",0,1,"OK - 2/s",0,1,1,0,0,1],["Kernel Major Page Faults",0,1,"OK - 2/s",0,1,1,0,0,1],["Kernel Context Switches",0,1,"OK - 147/s",0,1,1,0,0,1],["Interface 2",0,1,"OK - eth0 MAC: 52:54:00:23:14:19, speed unknown, in: 521.62 B/s, out: 768.59 B/s",0,1,1,0,0,1],["Filesystem /boot",0,1,"OK - 33.5% used (166.47 of 496.67 MB), trend: 0.00 B / 24 hours",0,1,1,0,0,1],["Filesystem /",0,1,"OK - 11.1% used (2.95 of 26.46 GB), trend: +1.19 MB / 24 hours",0,1,1,0,0,1],["FS_var",3,1,"UNKNOWN - Invalid plugin status 127. Output is:",3,1,1,0,0,1],["FS_hirn",3,1,"UNKNOWN - Invalid plugin status 127. Output is:",3,1,1,0,0,1],["Disk IO SUMMARY",0,1,"OK - Utilization: 0.1%, Read: 7.67 kB/s, Write: 14.98 kB/s, Average Wait: 2.65 ms, Average Read Wait: 0.44 ms, Average Write Wait: 4.20 ms, Latency: 0.29 ms",0,1,1,0,0,1],["Check_MK Discovery",1,1,"WARN - 1 unmonitored services (ntp.time:1)(!), no vanished services found",1,1,1,0,0,1],["Check_MK",0,1,"OK - Agent version 1.2.8p5, execution time 0.2 sec",0,1,1,0,0,1],["CPU utilization",0,1,"OK - user: 0.7%, system: 0.3%, wait: 0.0%, steal: 0.0%, guest: 0.0%, total: 1.0%",0,1,1,0,0,1],["CPU load",0,1,"OK - 15 min load 0.05 at 2 Cores (0.03 per Core)",0,1,1,0,0,1],["Aptitude",3,1,"UNKNOWN - Invalid plugin status 127. Output is:",3,1,1,0,0,1]],[["Uptime",0,1,"OK - up since Fri Jul 8 23:53:54 2016 (0d 01:18:09)"],["TCP Connections",0,1,"OK - ESTABLISHED: 5, TIME_WAIT: 10, LISTEN: 7"],["Smart_sda",2,1,"CRIT - CRITICAL - SMART_ENABLE: Inappropriate ioctl for device"],["Postfix Queue",0,1,"OK - deferred queue length is 0, active queue length is 0"],["OMD blutomonit status",0,1,"OK - running"],["OMD blutomonit performance",0,1,"OK - Host Checks: 0.0/s, Service Checks: 0.4/s, Process Creations: 0.0/s, Livestatus Connects: 0.8/s, Livestatus Requests: 1.0/s, Log Messages: 0.0/s, 1 Hosts, 26 Services, Core version: 3.5.0, Livestatus version: 1.2.8p5"],["OMD blutomonit apache",0,1,"OK - 0.15 Requests/s, 0.00 Seconds serving/s, 409.72 B Sent/s"],["Number of threads",0,1,"OK - 166 threads"],["Mount options of /boot",0,1,"OK - mount options exactly as expected"],["Mount options of /",0,1,"OK - mount options exactly as expected"],["Memory",0,1,"OK - RAM used: 476.32 MB of 3.70 GB, Swap used: 0.00 B of 3.00 GB, Total virtual memory used: 476.32 MB of 6.70 GB (6.9%),"],["LOAD",3,1,"UNKNOWN - Invalid plugin status 127. Output is:"],["Kernel Process Creations",0,1,"OK - 2/s"],["Kernel Major Page Faults",0,1,"OK - 2/s"],["Kernel Context Switches",0,1,"OK - 147/s"],["Interface 2",0,1,"OK - eth0 MAC: 52:54:00:23:14:19, speed unknown, in: 521.62 B/s, out: 768.59 B/s"],["Filesystem /boot",0,1,"OK - 33.5% used (166.47 of 496.67 MB), trend: 0.00 B / 24 hours"],["Filesystem /",0,1,"OK - 11.1% used (2.95 of 26.46 GB), trend: +1.19 MB / 24 hours"],["FS_var",3,1,"UNKNOWN - Invalid plugin status 127. Output is:"],["FS_hirn",3,1,"UNKNOWN - Invalid plugin status 127. Output is:"],["Disk IO SUMMARY",0,1,"OK - Utilization: 0.1%, Read: 7.67 kB/s, Write: 14.98 kB/s, Average Wait: 2.65 ms, Average Read Wait: 0.44 ms, Average Write Wait: 4.20 ms, Latency: 0.29 ms"],["Check_MK Discovery",1,1,"WARN - 1 unmonitored services (ntp.time:1)(!), no vanished services found"],["Check_MK",0,1,"OK - Agent version 1.2.8p5, execution time 0.2 sec"],["CPU utilization",0,1,"OK - user: 0.7%, system: 0.3%, wait: 0.0%, steal: 0.0%, guest: 0.0%, total: 1.0%"],["CPU load",0,1,"OK - 15 min load 0.05 at 2 Cores (0.03 per Core)"],["Aptitude",3,1,"UNKNOWN - Invalid plugin status 127. Output is:"]],[["Uptime",0,1],["TCP Connections",0,1],["Smart_sda",2,1],["Postfix Queue",0,1],["OMD blutomonit status",0,1],["OMD blutomonit performance",0,1],["OMD blutomonit apache",0,1],["Number of threads",0,1],["Mount options of /boot",0,1],["Mount options of /",0,1],["Memory",0,1],["LOAD",3,1],["Kernel Process Creations",0,1],["Kernel Major Page Faults",0,1],["Kernel Context Switches",0,1],["Interface 2",0,1],["Filesystem /boot",0,1],["Filesystem /",0,1],["FS_var",3,1],["FS_hirn",3,1],["Disk IO SUMMARY",0,1],["Check_MK Discovery",1,1],["Check_MK",0,1],["CPU utilization",0,1],["CPU load",0,1],["Aptitude",3,1]],6.1666666667e-01,0,1,"",26,2,2,0.0000000000e+00,0.0000000000e+00,0.0000000000e+00,"","","",1,1,1,0,0,0,1468002358,1,1467995158,1467995159,1,1467995158,0,1467987958,0,1468002358,5.2000000000e-02,"unmonitored: ntp.time: NTP Time\n",0.0000000000e+00,1,[],0,[],1468009558,1467995159,1,"","","","",0.0000000000e+00,"24X7",1,1,6.1184210526e+00,"","WARN - 1 unmonitored services (ntp.time:1)(!), no vanished services found",0,0,1.2000000000e+02,0,"",6.4236111111e-01,1,1]]

ghost commented 8 years ago

also my config.xml output as below.

> **<?xml version="1.0" encoding="utf-8"?>
> <config>
>   <APIToken></APIToken>
>   <backend>
>     <item type="backend" class="SMD\Core\ConfigBackendLivestatus">TzozMjoiU01EXENvcmVcQ29uZmlnQmFja2VuZExpdmVzdGF0dXMiOjY6e3M6NzoiACoAdHlwZSI7aToxO3M6NzoiACoAcGF0aCI7czozNDoiL29tZC9zaXRlcy9ibHV0b21vbml0L3RtcC9ydW4vbGl2ZSI7czo2OiIAKgB1cmwiO3M6MDoiIjtzOjk6IgAqAGFjdGl2ZSI7YjoxO3M6ODoiACoAYWxpYXMiO3M6MTA6IkJsdXRvTW9uaXQiO3M6ODoiACoAbGV2ZWwiO2k6MDt9</item>
>   </backend>
>   <cgiURL></cgiURL>
>   <clientURL></clientURL>
>   <colBackend>1</colBackend>
>   <colHost>1</colHost>
>   <colLastcheck>1</colLastcheck>
>   <colService>1</colService>
>   <colStatusInfo>1</colStatusInfo>
>   <configHash>bfc0bddebe8de9e645e706d3d8cd2a5b</configHash>
>   <configPassword></configPassword>
>   <criticalItems>
>     <item type="criticalItems"></item>
>   </criticalItems>
>   <dbName>nagiosql_db</dbName>
>   <dbServer>localhost</dbServer>
>   <dbUser>nagiosql_user</dbUser>
>   <dbUserPass>nagiosql_pass</dbUserPass>
>   <hash>8c6018eebb3ebed62c68770b7aa892b9</hash>
>   <language>en_US</language>
>   <maxDisplayItems>200</maxDisplayItems>
>   <monitorServerUrl>http://172.16.100.117</monitorServerUrl>
>   <newItemAudioEnabled>1</newItemAudioEnabled>
>   <newItemTime>900</newItemTime>
>   <pageTitle>Blutorden Monitor</pageTitle>
>   <refreshValue>5</refreshValue>
>   <regexHostShow>.*</regexHostShow>
>   <regexServiceNoShow></regexServiceNoShow>
>   <remoteServer></remoteServer>
>   <showScheduled>0</showScheduled>
>   <useNagiosQLInfo>0</useNagiosQLInfo>
> </config>**
> 
nuxsmin commented 8 years ago

Ok, It seems that you only have one host and many services within it, right?

If so, it would need some development to dig into those services, because the mk_livestatus plugin for Nagios/Icinga gets only hosts or services separately, but the OMD gets the services wrapped in the host data.

ghost commented 8 years ago

Yes correct it's wrapped hosts and services.

Please see if you can add this to your development.

1) OMD MK_livestatus socket 2) OMD MK_livestatus tcp

nuxsmin commented 8 years ago

I've installed OMD and done some tests about services retrieving. It works as expected, the services are individually retrieved.

Can you issue this command?: echo -e "GET services\nOutputFormat:json\nColumns:display_name state host_alias checks_enabled" | unixcat /omd/sites/blutomonit/tmp/run/live

ghost commented 8 years ago

output as below.

[root@omd ~]# echo -e "GET services\nOutputFormat:json\nColumns:display_name state host_alias checks_enabled" | unixcat /omd/sites/blutomonit/tmp/run/live [["APC Symmetra status",0,"APC_UPS",0], ["Check_MK",0,"APC_UPS",1], ["Check_MK Discovery",0,"APC_UPS",1], ["Interface 2",0,"APC_UPS",0], ["Power phase 1",0,"APC_UPS",0], ["SNMP Info",0,"APC_UPS",0], ["Self Test",0,"APC_UPS",0], ["Uptime",0,"APC_UPS",0], ["Aptitude",3,"Bluto-Monitoring-Master",0], ["CPU load",0,"Bluto-Monitoring-Master",0], ["CPU utilization",0,"Bluto-Monitoring-Master",0], ["Check_MK",0,"Bluto-Monitoring-Master",1], ["Check_MK Discovery",0,"Bluto-Monitoring-Master",1], ["Disk IO SUMMARY",0,"Bluto-Monitoring-Master",0], ["FS_hirn",3,"Bluto-Monitoring-Master",0], ["FS_var",3,"Bluto-Monitoring-Master",0], ["Filesystem /",0,"Bluto-Monitoring-Master",0], ["Filesystem /boot",0,"Bluto-Monitoring-Master",0], ["Interface 2",0,"Bluto-Monitoring-Master",0], ["Kernel Context Switches",0,"Bluto-Monitoring-Master",0], ["Kernel Major Page Faults",0,"Bluto-Monitoring-Master",0], ["Kernel Process Creations",0,"Bluto-Monitoring-Master",0], ["LOAD",3,"Bluto-Monitoring-Master",0], ["Memory used",0,"Bluto-Monitoring-Master",0], ["Mount options of /",0,"Bluto-Monitoring-Master",0], ["Mount options of /boot",0,"Bluto-Monitoring-Master",0], ["Number of threads",0,"Bluto-Monitoring-Master",0], ["OMD blutomonit performance",0,"Bluto-Monitoring-Master",0], ["OMD blutomonit status",0,"Bluto-Monitoring-Master",0], ["Postfix Queue",0,"Bluto-Monitoring-Master",0], ["Smart_sda",2,"Bluto-Monitoring-Master",0], ["TCP Connections",0,"Bluto-Monitoring-Master",0], ["Uptime",0,"Bluto-Monitoring-Master",0]]

nuxsmin commented 8 years ago

Well, the second column tells the state (0-OK, 1-Warning, 2-Critical, 3-Unknown), and the fourth column tells if the check is enabled (0-No, 1-Yes), so you have many checks disabled (0), and those which are enabled are in OK state, so no events are shown because that...

nuxsmin commented 8 years ago

Let me do some tweaks because "checks_enabled" attribute is not set unless active checks are set, but it seems that this feature is no intended for wrapped services.

ghost commented 8 years ago

screenshot from 2016-07-11 11 49 05

Thank you very much, now alerts displaying using TCP also with socket.

nuxsmin commented 8 years ago

Wow, I very glad that it worked fine!!