Re: [Nagios-devel] acknowledged hosts/services in nagiostats was:

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] acknowledged hosts/services in nagiostats was:

Post by Guest »

Dies ist eine kryptografisch unterzeichnete Nachricht im MIME-Format.

--------------ms060408040108070600030704
Content-Type: multipart/mixed; boundary="------------090207080800090201050701"

This is a multi-part message in MIME format.
--------------090207080800090201050701
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable

Am 21.06.2012 11:15, schrieb Andreas Ericsson:
>> Would be very happy if this patch could be accepted:
>=20
> It won't be, because it's whitespace damage. Cutting and pasting the
> diff output into an email client converts all tabs to spaces. Can you
> send it again, but as an attachment or as a 'git-send-email' thing?

Attached.

--=20
Dipl.-Phys. Jens Hektor, Netzbetrieb
RWTH Aachen University, Center for Computing and Communication
Room 2.04, Wendlingweg 10, 52074 Aachen (Germany)
Phone: +49 241 80 29206 - Fax: +49 241 80 22100
http://www.rz.rwth-aachen.de - hektor@rz.rwth-aachen.de



--------------090207080800090201050701
Content-Type: text/x-patch;
name="nagiostats-3.4.1.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="nagiostats-3.4.1.patch"

--- nagios-3.4.1/base/nagiostats.c.orig 2012-05-12 02:00:53.000000000 +02=
00
+++ nagios-3.4.1/base/nagiostats.c 2012-06-06 09:54:38.000000000 +0200
@@ -125,6 +125,7 @@
int services_in_downtime =3D 0;
int services_checked =3D 0;
int services_scheduled =3D 0;
+int services_acknowledged =3D 0;
int passive_host_checks =3D 0;
int active_host_checks =3D 0;
int hosts_up =3D 0;
@@ -134,6 +135,7 @@
int hosts_in_downtime =3D 0;
int hosts_checked =3D 0;
int hosts_scheduled =3D 0;
+int hosts_acknowledged =3D 0;
=20
int passive_services_checked_last_1min =3D 0;
int passive_services_checked_last_5min =3D 0;
@@ -350,6 +352,7 @@
printf(" NUMSVCPROB number of service problems (WARNING, UNK=
NOWN or CRITIAL).\n");
printf(" NUMSVCCHECKED number of services that have been checke=
d since start.\n");
printf(" NUMSVCSCHEDULED number of services that are currently sc=
heduled to be checked.\n");
+ printf(" NUMSVCACKNOWLEDGED number of down services that are current=
ly acknowledged.\n");
printf(" NUMSVCFLAPPING number of services that are currently fl=
apping.\n");
printf(" NUMSVCDOWNTIME number of services that are currently in=
downtime.\n");
printf(" NUMHSTUP number of hosts UP.\n");
@@ -358,6 +361,7 @@
printf(" NUMHSTPROB number of host problems (DOWN or UNREACH=
ABLE).\n");
printf(" NUMHSTCHECKED number of hosts that have been checked s=
ince start.\n");
printf(" NUMHSTSCHEDULED number of hosts that are currently sched=
uled to be checked.\n");
+ printf(" NUMHSTACKNOWLEDGED number of down hosts that are currently =
acknowledged.\n");
printf(" NUMHSTFLAPPING number of hosts that are currently flapp=
ing.\n");
printf(" NUMHSTDOWNTIME number of hosts that are currently in do=
wntime.\n");
printf(" NUMHSTACTCHKxM number of hosts actively checked in last=
1/5/15/60 minutes.\n");
@@ -734,6 +738,8 @@
printf("%d%s", services_checked, mrtg_delimiter);
else if(!strcmp(temp_ptr, "NUMSVCSCHEDULED"))
printf("%d%s", services_scheduled, mrtg_delimiter);
+ else if(!strcmp(temp_ptr, "NUMSVCACKNOWLEDGED"))
+ printf("%d%s", services_acknowledged, mrtg_delimiter);
else if(!strcmp(temp_ptr, "NUMSVCFLAPPING"))
printf("%d%s", services_flapping, mrtg_delimiter);
else if(!strcmp(temp_ptr, "NUMSVCDOWNTIME"))
@@ -754,6 +760,8 @@
printf("%d%s", hosts_checked, mrtg_delimiter);
else if(!strcmp(temp_ptr, "NUMHSTSCHEDULED"))
printf("%d%s", hosts_scheduled, mrtg_delimiter);
+ else if(!strcmp(temp_ptr, "NUMHSTACKNOWLEDGED"))
+ printf("%d%s", hosts_acknowledged, mrtg_delimiter);
else if(!strcmp(temp_ptr, "NUMHSTFLAPPING"))
printf("%d%s", hosts_flapping, mrtg_delimiter);
else if(!strcmp(temp_ptr, "NUMHSTDOWNTIME"))
@@ -798,6 +806,8 @@
printf("Total Services: %d\n", status_service_e=
ntries);
printf("Services Checked: %d\n", services_checked=
);
printf("Services Scheduled:

...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: hektor@rz.rwth-aachen.de
Locked