[Nagiosplug-devel] [ nagiosplug-Patches-3027760 ] check_sip problem

SourceForge.net noreply at sourceforge.net
Sat Jul 10 09:43:33 UTC 2010


Patches item #3027760, was opened at 2010-07-10 12:43
Message generated for change (Tracker Item Submitted) made by motiejusj
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=3027760&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Bugfix
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Motiejus Jakštys (motiejusj)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_sip problem

Initial Comment:
monitor:/usr/local/nagios/libexec# grep -r "use lib" .
./check_disk_smb:use lib "/usr/local/nagios/libexec"  ;
./check_mailq:use lib  "/usr/local/nagios/libexec" ;
./check_flexlm:use lib "/usr/local/nagios/libexec" ;
./check_ifstatus:use lib "/usr/local/nagios/libexec"  ;
./check_breeze:use lib "/usr/local/nagios/libexec"  ;
./check_file_age:use lib "/usr/local/nagios/libexec" ;
./check_sip:use lib "/usr/lib/nagios/plugins"; ////// This should be fixed
./check_snmp_storage.pl:use lib "/usr/local/nagios/libexec";
./check_wave:use lib "/usr/local/nagios/libexec" ;
./check_rpc:use lib "/usr/local/nagios/libexec" ;
./check_ifoperstatus:use lib "/usr/local/nagios/libexec"  ;
./check_ircd:use lib "/usr/local/nagios/libexec" ;

When using check_sip, nagios returns (null).:
Command:        check_command                   check_sip! sip:nobody at 127.0.0.1
Output from capture.pl plugin using check_sip
-------
 2010-6-10 12:2:48 ------ debugging
cmd=[/usr/local/nagios/libexec/check_sip '-u' 'sip:nobody at 127.0.0.1' '-H' '192.168.41.6' '-w' '5']
output=[Can't locate utils.pm in @INC (@INC contains: /usr/lib/nagios/plugins /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/local/nagios/libexec/check_sip line 29.
BEGIN failed--compilation aborted at /usr/local/nagios/libexec/check_sip line 29.
]
retcode=2

Applying this trivial patch fixed the issue.
Plugin version: 1.4.14
check_sip revision: 1.2
nagios version: 3.2.1

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=3027760&group_id=29880




More information about the Nagiosplugin-devel mailing list