[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
Wed Apr 23 22:19:41 CEST 2014
A NOTE has been added to this issue.
======================================================================
https://www.opencsw.org/mantis/view.php?id=5087
======================================================================
Reported By: cgrzemba
Assigned To:
======================================================================
Project: nrpe
Issue ID: 5087
Category: regular use
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-07-04 11:27 CEST
Last Modified: 2014-04-23 22:19 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
======================================================================
----------------------------------------------------------------------
(0010807) ccope (reporter) - 2014-04-23 22:19
https://www.opencsw.org/mantis/view.php?id=5087#c10807
----------------------------------------------------------------------
This is broken for me on Solaris 11.1 x86 as well.
The solution is to remove the space between the function names and the ()
in their definitions:
start()
instead of
start ()
More information about the bug-notifications
mailing list