Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
univention-pkg-icinga
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
packaging
univention-pkg-icinga
Commits
b64d2902
Commit
b64d2902
authored
Jun 18, 2012
by
Alexander Wirt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Imported Upstream version 1.7.1
parent
c3664d6b
Changes
245
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
245 changed files
with
3282 additions
and
3596 deletions
+3282
-3596
Changelog
Changelog
+20
-0
Changelog_json
Changelog_json
+4
-0
Makefile.in
Makefile.in
+2
-1
README.RHEL.idoutils
README.RHEL.idoutils
+1
-1
THANKS
THANKS
+3
-0
base/utils.c
base/utils.c
+4
-0
cgi/extinfo.c
cgi/extinfo.c
+7
-7
cgi/notifications.c
cgi/notifications.c
+2
-2
cgi/outages.c
cgi/outages.c
+2
-2
cgi/status.c
cgi/status.c
+66
-52
cgi/summary.c
cgi/summary.c
+4
-4
common/downtime.c
common/downtime.c
+4
-1
configure
configure
+162
-173
configure.in
configure.in
+3
-3
contrib/eventhandlers/redundancy-scenario1/handle-master-proc-event
...enthandlers/redundancy-scenario1/handle-master-proc-event
+1
-1
daemon-init.in
daemon-init.in
+8
-6
docbook/de/cgiparams.xml
docbook/de/cgiparams.xml
+5
-4
docbook/de/cgis.xml
docbook/de/cgis.xml
+0
-60
docbook/de/configcgi.xml
docbook/de/configcgi.xml
+0
-35
docbook/de/perfgraphs.xml
docbook/de/perfgraphs.xml
+12
-30
docbook/de/quickstart-idoutils-freebsd.xml
docbook/de/quickstart-idoutils-freebsd.xml
+2
-2
docbook/de/quickstart-idoutils.xml
docbook/de/quickstart-idoutils.xml
+2
-2
docbook/en/cgis.xml
docbook/en/cgis.xml
+0
-73
docbook/en/configcgi.xml
docbook/en/configcgi.xml
+0
-35
docbook/en/perfgraphs.xml
docbook/en/perfgraphs.xml
+10
-4
docbook/en/quickstart-idoutils-freebsd.xml
docbook/en/quickstart-idoutils-freebsd.xml
+2
-2
docbook/en/quickstart-idoutils.xml
docbook/en/quickstart-idoutils.xml
+2
-2
html/docs/de/about.html
html/docs/de/about.html
+6
-6
html/docs/de/activechecks.html
html/docs/de/activechecks.html
+2
-2
html/docs/de/adaptive.html
html/docs/de/adaptive.html
+2
-2
html/docs/de/addons.html
html/docs/de/addons.html
+25
-25
html/docs/de/beginners.html
html/docs/de/beginners.html
+1
-1
html/docs/de/cachedchecks.html
html/docs/de/cachedchecks.html
+2
-2
html/docs/de/cgiauth.html
html/docs/de/cgiauth.html
+8
-8
html/docs/de/cgicmd.html
html/docs/de/cgicmd.html
+1
-1
html/docs/de/cgiincludes.html
html/docs/de/cgiincludes.html
+1
-1
html/docs/de/cgiparams.html
html/docs/de/cgiparams.html
+111
-110
html/docs/de/cgis.html
html/docs/de/cgis.html
+15
-59
html/docs/de/cgisecurity.html
html/docs/de/cgisecurity.html
+5
-5
html/docs/de/ch03.html
html/docs/de/ch03.html
+15
-15
html/docs/de/ch12.html
html/docs/de/ch12.html
+18
-18
html/docs/de/checkscheduling.html
html/docs/de/checkscheduling.html
+14
-14
html/docs/de/clusters.html
html/docs/de/clusters.html
+1
-1
html/docs/de/components.html
html/docs/de/components.html
+10
-10
html/docs/de/config.html
html/docs/de/config.html
+1
-1
html/docs/de/configcgi.html
html/docs/de/configcgi.html
+59
-86
html/docs/de/configido.html
html/docs/de/configido.html
+94
-94
html/docs/de/configmain.html
html/docs/de/configmain.html
+133
-133
html/docs/de/configobject.html
html/docs/de/configobject.html
+5
-5
html/docs/de/customobjectvars.html
html/docs/de/customobjectvars.html
+2
-2
html/docs/de/db_changes.html
html/docs/de/db_changes.html
+1
-1
html/docs/de/db_intro.html
html/docs/de/db_intro.html
+8
-8
html/docs/de/db_model.html
html/docs/de/db_model.html
+76
-76
html/docs/de/dependencies.html
html/docs/de/dependencies.html
+2
-2
html/docs/de/dependencychecks.html
html/docs/de/dependencychecks.html
+1
-1
html/docs/de/distributed.html
html/docs/de/distributed.html
+1
-1
html/docs/de/downtime.html
html/docs/de/downtime.html
+2
-2
html/docs/de/embeddedperl.html
html/docs/de/embeddedperl.html
+1
-1
html/docs/de/epnplugins.html
html/docs/de/epnplugins.html
+1
-1
html/docs/de/escalation_condition.html
html/docs/de/escalation_condition.html
+1
-1
html/docs/de/escalations.html
html/docs/de/escalations.html
+1
-1
html/docs/de/eventhandlers.html
html/docs/de/eventhandlers.html
+2
-2
html/docs/de/example-configs.html
html/docs/de/example-configs.html
+6
-6
html/docs/de/extcommands.html
html/docs/de/extcommands.html
+1
-1
html/docs/de/extcommands2.html
html/docs/de/extcommands2.html
+159
-159
html/docs/de/faststartup.html
html/docs/de/faststartup.html
+7
-7
html/docs/de/flapping.html
html/docs/de/flapping.html
+1
-1
html/docs/de/freshness.html
html/docs/de/freshness.html
+1
-1
html/docs/de/hostchecks.html
html/docs/de/hostchecks.html
+1
-1
html/docs/de/howtos.html
html/docs/de/howtos.html
+16
-16
html/docs/de/icinga-api.html
html/docs/de/icinga-api.html
+2
-2
html/docs/de/icinga-web-api.html
html/docs/de/icinga-web-api.html
+1
-1
html/docs/de/icinga-web-config.html
html/docs/de/icinga-web-config.html
+7
-7
html/docs/de/icinga-web-introduction.html
html/docs/de/icinga-web-introduction.html
+30
-30
html/docs/de/icinga-web-pnp.html
html/docs/de/icinga-web-pnp.html
+2
-2
html/docs/de/icinga-web-scratch.html
html/docs/de/icinga-web-scratch.html
+2
-2
html/docs/de/icingastats.html
html/docs/de/icingastats.html
+1
-1
html/docs/de/index.html
html/docs/de/index.html
+99
-99
html/docs/de/int-mklivestatus.html
html/docs/de/int-mklivestatus.html
+2
-2
html/docs/de/int-snmptrap.html
html/docs/de/int-snmptrap.html
+1
-1
html/docs/de/int-tcpwrappers.html
html/docs/de/int-tcpwrappers.html
+1
-1
html/docs/de/integration.html
html/docs/de/integration.html
+1
-1
html/docs/de/ix01.html
html/docs/de/ix01.html
+1
-6
html/docs/de/largeinstalltweaks.html
html/docs/de/largeinstalltweaks.html
+1
-1
html/docs/de/macrolist.html
html/docs/de/macrolist.html
+306
-306
html/docs/de/macros.html
html/docs/de/macros.html
+1
-1
html/docs/de/modified_attr.html
html/docs/de/modified_attr.html
+2
-2
html/docs/de/monitoring-linux.html
html/docs/de/monitoring-linux.html
+2
-2
html/docs/de/monitoring-netware.html
html/docs/de/monitoring-netware.html
+2
-2
html/docs/de/monitoring-overview.html
html/docs/de/monitoring-overview.html
+1
-1
html/docs/de/monitoring-printers.html
html/docs/de/monitoring-printers.html
+2
-2
html/docs/de/monitoring-publicservices.html
html/docs/de/monitoring-publicservices.html
+2
-2
html/docs/de/monitoring-routers.html
html/docs/de/monitoring-routers.html
+2
-2
html/docs/de/monitoring-windows.html
html/docs/de/monitoring-windows.html
+3
-3
html/docs/de/networkreachability.html
html/docs/de/networkreachability.html
+2
-2
html/docs/de/notifications.html
html/docs/de/notifications.html
+4
-4
html/docs/de/notifications2.html
html/docs/de/notifications2.html
+1
-1
html/docs/de/nrpe.html
html/docs/de/nrpe.html
+4
-4
html/docs/de/nsca.html
html/docs/de/nsca.html
+3
-3
html/docs/de/objectdefinitions.html
html/docs/de/objectdefinitions.html
+46
-46
html/docs/de/objectinheritance.html
html/docs/de/objectinheritance.html
+6
-6
html/docs/de/objecttricks.html
html/docs/de/objecttricks.html
+11
-11
html/docs/de/oncallrotation.html
html/docs/de/oncallrotation.html
+1
-1
html/docs/de/passivechecks.html
html/docs/de/passivechecks.html
+1
-1
html/docs/de/passivestatetranslation.html
html/docs/de/passivestatetranslation.html
+1
-1
html/docs/de/perfdata.html
html/docs/de/perfdata.html
+2
-2
html/docs/de/perfgraphs.html
html/docs/de/perfgraphs.html
+20
-42
html/docs/de/pluginapi.html
html/docs/de/pluginapi.html
+1
-1
html/docs/de/plugins.html
html/docs/de/plugins.html
+5
-5
html/docs/de/quickstart-icinga-freebsd.html
html/docs/de/quickstart-icinga-freebsd.html
+1
-1
html/docs/de/quickstart-icinga.html
html/docs/de/quickstart-icinga.html
+2
-2
html/docs/de/quickstart-idoutils-freebsd.html
html/docs/de/quickstart-idoutils-freebsd.html
+4
-4
html/docs/de/quickstart-idoutils.html
html/docs/de/quickstart-idoutils.html
+4
-4
html/docs/de/quickstart.html
html/docs/de/quickstart.html
+3
-3
html/docs/de/recurring_downtimes.html
html/docs/de/recurring_downtimes.html
+2
-2
html/docs/de/redundancy.html
html/docs/de/redundancy.html
+4
-4
html/docs/de/reporting_1.6.html
html/docs/de/reporting_1.6.html
+2
-2
html/docs/de/security.html
html/docs/de/security.html
+1
-1
html/docs/de/servicechecks.html
html/docs/de/servicechecks.html
+1
-1
html/docs/de/stalking.html
html/docs/de/stalking.html
+1
-1
html/docs/de/startstop.html
html/docs/de/startstop.html
+3
-3
html/docs/de/statetypes.html
html/docs/de/statetypes.html
+1
-1
html/docs/de/temp_data.html
html/docs/de/temp_data.html
+4
-4
html/docs/de/timeperiods.html
html/docs/de/timeperiods.html
+1
-1
html/docs/de/tuning.html
html/docs/de/tuning.html
+1
-1
html/docs/de/upgrading.html
html/docs/de/upgrading.html
+6
-6
html/docs/de/upgrading_icingaweb.html
html/docs/de/upgrading_icingaweb.html
+4
-4
html/docs/de/upgrading_idoutils.html
html/docs/de/upgrading_idoutils.html
+1
-1
html/docs/de/verifyconfig.html
html/docs/de/verifyconfig.html
+5
-5
html/docs/de/volatileservices.html
html/docs/de/volatileservices.html
+1
-1
html/docs/de/whatsnew.html
html/docs/de/whatsnew.html
+1
-1
html/docs/en/about.html
html/docs/en/about.html
+6
-6
html/docs/en/activechecks.html
html/docs/en/activechecks.html
+2
-2
html/docs/en/adaptive.html
html/docs/en/adaptive.html
+2
-2
html/docs/en/addons.html
html/docs/en/addons.html
+25
-25
html/docs/en/beginners.html
html/docs/en/beginners.html
+1
-1
html/docs/en/cachedchecks.html
html/docs/en/cachedchecks.html
+2
-2
html/docs/en/cgiauth.html
html/docs/en/cgiauth.html
+8
-8
html/docs/en/cgicmd.html
html/docs/en/cgicmd.html
+1
-1
html/docs/en/cgiincludes.html
html/docs/en/cgiincludes.html
+1
-1
html/docs/en/cgiparams.html
html/docs/en/cgiparams.html
+106
-106
html/docs/en/cgis.html
html/docs/en/cgis.html
+15
-69
html/docs/en/cgisecurity.html
html/docs/en/cgisecurity.html
+5
-5
html/docs/en/ch03.html
html/docs/en/ch03.html
+15
-15
html/docs/en/ch12.html
html/docs/en/ch12.html
+18
-18
html/docs/en/checkscheduling.html
html/docs/en/checkscheduling.html
+14
-14
html/docs/en/clusters.html
html/docs/en/clusters.html
+1
-1
html/docs/en/config.html
html/docs/en/config.html
+1
-1
html/docs/en/configcgi.html
html/docs/en/configcgi.html
+60
-87
html/docs/en/configido.html
html/docs/en/configido.html
+94
-94
html/docs/en/configmain.html
html/docs/en/configmain.html
+138
-138
html/docs/en/configobject.html
html/docs/en/configobject.html
+5
-5
html/docs/en/customobjectvars.html
html/docs/en/customobjectvars.html
+2
-2
html/docs/en/db_changes.html
html/docs/en/db_changes.html
+1
-1
html/docs/en/db_components.html
html/docs/en/db_components.html
+10
-10
html/docs/en/db_example-configs.html
html/docs/en/db_example-configs.html
+6
-6
html/docs/en/db_intro.html
html/docs/en/db_intro.html
+8
-8
html/docs/en/db_model.html
html/docs/en/db_model.html
+76
-76
html/docs/en/dependencies.html
html/docs/en/dependencies.html
+2
-2
html/docs/en/dependencychecks.html
html/docs/en/dependencychecks.html
+1
-1
html/docs/en/distributed.html
html/docs/en/distributed.html
+1
-1
html/docs/en/downtime.html
html/docs/en/downtime.html
+1
-1
html/docs/en/embeddedperl.html
html/docs/en/embeddedperl.html
+1
-1
html/docs/en/epnplugins.html
html/docs/en/epnplugins.html
+1
-1
html/docs/en/escalation_condition.html
html/docs/en/escalation_condition.html
+1
-1
html/docs/en/escalations.html
html/docs/en/escalations.html
+1
-1
html/docs/en/eventhandlers.html
html/docs/en/eventhandlers.html
+2
-2
html/docs/en/extcommands2.html
html/docs/en/extcommands2.html
+160
-160
html/docs/en/faststartup.html
html/docs/en/faststartup.html
+6
-6
html/docs/en/flapping.html
html/docs/en/flapping.html
+1
-1
html/docs/en/freshness.html
html/docs/en/freshness.html
+1
-1
html/docs/en/hostchecks.html
html/docs/en/hostchecks.html
+1
-1
html/docs/en/howtos.html
html/docs/en/howtos.html
+14
-14
html/docs/en/icinga-api.html
html/docs/en/icinga-api.html
+2
-2
html/docs/en/icinga-web-api.html
html/docs/en/icinga-web-api.html
+1
-1
html/docs/en/icinga-web-config.html
html/docs/en/icinga-web-config.html
+7
-7
html/docs/en/icinga-web-introduction.html
html/docs/en/icinga-web-introduction.html
+29
-29
html/docs/en/icinga-web-pnp.html
html/docs/en/icinga-web-pnp.html
+2
-2
html/docs/en/icinga-web-scratch.html
html/docs/en/icinga-web-scratch.html
+3
-3
html/docs/en/icingastats.html
html/docs/en/icingastats.html
+1
-1
html/docs/en/index.html
html/docs/en/index.html
+99
-99
html/docs/en/int-mklivestatus.html
html/docs/en/int-mklivestatus.html
+2
-2
html/docs/en/int-snmptrap.html
html/docs/en/int-snmptrap.html
+1
-1
html/docs/en/int-tcpwrappers.html
html/docs/en/int-tcpwrappers.html
+1
-1
html/docs/en/integration.html
html/docs/en/integration.html
+1
-1
html/docs/en/ix01.html
html/docs/en/ix01.html
+1
-6
html/docs/en/largeinstalltweaks.html
html/docs/en/largeinstalltweaks.html
+1
-1
html/docs/en/macrolist.html
html/docs/en/macrolist.html
+306
-306
html/docs/en/macros.html
html/docs/en/macros.html
+1
-1
html/docs/en/modified_attr.html
html/docs/en/modified_attr.html
+2
-2
html/docs/en/monitoring-linux.html
html/docs/en/monitoring-linux.html
+1
-1
html/docs/en/monitoring-netware.html
html/docs/en/monitoring-netware.html
+1
-1
html/docs/en/monitoring-overview.html
html/docs/en/monitoring-overview.html
+1
-1
html/docs/en/monitoring-printers.html
html/docs/en/monitoring-printers.html
+1
-1
html/docs/en/monitoring-publicservices.html
html/docs/en/monitoring-publicservices.html
+1
-1
html/docs/en/monitoring-routers.html
html/docs/en/monitoring-routers.html
+1
-1
html/docs/en/monitoring-windows.html
html/docs/en/monitoring-windows.html
+2
-2
html/docs/en/networkreachability.html
html/docs/en/networkreachability.html
+2
-2
html/docs/en/notifications.html
html/docs/en/notifications.html
+4
-4
html/docs/en/notifications2.html
html/docs/en/notifications2.html
+1
-1
html/docs/en/nrpe.html
html/docs/en/nrpe.html
+4
-4
html/docs/en/nsca.html
html/docs/en/nsca.html
+3
-3
html/docs/en/objectdefinitions.html
html/docs/en/objectdefinitions.html
+46
-46
html/docs/en/objectinheritance.html
html/docs/en/objectinheritance.html
+7
-7
html/docs/en/objecttricks.html
html/docs/en/objecttricks.html
+11
-11
html/docs/en/oncallrotation.html
html/docs/en/oncallrotation.html
+1
-1
html/docs/en/passivechecks.html
html/docs/en/passivechecks.html
+1
-1
html/docs/en/passivestatetranslation.html
html/docs/en/passivestatetranslation.html
+1
-1
html/docs/en/perfdata.html
html/docs/en/perfdata.html
+2
-2
html/docs/en/perfgraphs.html
html/docs/en/perfgraphs.html
+17
-14
html/docs/en/pluginapi.html
html/docs/en/pluginapi.html
+1
-1
html/docs/en/plugins.html
html/docs/en/plugins.html
+4
-4
html/docs/en/quickstart-icinga-freebsd.html
html/docs/en/quickstart-icinga-freebsd.html
+1
-1
html/docs/en/quickstart-icinga.html
html/docs/en/quickstart-icinga.html
+1
-1
html/docs/en/quickstart-idoutils-freebsd.html
html/docs/en/quickstart-idoutils-freebsd.html
+4
-4
html/docs/en/quickstart-idoutils.html
html/docs/en/quickstart-idoutils.html
+4
-4
html/docs/en/quickstart.html
html/docs/en/quickstart.html
+2
-2
html/docs/en/recurring_downtimes.html
html/docs/en/recurring_downtimes.html
+1
-1
html/docs/en/redundancy.html
html/docs/en/redundancy.html
+3
-3
html/docs/en/reporting_1.6.html
html/docs/en/reporting_1.6.html
+2
-2
html/docs/en/security.html
html/docs/en/security.html
+1
-1
html/docs/en/servicechecks.html
html/docs/en/servicechecks.html
+1
-1
html/docs/en/stalking.html
html/docs/en/stalking.html
+1
-1
html/docs/en/startstop.html
html/docs/en/startstop.html
+3
-3
html/docs/en/statetypes.html
html/docs/en/statetypes.html
+1
-1
html/docs/en/temp_data.html
html/docs/en/temp_data.html
+4
-4
html/docs/en/timeperiods.html
html/docs/en/timeperiods.html
+1
-1
html/docs/en/tuning.html
html/docs/en/tuning.html
+1
-1
html/docs/en/upgrading.html
html/docs/en/upgrading.html
+6
-6
html/docs/en/upgrading_icingaweb.html
html/docs/en/upgrading_icingaweb.html
+4
-4
html/docs/en/upgrading_idoutils.html
html/docs/en/upgrading_idoutils.html
+1
-1
html/docs/en/verifyconfig.html
html/docs/en/verifyconfig.html
+5
-5
html/docs/en/volatileservices.html
html/docs/en/volatileservices.html
+1
-1
html/docs/en/whatsnew.html
html/docs/en/whatsnew.html
+1
-1
html/main.html
html/main.html
+3
-3
icinga.spec
icinga.spec
+1
-1
include/cgiutils.h
include/cgiutils.h
+1
-1
include/common.h
include/common.h
+2
-2
module/idoutils/config/ido2db_check_proc.cfg
module/idoutils/config/ido2db_check_proc.cfg
+30
-1
module/idoutils/db/scripts/upgradedb.in
module/idoutils/db/scripts/upgradedb.in
+3
-3
module/idoutils/include/common.h
module/idoutils/include/common.h
+2
-2
module/idoutils/src/db.c
module/idoutils/src/db.c
+9
-2
rc.ido2db.in
rc.ido2db.in
+6
-2
solaris/icinga.xml.in
solaris/icinga.xml.in
+1
-1
update-version
update-version
+2
-2
No files found.
Changelog
View file @
b64d2902
...
...
@@ -4,6 +4,26 @@ Icinga 1.7.x Change Log
Thanks to all contributers, testers and developers. Please read AUTHORS and THANKS for a detailed list :-)
1.7.1 - 18/06/2012
FIXES
* core: use prefix in solaris service definition #2609 - TD/CF
* core: fix various memory leaks in downtime eventhandling on SIGHUP (Carlos Velasco) #2666 - MF
* classic ui: Fixed status.cgi time out when displaying hostgroups in large environments #2617 - RB
* classic ui: Fixed Invalid JSON output for hostgroup overview (Torsten Rehn) #2680 - RB
* classic ui: Fixed Confusing use of display_name in JSON and CSV output (Torsten Rehn) #2681 - RB
* classic ui: Fixed wrong totals in "Service Status Summary" on Status Summary page (Mark Ziesemer) #2689 - RB
* idoutils: fix small compiler issues #2620 - TD/CF
* idoutils: fix upgradedb script typos & past changes #2682 - MF
* config: check_ido2db_procs.cfg should not depend on local-service template #2616 - MF
* install: adapt lsb headers for icinga and ido2db #2637 - MF
* install: fix typo in contrib/eventhandlers/redundancy-scenario1/handle-master-proc-event (thanks uosiu) #2671 - MF
1.7.0 - 15/05/2012
!!! ATTENTION !!!
...
...
Changelog_json
View file @
b64d2902
...
...
@@ -2,6 +2,10 @@
Classic-UI JSON Change Log
#######################
1.7.1 - only values added, no existing values changed
* added host_display_name to host and service status data
* added service_display_name to service status data
1.7.0 - array names changed!!!! #2343
comments -> host_comments / service_comments
downtimes -> host_downtimes / service_downtimes
...
...
Makefile.in
View file @
b64d2902
...
...
@@ -78,7 +78,7 @@ MKDIR=/bin/mkdir
###############################
# Global
###############################
ICINGA_VERSION
=
1.7.
0
ICINGA_VERSION
=
1.7.
1
CP
=
@CP@
...
...
@@ -271,6 +271,7 @@ distclean: clean
rm
-f
Makefile subst p1.pl
rm
-f
config.log config.status config.cache
rm
-f
t/var/objects.precache.generated t/var/objects.precache
rm
-f
solaris/icinga.xml
devclean
:
distclean
...
...
README.RHEL.idoutils
View file @
b64d2902
...
...
@@ -51,7 +51,7 @@ Create Database, User, Grants
mysql> CREATE DATABASE icinga;
Query OK, 1 row affected (0.01 sec)
mysql> GRANT USAGE ON
*
.* TO 'icinga'@'localhost'
mysql> GRANT USAGE ON
icinga
.* TO 'icinga'@'localhost'
IDENTIFIED BY 'icinga'
WITH MAX_QUERIES_PER_HOUR 0
MAX_CONNECTIONS_PER_HOUR 0
...
...
THANKS
View file @
b64d2902
...
...
@@ -241,6 +241,7 @@ in various ways. If we missed your name, let us know.
* Joachim Raber
* Alain Radix
* Kenneth Ray
* Torsten Rehn
* Nick Reinking
* Rob Remus
* Alessandro Ren
...
...
@@ -315,6 +316,7 @@ in various ways. If we missed your name, let us know.
* Esteban Manchado Velazquez
* Geert Vanderkelen
* Jan Vejvalka
* Carlos Velasco
* Robert August Vincent II
* Dave Viner
* Ton Voon
...
...
@@ -337,6 +339,7 @@ in various ways. If we missed your name, let us know.
* Cliff Woolley
* Mitch Wright
* Jason Young
* Mark Ziesemer
* Michal Zimen
* Dennis van Zuijlekom
* Pawel Zuzelski
base/utils.c
View file @
b64d2902
...
...
@@ -4264,6 +4264,8 @@ void free_memory(icinga_macros *mac) {
/* free memory for the high priority event list */
this_event
=
event_list_high
;
while
(
this_event
!=
NULL
)
{
if
(
this_event
->
event_type
==
EVENT_SCHEDULED_DOWNTIME
)
my_free
(
this_event
->
event_data
);
next_event
=
this_event
->
next
;
my_free
(
this_event
);
this_event
=
next_event
;
...
...
@@ -4275,6 +4277,8 @@ void free_memory(icinga_macros *mac) {
/* free memory for the low priority event list */
this_event
=
event_list_low
;
while
(
this_event
!=
NULL
)
{
if
(
this_event
->
event_type
==
EVENT_SCHEDULED_DOWNTIME
)
my_free
(
this_event
->
event_data
);
next_event
=
this_event
->
next
;
my_free
(
this_event
);
this_event
=
next_event
;
...
...
cgi/extinfo.c
View file @
b64d2902
...
...
@@ -3056,9 +3056,9 @@ void show_comments(int type) {
printf
(
"
\"
expires
\"
:
\"
%s
\"
}"
,
expire_time
);
}
else
if
(
content_type
==
CSV_CONTENT
)
{
if
(
display_type
==
DISPLAY_COMMENTS
)
{
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
(
temp_host
->
display_name
!=
NULL
)
?
temp_host
->
display_name
:
temp_host
->
name
,
csv_data_enclosure
,
csv_delimiter
);
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
temp_host
->
name
,
csv_data_enclosure
,
csv_delimiter
);
if
(
type
==
SERVICE_COMMENT
)
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
(
temp_service
->
display_name
!=
NULL
)
?
temp_service
->
display_name
:
temp_service
->
description
,
csv_data_enclosure
,
csv_delimiter
);
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
temp_service
->
description
,
csv_data_enclosure
,
csv_delimiter
);
else
printf
(
"%s%s%s"
,
csv_data_enclosure
,
csv_data_enclosure
,
csv_delimiter
);
}
...
...
@@ -3246,9 +3246,9 @@ void show_downtime(int type) {
}
}
else
if
(
content_type
==
CSV_CONTENT
)
{
if
(
display_type
==
DISPLAY_DOWNTIME
)
{
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
(
temp_host
->
display_name
!=
NULL
)
?
temp_host
->
display_name
:
temp_host
->
name
,
csv_data_enclosure
,
csv_delimiter
);
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
temp_host
->
name
,
csv_data_enclosure
,
csv_delimiter
);
if
(
type
==
SERVICE_DOWNTIME
)
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
(
temp_service
->
display_name
!=
NULL
)
?
temp_service
->
display_name
:
temp_service
->
description
,
csv_data_enclosure
,
csv_delimiter
);
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
temp_service
->
description
,
csv_data_enclosure
,
csv_delimiter
);
else
printf
(
"%s%s%s"
,
csv_data_enclosure
,
csv_data_enclosure
,
csv_delimiter
);
}
...
...
@@ -3529,14 +3529,14 @@ void show_scheduling_queue(void) {
/* host name */
if
(
temp_host
!=
NULL
)
snprintf
(
display_host
,
sizeof
(
display_host
)
-
1
,
"%s"
,
(
temp_host
->
display_name
!=
NULL
)
?
temp_host
->
display_name
:
temp_host
->
name
);
snprintf
(
display_host
,
sizeof
(
display_host
)
-
1
,
"%s"
,
(
temp_host
->
display_name
!=
NULL
&&
content_type
==
HTML_CONTENT
)
?
temp_host
->
display_name
:
temp_host
->
name
);
else
snprintf
(
display_host
,
sizeof
(
display_host
)
-
1
,
"%s"
,
temp_svcstatus
->
host_name
);
display_host
[
sizeof
(
display_host
)
-
1
]
=
'\x0'
;
/* service name */
if
(
temp_service
!=
NULL
)
snprintf
(
display_service
,
sizeof
(
display_service
)
-
1
,
"%s"
,
(
temp_service
->
display_name
!=
NULL
)
?
temp_service
->
display_name
:
temp_svcstatus
->
description
);
snprintf
(
display_service
,
sizeof
(
display_service
)
-
1
,
"%s"
,
(
temp_service
->
display_name
!=
NULL
&&
content_type
==
HTML_CONTENT
)
?
temp_service
->
display_name
:
temp_svcstatus
->
description
);
else
snprintf
(
display_service
,
sizeof
(
display_service
)
-
1
,
"%s"
,
temp_svcstatus
->
description
);
display_service
[
sizeof
(
display_service
)
-
1
]
=
'\x0'
;
...
...
@@ -3595,7 +3595,7 @@ void show_scheduling_queue(void) {
/* host name*/
if
(
temp_host
!=
NULL
)
snprintf
(
display_host
,
sizeof
(
display_host
)
-
1
,
"%s"
,
(
temp_host
->
display_name
!=
NULL
)
?
temp_host
->
display_name
:
temp_host
->
name
);
snprintf
(
display_host
,
sizeof
(
display_host
)
-
1
,
"%s"
,
(
temp_host
->
display_name
!=
NULL
&&
content_type
==
HTML_CONTENT
)
?
temp_host
->
display_name
:
temp_host
->
name
);
else
snprintf
(
display_host
,
sizeof
(
display_host
)
-
1
,
"%s"
,
temp_hststatus
->
host_name
);
display_host
[
sizeof
(
display_host
)
-
1
]
=
'\x0'
;
...
...
cgi/notifications.c
View file @
b64d2902
...
...
@@ -634,7 +634,7 @@ void display_notifications(void) {
temp_service
=
find_service
(
host_name
,
service_name
);
if
(
temp_host
!=
NULL
)
{
snprintf
(
displayed_host_name
,
sizeof
(
displayed_host_name
),
"%s"
,
(
temp_host
->
display_name
!=
NULL
)
?
temp_host
->
display_name
:
temp_host
->
name
);
snprintf
(
displayed_host_name
,
sizeof
(
displayed_host_name
),
"%s"
,
(
temp_host
->
display_name
!=
NULL
&&
content_type
==
HTML_CONTENT
)
?
temp_host
->
display_name
:
temp_host
->
name
);
displayed_host_name
[
sizeof
(
displayed_host_name
)
-
1
]
=
'\x0'
;
if
(
temp_entry
->
type
==
LOGENTRY_HOST_NOTIFICATION
)
{
...
...
@@ -642,7 +642,7 @@ void display_notifications(void) {
show_entry
=
FALSE
;
}
else
{
if
(
temp_service
!=
NULL
)
{
snprintf
(
displayed_service_desc
,
sizeof
(
displayed_service_desc
),
"%s"
,
(
temp_service
->
display_name
!=
NULL
)
?
temp_service
->
display_name
:
temp_service
->
description
);
snprintf
(
displayed_service_desc
,
sizeof
(
displayed_service_desc
),
"%s"
,
(
temp_service
->
display_name
!=
NULL
&&
content_type
==
HTML_CONTENT
)
?
temp_service
->
display_name
:
temp_service
->
description
);
displayed_service_desc
[
sizeof
(
displayed_service_desc
)
-
1
]
=
'\x0'
;
if
(
is_authorized_for_service
(
temp_service
,
&
current_authdata
)
==
FALSE
)
...
...
cgi/outages.c
View file @
b64d2902
...
...
@@ -369,11 +369,11 @@ void display_network_outages(void) {
printf
(
",
\n
"
);
json_start
=
FALSE
;
printf
(
"{
\"
severity
\"
: %d, "
,
temp_hostoutage
->
severity
);
printf
(
"
\"
host
\"
:
\"
%s
\"
, "
,
(
temp_hostoutage
->
hst
->
display_name
!=
NULL
)
?
json_encode
(
temp_hostoutage
->
hst
->
display_name
)
:
json_encode
(
temp_hostoutage
->
hst
->
name
));
printf
(
"
\"
host
\"
:
\"
%s
\"
, "
,
json_encode
(
temp_hostoutage
->
hst
->
name
));
printf
(
"
\"
state
\"
:
\"
%s
\"
, "
,
status
);
}
else
if
(
content_type
==
CSV_CONTENT
)
{
printf
(
"%s%d%s%s"
,
csv_data_enclosure
,
temp_hostoutage
->
severity
,
csv_data_enclosure
,
csv_delimiter
);
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
(
temp_hostoutage
->
hst
->
display_name
!=
NULL
)
?
temp_hostoutage
->
hst
->
display_name
:
temp_hostoutage
->
hst
->
name
,
csv_data_enclosure
,
csv_delimiter
);
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
temp_hostoutage
->
hst
->
name
,
csv_data_enclosure
,
csv_delimiter
);
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
status
,
csv_data_enclosure
,
csv_delimiter
);
}
else
{
printf
(
"<TR CLASS='%s'>
\n
"
,
bg_class
);
...
...
cgi/status.c
View file @
b64d2902
...
...
@@ -124,6 +124,7 @@ extern servicestatus *servicestatus_list;
#define STATUS_COUNTED_UNFILTERED 2
#define STATUS_COUNTED_FILTERED 4
#define STATUS_BELONGS_TO_SG 8
#define STATUS_BELONGS_TO_HG 16
/** @} */
/** @name NUMBER OF NAMED OBJECTS
...
...
@@ -571,6 +572,7 @@ int main(void) {
hoststatus
*
temp_hoststatus
=
NULL
;
servicestatus
*
temp_servicestatus
=
NULL
;
servicesmember
*
temp_sg_member
=
NULL
;
hostsmember
*
temp_hg_member
=
NULL
;
int
regex_i
=
0
,
i
=
0
;
int
len
;
int
show_dropdown
=
NO_STATUS
;
...
...
@@ -901,9 +903,11 @@ int main(void) {
if
(
temp_servicegroup
!=
NULL
&&
is_authorized_for_servicegroup
(
temp_servicegroup
,
&
current_authdata
)
==
TRUE
)
{
for
(
temp_sg_member
=
temp_servicegroup
->
members
;
temp_sg_member
!=
NULL
;
temp_sg_member
=
temp_sg_member
->
next
)
{
temp_hoststatus
=
find_hoststatus
(
temp_sg_member
->
host_name
);
temp_hoststatus
->
added
|=
STATUS_BELONGS_TO_SG
;
if
(
temp_hoststatus
!=
NULL
)
temp_hoststatus
->
added
|=
STATUS_BELONGS_TO_SG
;
temp_servicestatus
=
find_servicestatus
(
temp_sg_member
->
host_name
,
temp_sg_member
->
service_description
);
temp_servicestatus
->
added
|=
STATUS_BELONGS_TO_SG
;
if
(
temp_servicestatus
!=
NULL
)
temp_servicestatus
->
added
|=
STATUS_BELONGS_TO_SG
;
}
}
}
...
...
@@ -912,15 +916,42 @@ int main(void) {
if
(
is_authorized_for_servicegroup
(
temp_servicegroup
,
&
current_authdata
)
==
TRUE
)
{
for
(
temp_sg_member
=
temp_servicegroup
->
members
;
temp_sg_member
!=
NULL
;
temp_sg_member
=
temp_sg_member
->
next
)
{
temp_hoststatus
=
find_hoststatus
(
temp_sg_member
->
host_name
);
temp_hoststatus
->
added
|=
STATUS_BELONGS_TO_SG
;
if
(
temp_hoststatus
!=
NULL
)
temp_hoststatus
->
added
|=
STATUS_BELONGS_TO_SG
;
temp_servicestatus
=
find_servicestatus
(
temp_sg_member
->
host_name
,
temp_sg_member
->
service_description
);
temp_servicestatus
->
added
|=
STATUS_BELONGS_TO_SG
;
if
(
temp_servicestatus
!=
NULL
)
temp_servicestatus
->
added
|=
STATUS_BELONGS_TO_SG
;
}
}
}
}
}
/* pre filter for all host groups as well */
if
(
display_type
==
DISPLAY_HOSTGROUPS
)
{
if
(
show_all_hostgroups
==
FALSE
)
{
for
(
i
=
0
;
req_hostgroups
[
i
].
entry
!=
NULL
;
i
++
)
{
temp_hostgroup
=
find_hostgroup
(
req_hostgroups
[
i
].
entry
);
if
(
temp_hostgroup
!=
NULL
&&
(
show_partial_hostgroups
==
TRUE
||
is_authorized_for_hostgroup
(
temp_hostgroup
,
&
current_authdata
)
==
TRUE
))
{
for
(
temp_hg_member
=
temp_hostgroup
->
members
;
temp_hg_member
!=
NULL
;
temp_hg_member
=
temp_hg_member
->
next
)
{
temp_hoststatus
=
find_hoststatus
(
temp_hg_member
->
host_name
);
if
(
temp_hoststatus
!=
NULL
)
temp_hoststatus
->
added
|=
STATUS_BELONGS_TO_HG
;
}
}
}
}
else
{
for
(
temp_hostgroup
=
hostgroup_list
;
temp_hostgroup
!=
NULL
;
temp_hostgroup
=
temp_hostgroup
->
next
)
{
if
(
show_partial_hostgroups
==
TRUE
||
is_authorized_for_hostgroup
(
temp_hostgroup
,
&
current_authdata
)
==
TRUE
)
{
for
(
temp_hg_member
=
temp_hostgroup
->
members
;
temp_hg_member
!=
NULL
;
temp_hg_member
=
temp_hg_member
->
next
)
{
temp_hoststatus
=
find_hoststatus
(
temp_hg_member
->
host_name
);
if
(
temp_hoststatus
!=
NULL
)
temp_hoststatus
->
added
|=
STATUS_BELONGS_TO_HG
;
}
}
}
}
}
/**
* Now iterate through servicestatus_list and hoststatus_list to find all hosts/services we need to display
...
...
@@ -988,27 +1019,7 @@ int main(void) {
/* see if we should display a hostgroup */
else
if
(
display_type
==
DISPLAY_HOSTGROUPS
)
{
found
=
FALSE
;
if
(
show_all_hostgroups
==
FALSE
)
{
for
(
i
=
0
;
req_hostgroups
[
i
].
entry
!=
NULL
;
i
++
)
{
temp_hostgroup
=
find_hostgroup
(
req_hostgroups
[
i
].
entry
);
if
(
temp_hostgroup
!=
NULL
&&
\
(
show_partial_hostgroups
==
TRUE
||
is_authorized_for_hostgroup
(
temp_hostgroup
,
&
current_authdata
)
==
TRUE
)
&&
\
is_host_member_of_hostgroup
(
temp_hostgroup
,
temp_host
)
==
TRUE
)
{
found
=
TRUE
;
break
;
}
}
}
else
{
for
(
temp_hostgroup
=
hostgroup_list
;
temp_hostgroup
!=
NULL
;
temp_hostgroup
=
temp_hostgroup
->
next
)
{
if
((
show_partial_hostgroups
==
TRUE
||
is_authorized_for_hostgroup
(
temp_hostgroup
,
&
current_authdata
)
==
TRUE
)
&&
\
is_host_member_of_hostgroup
(
temp_hostgroup
,
temp_host
)
==
TRUE
)
{
found
=
TRUE
;
break
;
}
}
}
if
(
found
==
FALSE
)
if
(
!
(
temp_hoststatus
->
added
&
STATUS_BELONGS_TO_HG
))
continue
;
}
...
...
@@ -1113,27 +1124,7 @@ int main(void) {
/* see if we should display a hostgroup */
else
if
(
display_type
==
DISPLAY_HOSTGROUPS
)
{
found
=
FALSE
;
if
(
show_all_hostgroups
==
FALSE
)
{
for
(
i
=
0
;
req_hostgroups
[
i
].
entry
!=
NULL
;
i
++
)
{
temp_hostgroup
=
find_hostgroup
(
req_hostgroups
[
i
].
entry
);
if
(
temp_hostgroup
!=
NULL
&&
\
(
show_partial_hostgroups
==
TRUE
||
is_authorized_for_hostgroup
(
temp_hostgroup
,
&
current_authdata
)
==
TRUE
)
&&
\
is_host_member_of_hostgroup
(
temp_hostgroup
,
temp_host
)
==
TRUE
)
{
found
=
TRUE
;
break
;
}
}
}
else
{
for
(
temp_hostgroup
=
hostgroup_list
;
temp_hostgroup
!=
NULL
;
temp_hostgroup
=
temp_hostgroup
->
next
)
{
if
((
show_partial_hostgroups
==
TRUE
||
is_authorized_for_hostgroup
(
temp_hostgroup
,
&
current_authdata
)
==
TRUE
)
&&
\
is_host_member_of_hostgroup
(
temp_hostgroup
,
temp_host
)
==
TRUE
)
{
found
=
TRUE
;
break
;
}
}
}
if
(
found
==
FALSE
)
if
(
!
(
temp_hoststatus
->
added
&
STATUS_BELONGS_TO_HG
))
continue
;
/* see if we should display a servicegroup */
...
...
@@ -2555,8 +2546,8 @@ void show_service_detail(void) {
if
(
json_start
==
FALSE
)
printf
(
",
\n
"
);
json_start
=
FALSE
;
printf
(
"{
\"
host
\"
:
\"
%s
\"
, "
,
(
temp_host
->
display_name
!=
NULL
)
?
json_encode
(
temp_host
->
display_name
)
:
json_encode
(
temp_host
->
name
));
printf
(
"
\"
service
\"
:
\"
%s
\"
, "
,
(
temp_service
->
display_name
!=
NULL
)
?
json_encode
(
temp_service
->
display_name
)
:
json_encode
(
temp_service
->
description
));
printf
(
"{
\"
host
\"
:
\"
%s
\"
, "
,
json_encode
(
temp_host
->
name
));
printf
(
"
\"
service
\"
:
\"
%s
\"
, "
,
json_encode
(
temp_service
->
description
));
printf
(
"
\"
status
\"
:
\"
%s
\"
, "
,
temp_status
->
status_string
);
printf
(
"
\"
last_check
\"
:
\"
%s
\"
, "
,
temp_status
->
last_check
);
printf
(
"
\"
duration
\"
:
\"
%s
\"
, "
,
temp_status
->
state_duration
);
...
...
@@ -2568,6 +2559,16 @@ void show_service_detail(void) {
printf
(
"
\"
notifications_enabled
\"
: %s, "
,
(
temp_status
->
notifications_enabled
==
TRUE
)
?
"true"
:
"false"
);
printf
(
"
\"
has_been_acknowledged
\"
: %s, "
,
(
temp_status
->
problem_has_been_acknowledged
==
TRUE
)
?
"true"
:
"false"
);
if
(
temp_host
->
display_name
==
NULL
)
printf
(
"
\"
host_display_name
\"
: null, "
);
else
printf
(
"
\"
host_display_name
\"
:
\"
%s
\"
, "
,
json_encode
(
temp_host
->
display_name
));
if
(
temp_service
->
display_name
==
NULL
)
printf
(
"
\"
service_display_name
\"
: null, "
);
else
printf
(
"
\"
service_display_name
\"
:
\"
%s
\"
, "
,
json_encode
(
temp_service
->
display_name
));
if
(
temp_status
->
plugin_output
==
NULL
)
printf
(
"
\"
status_information
\"
: null }"
);
else
...
...
@@ -2575,8 +2576,8 @@ void show_service_detail(void) {
/* print list in csv format */
}
else
if
(
content_type
==
CSV_CONTENT
)
{
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
(
temp_host
->
display_name
!=
NULL
)
?
temp_host
->
display_name
:
temp_host
->
name
,
csv_data_enclosure
,
csv_delimiter
);
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
(
temp_service
->
display_name
!=
NULL
)
?
temp_service
->
display_name
:
temp_service
->
description
,
csv_data_enclosure
,
csv_delimiter
);
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
temp_host
->
name
,
csv_data_enclosure
,
csv_delimiter
);
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
temp_service
->
description
,
csv_data_enclosure
,
csv_delimiter
);
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
temp_status
->
status_string
,
csv_data_enclosure
,
csv_delimiter
);
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
temp_status
->
last_check
,
csv_data_enclosure
,
csv_delimiter
);
...
...
@@ -2967,7 +2968,7 @@ void show_host_detail(void) {
if
(
json_start
==
FALSE
)
printf
(
",
\n
"
);
json_start
=
FALSE
;
printf
(
"{
\"
host
\"
:
\"
%s
\"
, "
,
(
temp_host
->
display_name
!=
NULL
)
?
json_encode
(
temp_host
->
display_name
)
:
json_encode
(
temp_host
->
name
));
printf
(
"{
\"
host
\"
:
\"
%s
\"
, "
,
json_encode
(
temp_host
->
name
));
printf
(
"
\"
status
\"
:
\"
%s
\"
, "
,
temp_statusdata
->
status_string
);
printf
(
"
\"
last_check
\"
:
\"
%s
\"
, "
,
temp_statusdata
->
last_check
);
printf
(
"
\"
duration
\"
:
\"
%s
\"
, "
,
temp_statusdata
->
state_duration
);
...
...
@@ -2979,6 +2980,11 @@ void show_host_detail(void) {
printf
(
"
\"
notifications_enabled
\"
: %s, "
,
(
temp_statusdata
->
notifications_enabled
==
TRUE
)
?
"true"
:
"false"
);
printf
(
"
\"
has_been_acknowledged
\"
: %s, "
,
(
temp_statusdata
->
problem_has_been_acknowledged
==
TRUE
)
?
"true"
:
"false"
);
if
(
temp_host
->
display_name
==
NULL
)
printf
(
"
\"
host_display_name
\"
: null, "
);
else
printf
(
"
\"
host_display_name
\"
:
\"
%s
\"
, "
,
json_encode
(
temp_host
->
display_name
));
if
(
temp_statusdata
->
plugin_output
==
NULL
)
printf
(
"
\"
status_information
\"
: null }"
);
else
...
...
@@ -2986,7 +2992,7 @@ void show_host_detail(void) {
/* print list in csv format */
}
else
if
(
content_type
==
CSV_CONTENT
)
{
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
(
temp_host
->
display_name
!=
NULL
)
?
temp_host
->
display_name
:
temp_host
->
name
,
csv_data_enclosure
,
csv_delimiter
);
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
temp_host
->
name
,
csv_data_enclosure
,
csv_delimiter
);
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
temp_statusdata
->
status_string
,
csv_data_enclosure
,
csv_delimiter
);
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
temp_statusdata
->
last_check
,
csv_data_enclosure
,
csv_delimiter
);
...
...
@@ -3592,6 +3598,7 @@ void show_servicegroup_service_totals_summary(servicegroup *temp_servicegroup) {
int
services_critical_unacknowledged
=
0
;
servicesmember
*
temp_member
=
NULL
;
servicestatus
*
temp_servicestatus
=
NULL
;
servicestatus
*
last_servicestatus
=
NULL
;
hoststatus
*
temp_hoststatus
=
NULL
;
int
problem
=
FALSE
;
...
...
@@ -3604,6 +3611,10 @@ void show_servicegroup_service_totals_summary(servicegroup *temp_servicegroup) {
if
(
temp_servicestatus
==
NULL
)
continue
;
/* skip this if it isn't a new service... */
if
(
temp_servicestatus
==
last_servicestatus
)
continue
;
/* find the status of the associated host */
temp_hoststatus
=
find_hoststatus
(
temp_servicestatus
->
host_name
);
if
(
temp_hoststatus
==
NULL
)
...
...
@@ -3698,6 +3709,8 @@ void show_servicegroup_service_totals_summary(servicegroup *temp_servicegroup) {
else
if
(
temp_servicestatus
->
status
==
SERVICE_PENDING
)
services_pending
++
;
last_servicestatus
=
temp_servicestatus
;
}
if
(
content_type
==
JSON_CONTENT
)
{
...
...
@@ -4260,6 +4273,7 @@ void show_hostgroup_overviews(void) {
/* always add a comma, except for the first line */
if
(
json_start
==
FALSE
)
printf
(
",
\n
"
);
json_start
=
FALSE
;
}
else
{
if
(
current_column
==
1
)
printf
(
"<TR>
\n
"
);
...
...
cgi/summary.c
View file @
b64d2902
...
...
@@ -1762,16 +1762,16 @@ void display_recent_alerts(void) {
json_start
=
FALSE
;
printf
(
"{
\"
time
\"
:
\"
%s
\"
, "
,
date_time
);
printf
(
"
\"
alert_type
\"
:
\"
%s
\"
, "
,
(
temp_event
->
event_type
==
AE_HOST_ALERT
)
?
"Host Alert"
:
"Service Alert"
);
printf
(
"
\"
host
\"
:
\"
%s
\"
, "
,
(
temp_host
->
display_name
!=
NULL
)
?
json_encode
(
temp_host
->
display_name
)
:
json_encode
(
temp_host
->
name
));
printf
(
"
\"
host
\"
:
\"
%s
\"
, "
,
json_encode
(
temp_host
->
name
));
if
(
temp_event
->
event_type
==
AE_HOST_ALERT
)
printf
(
"
\"
service
\"
: null, "
);
else
printf
(
"
\"
service
\"
:
\"
%s
\"
, "
,
(
temp_service
->
display_name
!=
NULL
)
?
json_encode
(
temp_service
->
display_name
)
:
json_encode
(
temp_service
->
description
));
printf
(
"
\"
service
\"
:
\"
%s
\"
, "
,
json_encode
(
temp_service
->
description
));
}
else
if
(
content_type
==
CSV_CONTENT
)
{
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
date_time
,
csv_data_enclosure
,
csv_delimiter
);
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
(
temp_event
->
event_type
==
AE_HOST_ALERT
)
?
"Host Alert"
:
"Service Alert"
,
csv_data_enclosure
,
csv_delimiter
);
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
(
temp_host
->
display_name
!=
NULL
)
?
temp_host
->
display_name
:
temp_host
->
name
,
csv_data_enclosure
,
csv_delimiter
);
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
(
temp_event
->
event_type
==
AE_HOST_ALERT
)
?
""
:
(
temp_service
->
display_name
!=
NULL
)
?
temp_service
->
display_name
:
temp_service
->
description
,
csv_data_enclosure
,
csv_delimiter
);
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
temp_host
->
name
,
csv_data_enclosure
,
csv_delimiter
);
printf
(
"%s%s%s%s"
,
csv_data_enclosure
,
(
temp_event
->
event_type
==
AE_HOST_ALERT
)
?
""
:
temp_service
->
description
,
csv_data_enclosure
,
csv_delimiter
);
}
else
{
printf
(
"<tr CLASS='data%s'>"
,
(
odd
)
?
"Even"
:
"Odd"
);
...
...
common/downtime.c
View file @
b64d2902
...
...
@@ -203,8 +203,11 @@ int unschedule_downtime(int type, unsigned long downtime_id) {
if
(((
unsigned
long
)
temp_event
->
event_data
)
==
downtime_id
)
break
;
}
if
(
temp_event
!=
NULL
)
if
(
temp_event
!=
NULL
)
{
remove_event
(
temp_event
,
&
event_list_high
,
&
event_list_high_tail
);
my_free
(
temp_event
->
event_data
);
my_free
(
temp_event
);
}
/* delete downtime entry */
if
(
temp_downtime
->
type
==
HOST_DOWNTIME
)
...
...
configure
View file @
b64d2902
This diff is collapsed.
Click to expand it.
configure.in
View file @
b64d2902
...
...
@@ -9,9 +9,9 @@ AC_CONFIG_HEADER(include/config.h)
AC_PREFIX_DEFAULT(/usr/local/icinga)
PKG_NAME=icinga-core
PKG_VERSION="1.7.
0
"
PKG_VERSION="1.7.
1
"
PKG_HOME_URL="http://www.icinga.org/"
PKG_REL_DATE="0
5-15
-2012"
PKG_REL_DATE="0
6-18
-2012"
dnl Figure out how to invoke "install" and what install options to use.
AC_PROG_INSTALL
...
...
@@ -1324,7 +1324,7 @@ AC_MSG_CHECKING(for -Wall based on os/compiler)
dnl OUTPUT
AC_OUTPUT(Makefile subst solaris/pkginfo base/Makefile common/Makefile contrib/Makefile cgi/Makefile html/Makefile module/Makefile module/idoutils/Makefile xdata/Makefile daemon-init daemon-init-redhat rc.ido2db module/idoutils/src/Makefile t-tap/Makefile t/Makefile module/idoutils/db/scripts/installdb module/idoutils/db/scripts/upgradedb module/idoutils/db/scripts/prepsql p1.pl)
AC_OUTPUT(Makefile subst solaris/pkginfo
solaris/icinga.xml
base/Makefile common/Makefile contrib/Makefile cgi/Makefile html/Makefile module/Makefile module/idoutils/Makefile xdata/Makefile daemon-init daemon-init-redhat rc.ido2db module/idoutils/src/Makefile t-tap/Makefile t/Makefile module/idoutils/db/scripts/installdb module/idoutils/db/scripts/upgradedb module/idoutils/db/scripts/prepsql p1.pl)
perl subst $srcdir/include/locations.h
...
...
contrib/eventhandlers/redundancy-scenario1/handle-master-proc-event
View file @
b64d2902
...
...
@@ -45,7 +45,7 @@ HARD)
# We should go back to being the slave host,
# so disable active checks
`
eventhandlerdir/disable_active_service_checks
`
`
$
eventhandlerdir
/disable_active_service_checks
`
;;
esac
...
...
daemon-init.in
View file @
b64d2902
...
...
@@ -3,13 +3,15 @@
# chkconfig: 345 99 01
# description: Icinga network monitor
### BEGIN INIT INFO
# Provides: icinga
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Provides: icinga
# Required-Start: $local_fs $remote_fs $syslog $named $network $time
# Required-Stop: $local_fs $remote_fs $syslog $named $network
# Should-Start:
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6