Skip to content

Commit

Permalink
Add patch for check_ifstatus
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonRivers committed Aug 30, 2022
1 parent f3908f1 commit 00844b7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,12 @@ RUN cd /tmp
make clean && \
cd /tmp && rm -Rf nagioscore

ADD patches/nagios-plugins-2.4.0_check_ifstatus.patch /tmp/nagios-plugins-2.4.0_check_ifstatus.patch

RUN cd /tmp && \
git clone https://github.com/nagios-plugins/nagios-plugins.git -b $NAGIOS_PLUGINS_BRANCH && \
cd nagios-plugins && \
patch plugins-scripts/check_ifstatus.pl /tmp/nagios-plugins-2.4.0_check_ifstatus.patch && \
./tools/setup && \
./configure \
--prefix=${NAGIOS_HOME} \
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Docker image for Nagios

Build Status: [![Build Status](https://travis-ci.org/JasonRivers/Docker-Nagios.svg?branch=master)](https://travis-ci.org/JasonRivers/Docker-Nagios)

Nagios Core 4.4.6 running on Ubuntu 20.04 LTS with NagiosGraph & NRPE
Nagios Core 4.4.7 running on Ubuntu 20.04 LTS with NagiosGraph & NRPE

| Product | Version |
| ------- | ------- |
Expand All @@ -14,6 +14,9 @@ Nagios Core 4.4.6 running on Ubuntu 20.04 LTS with NagiosGraph & NRPE
| NCPA | 2.4.0 |
| NSCA | 2.10.0 |

### PATCHES
* check_ifstatus-2.4.0 - https://github.com/nagios-plugins/nagios-plugins/issues/650


### Configurations
Nagios Configuration lives in /opt/nagios/etc
Expand Down
15 changes: 15 additions & 0 deletions patches/nagios-plugins-2.4.0_check_ifstatus.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--- /root/bin/check_ifstatus 2022-04-07 14:00:01.000000000 -0700
+++ /root/bin/check_ifstatus 2022-04-21 11:26:32.923348000 -0700
@@ -136,11 +136,11 @@
}


-push(@snmpoids,$snmpLocIfDescr);
push(@snmpoids,$snmpIfOperStatus);
push(@snmpoids,$snmpIfAdminStatus);
push(@snmpoids,$snmpIfDescr);
push(@snmpoids,$snmpIfType);
+push(@snmpoids,$snmpLocIfDescr) if ( defined $ifXTable);
push(@snmpoids,$snmpIfName) if ( defined $ifXTable);
push(@snmpoids,$snmpIfAlias) if ( defined $ifXTable);

0 comments on commit 00844b7

Please sign in to comment.