submit_check_result script fails when called by another script
Bug #369413 reported by
slaroy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nagios3 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: nagios3-common
When calling submit_check_result from another script (here snmptt), submit_check_result fails.
Calling submit_check_result from the command line with sudo works properly.
Proposed fix:
replace #!/bin/sh
with #!/bin/bash
This fix works in my setup
To post a comment you must log in.
Could you precise the version of nagios3-common you're using, and define "fails" (ideally, attach a minimal script that would allow to reproduce the issue) ?
I'm able to run submit_check_result from another script without issues and it doesn't seem to include any bashisms...