should recognize that exit code 126 means plugin is not executable

Bug #471468 reported by Joshua Swink
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Nagios
Fix Released
Unknown
Ubuntu Server papercuts
Won't Fix
Medium
Mathias Gug
nagios3 (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Binary package hint: nagios3

When a script is found but not executable, the exit code returned by bash is 126. Nagios should suggest that this means the script is not executable. Currently, it suggests that the script cannot be found.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
Package: nagios3 3.0.6-2ubuntu1.1
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: nagios3
Uname: Linux 2.6.28-16-generic x86_64

Revision history for this message
Joshua Swink (yathster) wrote :
Revision history for this message
Joshua Swink (yathster) wrote :
Revision history for this message
Chuck Short (zulcss) wrote :

Thanks for the patch. Ill submit it upstream for consideration.

Regards
chuck

Changed in nagios3 (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
Thierry Carrez (ttx)
Changed in server-papercuts:
importance: Undecided → Medium
milestone: none → maverick-alpha-2
status: New → Triaged
Thierry Carrez (ttx)
Changed in server-papercuts:
assignee: nobody → Mathias Gug (mathiaz)
Revision history for this message
Mathias Gug (mathiaz) wrote :

I've filed the bug in the upstream tracker and attached the patch there.

I won't fix it in Ubuntu directly as it would increase our delta with Debian and upstream. Even though it's a minor bug I'd rather wait for the bug to trickle down to Ubuntu via a new upstream release.

Changed in server-papercuts:
status: Triaged → Won't Fix
Mathias Gug (mathiaz)
tags: added: patch-forwarded-upstream
removed: amd64 apport-bug
tags: added: patch
Changed in nagios:
status: Unknown → New
Changed in nagios:
status: New → Fix Released
Revision history for this message
Chuck Short (zulcss) wrote :

This has been fixed in maverick already.

Changed in nagios3 (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.