Description of problem: Plugin does not work due to typo in line 29: use lib "/usr/lib6464/nagios/plugins"; (should be /usr/lib64/) Version-Release number of selected component (if applicable): nagios-plugins-check_sip-1.3-1.fc16.x86_64 How reproducible: always Steps to Reproduce: 1. call from shell: /usr/lib64/nagios/plugins/check_sip 2. 3. Actual results: Can't locate utils.pm in @INC (@INC contains: /usr/lib6464/nagios/plugins /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/lib64/nagios/plugins/check_sip.2012-05-06 line 30. BEGIN failed--compilation aborted at /usr/lib64/nagios/plugins/check_sip.2012-05-06 line 30. Expected results: This plugin tests the sip service on the specified host. Usage: check_sip -u sip:uri [-H host -p PORT -f sip:fromuri -w WARNTIME -s] ... Additional info:
nagios-plugins-check_sip-1.3-2.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/nagios-plugins-check_sip-1.3-2.fc15
nagios-plugins-check_sip-1.3-2.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/nagios-plugins-check_sip-1.3-2.fc16
nagios-plugins-check_sip-1.3-2.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/nagios-plugins-check_sip-1.3-2.el5
nagios-plugins-check_sip-1.3-2.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/nagios-plugins-check_sip-1.3-2.fc17
nagios-plugins-check_sip-1.3-2.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/nagios-plugins-check_sip-1.3-2.el6
Package nagios-plugins-check_sip-1.3-2.el6: * should fix your issue, * was pushed to the Fedora EPEL 6 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing nagios-plugins-check_sip-1.3-2.el6' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2012-5931/nagios-plugins-check_sip-1.3-2.el6 then log in and leave karma (feedback).
Update from epel-testing works for me. Tnx!
Sorry, update from epel-testing does not work. 1. call from shell: /usr/lib64/nagios/plugins/check_sip works. 2. call via nagios does not work. Turned on debugging in Nagios: debug_level=4095 Logfile shows: [1337898821.126134] [016.1] [pid=22231] HOST: myhost, SERVICE: SIP test, CHECK TYP E: Active, OPTIONS: 0, SCHEDULED: Yes, RESCHEDULE: Yes, EXITED OK: No, RETURN CO DE: 3, OUTPUT: **ePN failed to compile /usr/lib64/nagios/plugins/check_sip: "Num ber found where operator expected at (eval 1) line 129, near "case 1"" at /usr/s bin/p1.pl line 160.\n
Found unsolved problems of other people using Switch.pm with Nagios ePN. So i changed the script from line 127: ##switch($resend_times){ ## case 1 { ualarm(500000); } ## case 2 { $TIMEOUT=1; alarm($TIMEOUT); } ## case 3 { $TIMEOUT=2; alarm($TIMEOUT); } ## else { $TIMEOUT=4; alarm($TIMEOUT); } ##} if($resend_times==1) { ualarm(500000); } elsif($resend_times==2) { $TIMEOUT=1; alarm($TIMEOUT); } elsif ($resend_times==3) { $TIMEOUT=2; alarm($TIMEOUT); } else { $TIMEOUT=4; alarm($TIMEOUT); } Now it works.
(In reply to comment #9) > Found unsolved problems of other people using Switch.pm with Nagios ePN. > > So i changed the script from line 127: > ##switch($resend_times){ > ## case 1 { ualarm(500000); } > ## case 2 { $TIMEOUT=1; alarm($TIMEOUT); } > ## case 3 { $TIMEOUT=2; alarm($TIMEOUT); } > ## else { $TIMEOUT=4; alarm($TIMEOUT); } > ##} > if($resend_times==1) > { ualarm(500000); } > elsif($resend_times==2) > { $TIMEOUT=1; alarm($TIMEOUT); } > elsif ($resend_times==3) > { $TIMEOUT=2; alarm($TIMEOUT); } > else > { $TIMEOUT=4; alarm($TIMEOUT); } > > Now it works. Well, can't confirm - I just tried it on my EL5 and it works fine. Did you try it on Fedora only?
(In reply to comment #10) > Well, can't confirm - I just tried it on my EL5 and it works fine. Did you > try it on Fedora only? Yes, i only tested on Fedora 16. On el5 you still have the old nagios 2, on fedora you have nagios 3. Nagios 3 uses ePN. ePN is an embedded Perl interpreter that runs inside Nagios, similar to mod_perl in Apache. As described in comment 8 the problem shows only when plugin is called from nagios.
nagios-plugins-check_sip-1.3-2.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.
Problem not solved for Fedora.
nagios-plugins-check_sip-1.3-4.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/nagios-plugins-check_sip-1.3-4.fc17
nagios-plugins-check_sip-1.3-4.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/nagios-plugins-check_sip-1.3-4.fc16
nagios-plugins-check_sip-1.3-4.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/nagios-plugins-check_sip-1.3-4.fc18
nagios-plugins-check_sip-1.3-4.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/nagios-plugins-check_sip-1.3-4.el6
Package nagios-plugins-check_sip-1.3-4.el6: * should fix your issue, * was pushed to the Fedora EPEL 6 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing nagios-plugins-check_sip-1.3-4.el6' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2012-12931/nagios-plugins-check_sip-1.3-4.el6 then log in and leave karma (feedback).
nagios-plugins-check_sip-1.3-4.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.
nagios-plugins-check_sip-1.3-4.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.
nagios-plugins-check_sip-1.3-4.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.