Code: Select all
[nagios@nagiosprodxi1 debug]$ /usr/local/nagios/bin/nagiostats
Nagios Stats 4.2.4
Copyright (c) 2003-2008 Ethan Galstad (www.nagios.org)
Last Modified: 12-07-2016
License: GPL
CURRENT STATUS DATA
------------------------------------------------------
Status File: /var/nagiosramdisk/status.dat
Status File Age: 0d 0h 0m 3s
Status File Version: 4.2.4
Program Running Time: 0d 0h 32m 44s
Nagios PID: 14327
Total Services: 10199
Services Checked: 10199
Services Scheduled: 10171
Services Actively Checked: 10171
Services Passively Checked: 28
Total Service State Change: 0.000 / 55.070 / 0.115 %
Active Service Latency: 0.000 / 73.258 / 0.424 sec
Active Service Execution Time: 0.008 / 91.019 / 1.155 sec
Active Service State Change: 0.000 / 55.070 / 0.098 %
Active Services Last 1/5/15/60 min: 1734 / 8261 / 8597 / 8846
Passive Service Latency: 0.080 / 8.698 / 0.962 sec
Passive Service State Change: 6.120 / 6.250 / 6.227 %
Passive Services Last 1/5/15/60 min: 0 / 0 / 0 / 0
Services Ok/Warn/Unk/Crit: 9601 / 300 / 76 / 222
Services Flapping: 25
Services In Downtime: 85
Total Hosts: 1382
Hosts Checked: 1382
Hosts Scheduled: 1382
Hosts Actively Checked: 1382
Host Passively Checked: 0
Total Host State Change: 0.000 / 0.000 / 0.000 %
Active Host Latency: 0.000 / 1.016 / 0.006 sec
Active Host Execution Time: 0.002 / 10.003 / 0.100 sec
Active Host State Change: 0.000 / 0.000 / 0.000 %
Active Hosts Last 1/5/15/60 min: 260 / 1382 / 1382 / 1382
Passive Host Latency: 0.000 / 0.000 / 0.000 sec
Passive Host State Change: 0.000 / 0.000 / 0.000 %
Passive Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 0
Hosts Up/Down/Unreach: 1375 / 7 / 0
Hosts Flapping: 0
Hosts In Downtime: 12
Active Host Checks Last 1/5/15 min: 310 / 1945 / 5900
Scheduled: 265 / 1737 / 5321
On-demand: 45 / 208 / 579
Parallel: 265 / 1737 / 5321
Serial: 0 / 0 / 0
Cached: 45 / 208 / 579
Passive Host Checks Last 1/5/15 min: 0 / 0 / 0
Active Service Checks Last 1/5/15 min: 1837 / 8549 / 25707
Scheduled: 1837 / 8549 / 25707
On-demand: 0 / 0 / 0
Cached: 0 / 0 / 0
Passive Service Checks Last 1/5/15 min: 0 / 0 / 0
External Commands Last 1/5/15 min: 0 / 0 / 0
[nagios@nagiosprodxi1 debug]$ echo 'SELECT COUNT(*) AS total FROM nagios_hoststatus WHERE TRUE AND`active_checks_enabled`=1 AND (TIMESTAMPDIFF(SECOND,nagios_hoststatus.last_check,NOW()) < 60);' | mysql --user=nagios --password=nagiosdb --host=nagiosproddb1 --database=nagios
total
0
[nagios@nagiosprodxi1 debug]$ echo 'SELECT COUNT(*) AS total FROM nagios_hoststatus WHERE TRUE AND`active_checks_enabled`=1 AND (TIMESTAMPDIFF(SECOND,nagios_hoststatus.last_check,NOW()) < 300);' | mysql --user=nagios --password=nagiosdb --host=nagiosproddb1 --database=nagios
total
0
[nagios@nagiosprodxi1 debug]$ echo 'SELECT COUNT(*) AS total FROM nagios_hoststatus WHERE TRUE AND`active_checks_enabled`=1 AND (TIMESTAMPDIFF(SECOND,nagios_hoststatus.last_check,NOW()) < 900);' | mysql --user=nagios --password=nagiosdb --host=nagiosproddb1 --database=nagios
total
1296
[nagios@nagiosprodxi1 debug]$ echo 'SELECT COUNT(*) AS total FROM nagios_servicestatus WHERE TRUE AND`active_checks_enabled`=1 AND (TIMESTAMPDIFF(SECOND,nagios_servicestatus.last_check,NOW()) < 60);' | mysql --user=nagios --password=nagiosdb --host=nagiosproddb1 --database=nagios
total
0
[nagios@nagiosprodxi1 debug]$ echo 'SELECT COUNT(*) AS total FROM nagios_servicestatus WHERE TRUE AND`active_checks_enabled`=1 AND (TIMESTAMPDIFF(SECOND,nagios_servicestatus.last_check,NOW()) < 300);' | mysql --user=nagios --password=nagiosdb --host=nagiosproddb1 --database=nagios
total
0
[nagios@nagiosprodxi1 debug]$ echo 'SELECT COUNT(*) AS total FROM nagios_servicestatus WHERE TRUE AND`active_checks_enabled`=1 AND (TIMESTAMPDIFF(SECOND,nagios_servicestatus.last_check,NOW()) < 900);' | mysql --user=nagios --password=nagiosdb --host=nagiosproddb1 --database=nagios
total
7268
[nagios@nagiosprodxi1 debug]$