[nrpe 0005087]: Skript Error: /var/opt/csw/svc/method/svc-cswnrpe: line 44: syntax error at line 58: `('
Mantis Bug Tracker via bug-notifications
bug-notifications at lists.opencsw.org
Thu May 1 09:16:19 CEST 2014
The following issue has been ASSIGNED.
======================================================================
https://www.opencsw.org/mantis/view.php?id=5087
======================================================================
Reported By: cgrzemba
Assigned To: raos
======================================================================
Project: nrpe
Issue ID: 5087
Category: regular use
Reproducibility: always
Severity: major
Priority: normal
Status: assigned
======================================================================
Date Submitted: 2013-07-04 11:27 CEST
Last Modified: 2014-05-01 09:16 CEST
======================================================================
Summary: Skript Error: /var/opt/csw/svc/method/svc-cswnrpe:
line 44: syntax error at line 58: `('
Description:
SMF cswnrpe is in maintenance because:
root at delphi:/home/admin# sh -x /var/opt/csw/svc/method/svc-cswnrpe
+ BINDIR=/opt/csw/bin
+ BINFILE=/opt/csw/bin/nrpe
+ RUNFLAG=1
+ uname -r
+ awk -F. '{print $2}'
+ SOLREL=11
+ [ 11 -ge 10 ]
+ /sbin/zonename
+ ZONENAME=global
+ . /lib/svc/share/smf_include.sh
+ SMF_EXIT_OK=0
+ SMF_EXIT_ERR_FATAL=95
+ SMF_EXIT_ERR_CONFIG=96
+ SMF_EXIT_MON_DEGRADE=97
+ SMF_EXIT_MON_OFFLINE=98
+ SMF_EXIT_ERR_NOSMF=99
+ SMF_EXIT_ERR_PERM=100
+ SMF_EXIT_TEMP_DISABLE=101
+ SMF_EXIT_TEMP_TRANSIENT=102
+ SMF_SYSVOL_FS=/system/volatile
+ __smf_exit_fmri=''
+ CONFIG_FILE=/etc/opt/csw/nrpe.cfg
+ [ ! -f /etc/opt/csw/nrpe.cfg ]
/var/opt/csw/svc/method/svc-cswnrpe: line 44: syntax error at line 58: `('
unexpected
stopping also produce an error:
root at delphi:/home/admin# sh -x /var/opt/csw/svc/method/svc-cswnrpe stop
+ BINDIR=/opt/csw/bin
+ BINFILE=/opt/csw/bin/nrpe
+ RUNFLAG=1
+ uname -r
+ awk -F. '{print $2}'
+ SOLREL=11
+ [ 11 -ge 10 ]
+ /sbin/zonename
+ ZONENAME=global
+ . /lib/svc/share/smf_include.sh
+ SMF_EXIT_OK=0
+ SMF_EXIT_ERR_FATAL=95
+ SMF_EXIT_ERR_CONFIG=96
+ SMF_EXIT_MON_DEGRADE=97
+ SMF_EXIT_MON_OFFLINE=98
+ SMF_EXIT_ERR_NOSMF=99
+ SMF_EXIT_ERR_PERM=100
+ SMF_EXIT_TEMP_DISABLE=101
+ SMF_EXIT_TEMP_TRANSIENT=102
+ SMF_SYSVOL_FS=/system/volatile
+ __smf_exit_fmri=''
+ CONFIG_FILE=/etc/opt/csw/nrpe.cfg
+ [ ! -f /etc/opt/csw/nrpe.cfg ]
+ kill -s STOP
Usage: kill [-l] [-n signum] [-s signame] job ...
Or:job ...
killjob ...
[job ...
optionsjob ...
] -l [arg ...]
+ exit 0
======================================================================
----------------------------------------------------------------------
(0010810) ccope (reporter) - 2014-04-24 07:03
https://www.opencsw.org/mantis/view.php?id=5087#c10810
----------------------------------------------------------------------
Whoops, the svc-cswnrpe file I uploaded had a typo in it. the cswnrpe file
fixes that typo. I then discovered the stop function is also broken because
the function name collides with a built-in shell function. the cswnrpe2
file renames that.
More information about the bug-notifications
mailing list