diff options
author | Davide Madrisan <davide.madrisan@gmail.com> | 2014-05-07 20:14:45 (GMT) |
---|---|---|
committer | Jan Wagner <waja@cyconet.org> | 2014-07-29 09:08:44 (GMT) |
commit | e85fcbd5711999af88ed887c0c17a26ab29f2b28 (patch) | |
tree | bd6765faf926780f75795f8870db4d41f03a059a /plugins/t/check_load.t | |
parent | 2e8d440e73ac2b1875db5ecaf6df510fdcf6eb7a (diff) | |
download | monitoring-plugins-e85fcbd5711999af88ed887c0c17a26ab29f2b28.tar.gz |
This patch will add the IP and port, or socket name, to the error message and
thus simplify the problem debugging: no need to check for this information in
the Nagios configuration.
This function is only used by 'check_tcp.c'.
Without the patch:
$ ./plugins/check_tcp -H 127.0.0.1 -p 21
Connection refused
$ ./plugins/check_tcp -H /var/spool/nagios/cmd/nagios.cmd
Permission denied
With the patch:
$ ./plugins/check_tcp -H 127.0.0.1 -p 21
connect to address 127.0.0.1 and port 21: Connection refused
$ ./plugins/check_tcp -H /var/spool/nagios/cmd/nagios.cmd
connect to socket /var/spool/nagios/cmd/nagios.cmd: Permission denied
Thanks to Davide Madrisan.
---
Closes #1277
Diffstat (limited to 'plugins/t/check_load.t')
0 files changed, 0 insertions, 0 deletions