[Nagios-devel] host and service in up or ok can be acknowledged via command file

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

[Nagios-devel] host and service in up or ok can be acknowledged via command file

Post by Guest »

This is a MIME encapsulated multipart message -
please use a MIME-compliant e-mail program to open it.

Dies ist eine mehrteilige Nachricht im MIME-Format -
bitte verwenden Sie zum Lesen ein MIME-konformes Mailprogramm.

--========GMXBoundary136101113321194
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi,

if an host is up or a service is ok, it is possible to acknowledge the state
via the external command file. the web-inface hides the acknowlegement
button if the host is up or the service is ok. i think it is a good idea to
prevent this in the nagios core.
i did a small patch against nagios 2.0b3:

$ diff -c commands.c.original commands.c >ackn.patch

what do you think?

regards

dietmar


--
+++ GMX - Die erste Adresse für Mail, Message, More +++

1 GB Mailbox bereits in GMX FreeMail http://www.gmx.net/de/go/mail
--========GMXBoundary136101113321194
Content-Type: application/octet-stream; name="ackn.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="ackn.patch"

KioqIGNvbW1hbmRzLmMub3JpZ2luYWwJVHVlIEFwciAxMiAxNzo0Mjo0OCAyMDA1Ci0tLSBjb21t
YW5kcy5jCVR1ZSBBcHIgMTIgMTc6Mzk6NTMgMjAwNQoqKioqKioqKioqKioqKioKKioqIDIxNjcs
MjE4MCAqKioqCiAgCWlmKHRlbXBfcHRyPT1OVUxMKQogIAkJcmV0dXJuIEVSUk9SOwogIAlhY2tf
ZGF0YT1zdHJkdXAodGVtcF9wdHIpOwotIAkKLSAJLyogYWNrbm93bGVkZ2UgdGhlIGhvc3QgcHJv
YmxlbSAqLwotIAlpZihjbWQ9PUNNRF9BQ0tOT1dMRURHRV9IT1NUX1BST0JMRU0pCi0gCQlhY2tu
b3dsZWRnZV9ob3N0X3Byb2JsZW0odGVtcF9ob3N0LGFja19hdXRob3IsYWNrX2RhdGEsdHlwZSxu
b3RpZnkscGVyc2lzdGVudCk7CiAgCiAgCS8qIGFja25vd2xlZGdlIHRoZSBzZXJ2aWNlIHByb2Js
ZW0gKi8KISAJZWxzZQohIAkJYWNrbm93bGVkZ2Vfc2VydmljZV9wcm9ibGVtKHRlbXBfc2Vydmlj
ZSxhY2tfYXV0aG9yLGFja19kYXRhLHR5cGUsbm90aWZ5LHBlcnNpc3RlbnQpOwogIAogIAkvKiBm
cmVlIG1lbW9yeSAqLwogIAlmcmVlKGFja19hdXRob3IpOwotLS0gMjE2NywyMTg1IC0tLS0KICAJ
aWYodGVtcF9wdHI9PU5VTEwpCiAgCQlyZXR1cm4gRVJST1I7CiAgCWFja19kYXRhPXN0cmR1cCh0
ZW1wX3B0cik7CiAgCisgCS8qIGFja25vd2xlZGdlIHRoZSBob3N0IHByb2JsZW0gKi8KKyAJaWYo
Y21kPT1DTURfQUNLTk9XTEVER0VfSE9TVF9QUk9CTEVNKSB7CisgCSAgaWYgKHRlbXBfaG9zdC0+
Y3VycmVudF9zdGF0ZSAhPSAwKSB7CisgCSAgICBhY2tub3dsZWRnZV9ob3N0X3Byb2JsZW0odGVt
cF9ob3N0LGFja19hdXRob3IsYWNrX2RhdGEsdHlwZSxub3RpZnkscGVyc2lzdGVudCk7CisgCSAg
fQorIAl9CiAgCS8qIGFja25vd2xlZGdlIHRoZSBzZXJ2aWNlIHByb2JsZW0gKi8KISAJZWxzZSB7
CiEgCSAgaWYgKHRlbXBfc2VydmljZS0+Y3VycmVudF9zdGF0ZSAhPSAwKSB7CiEgCSAgYWNrbm93
bGVkZ2Vfc2VydmljZV9wcm9ibGVtKHRlbXBfc2VydmljZSxhY2tfYXV0aG9yLGFja19kYXRhLHR5
cGUsbm90aWZ5LHBlcnNpc3RlbnQpOwohIAkgIH0KISAJfQkKICAKICAJLyogZnJlZSBtZW1vcnkg
Ki8KICAJZnJlZShhY2tfYXV0aG9yKTsK

--========GMXBoundary136101113321194--






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked