Latest nagios plugins rpm ships with checks that can't run

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dmurrell
Posts: 6
Joined: Sun Jun 25, 2017 8:59 pm

Latest nagios plugins rpm ships with checks that can't run

Post by dmurrell »

A bunch of my servers auto updated to this package this morning: nagiosxi-nagiosplugins-5.6.2-1.el7.x86_64, and the almost all of the checks have lost their execute bit.

The /usr/local/nagios/libexec install dir looks like this:

Code: Select all

[root@broken-server ~]# ls -l /usr/local/nagios/libexec/|head
total 11248
-rw-r--r--. 1 nagios nagios 210400 May 17 09:07 check_apt
-rw-r--r--. 1 nagios nagios   6897 May 17 09:07 check_asterisk.pl
-rw-r--r--. 1 nagios nagios   1978 May 17 09:07 check_asterisk_sip_peers.sh
-rw-r--r--. 1 nagios nagios   4173 May 17 09:08 check_bl
-rw-r--r--. 1 nagios nagios   2287 May 17 09:08 check_bpi.php
-rw-r--r--. 1 nagios nagios   2342 May 17 09:07 check_breeze
-rw-r--r--. 1 nagios nagios 214400 May 17 09:07 check_by_ssh
The upstream rpm file originates from here: https://repo.nagios.com/nagios/7/nagios ... x86_64.rpm

A server I downgraded the plugins to the package nagiosxi-nagiosplugins-5.6.1-1.el7.x86_64 on looks like this:

Code: Select all

[root@working-server libexec]#  ls -l /usr/local/nagios/libexec/|head
total 11248
-rwxrwxr-x. 1 nagios nagios 210400 May  1 03:10 check_apt
-rwxrwxr-x. 1 nagios nagios   6897 May  1 03:11 check_asterisk.pl
-rwxrwxr-x. 1 nagios nagios   1978 May  1 03:11 check_asterisk_sip_peers.sh
-rwxrwxr-x. 1 nagios nagios   4173 May  1 03:12 check_bl
-rwxrwxr-x. 1 nagios nagios   2287 May  1 03:11 check_bpi.php
-rwxrwxr-x. 1 nagios nagios   2342 May  1 03:10 check_breeze
-rwxrwxr-x. 1 nagios nagios 214400 May  1 03:10 check_by_ssh
We execute the plugins remotely from NagiosXI via ncpa, and ncpa won't exec the plugins, so now I have 80 alerts to deal with. It would be quite a bit higher, but not everything auto updates, and we use ncpa's internal where we can.

Here's the output of the rpm command showing the chmod entries set on install:

Code: Select all

[root@broken-server ~]# rpm -ql --dump nagiosxi-nagiosplugins-5.6.2-1.el7.x86_64|head
/usr/local/nagios/libexec/check_apt 210400 1558040826 156f78e9d4a13baa1d08989c40da064fdadf899ed2f61f8a9d671cc7872b8583 0100644 nagios nagios 0 0 0 X
/usr/local/nagios/libexec/check_asterisk.pl 6897 1558040874 2da2deef908b221e9b948b062859dbd4499b2f9cb06bc1d1e17712e813ec7c71 0100644 nagios nagios 0 0 0 X
/usr/local/nagios/libexec/check_asterisk_sip_peers.sh 1978 1558040874 9af8447e749f5af826d52663b6d9b8c0f3beb654286ba881ad855579af0b5e62 0100644 nagios nagios 0 0 0 X
/usr/local/nagios/libexec/check_bl 4173 1558040921 d2b7c57dd8edc25a6f903e9d8afb64735e045ab8d130c67324297773b63f502b 0100644 nagios nagios 0 0 0 X
/usr/local/nagios/libexec/check_bpi.php 2287 1558040906 df9ff8f164af71dc500aa17745ce84900ae429e686f5f31629318d6b10317221 0100644 nagios nagios 0 0 0 X
Can someone please fix the rpm ASAP?

As an aside, as a paying customer, I really do expect a duty of care that's absent with this update, given the considerable amount we're spending on the NagiosXI product.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Latest nagios plugins rpm ships with checks that can't r

Post by scottwilkerson »

Thanks for pointing this out!

The dev's looked into it and have released a new version that should resolve the issue.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dmurrell
Posts: 6
Joined: Sun Jun 25, 2017 8:59 pm

Re: Latest nagios plugins rpm ships with checks that can't r

Post by dmurrell »

Thanks - I've installed the new package and all tested good.

Appreciate the quick turnaround :)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Latest nagios plugins rpm ships with checks that can't r

Post by scottwilkerson »

dmurrell wrote:Thanks - I've installed the new package and all tested good.

Appreciate the quick turnaround :)
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked