Use ${LOCALBASE}/bin/sipsak rather than relying on PATH to be set.
Fixes SIP checks when nagios is started from rc.local. Bump PKGNAME.
This commit is contained in:
parent
eb874011f3
commit
e8330b2841
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.4 2009/11/09 21:12:47 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.5 2009/11/13 15:30:51 sthen Exp $
|
||||
|
||||
COMMENT= Nagios plugin to check SIP
|
||||
|
||||
DISTNAME= check_sip-20060929
|
||||
PKGNAME= ${DISTNAME}p0
|
||||
PKGNAME= ${DISTNAME}p1
|
||||
CATEGORIES= net
|
||||
|
||||
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
||||
|
@ -1,13 +1,22 @@
|
||||
$OpenBSD: patch-check_sip,v 1.1.1.1 2009/11/05 10:56:21 sthen Exp $
|
||||
--- check_sip.orig Thu Nov 29 15:20:00 2007
|
||||
+++ check_sip Thu Nov 29 15:21:08 2007
|
||||
$OpenBSD: patch-check_sip,v 1.2 2009/11/13 15:30:51 sthen Exp $
|
||||
--- check_sip.orig Fri Nov 13 15:21:23 2009
|
||||
+++ check_sip Fri Nov 13 15:22:11 2009
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/local/bin/perl
|
||||
+#!/usr/bin/perl
|
||||
|
||||
##
|
||||
# check_sip - (c) 2005-2006 O'Shaughnessy Evans <shaug+nagios at aloha.net>
|
||||
@@ -146,7 +146,10 @@ if ($Proxy) {
|
||||
@@ -33,7 +33,7 @@ BEGIN {
|
||||
$ME = 'check_sip';
|
||||
|
||||
# command to get connection state; 1st %s is for extra args, second is SIP URI
|
||||
- @Sipsak_Cmd = qw(sipsak --nagios-code -v);
|
||||
+ @Sipsak_Cmd = qw(${LOCALBASE}/bin/sipsak --nagios-code -v);
|
||||
$User = '';
|
||||
$Password = '';
|
||||
$Port = 5060;
|
||||
@@ -151,7 +151,10 @@ if ($Proxy) {
|
||||
push @Sipsak_Cmd, '--outbound-proxy', $Proxy;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user