head 1.4; access; symbols pkgsrc-2015Q1:1.3.0.32 pkgsrc-2015Q1-base:1.3 pkgsrc-2014Q4:1.3.0.30 pkgsrc-2014Q4-base:1.3 pkgsrc-2014Q3:1.3.0.28 pkgsrc-2014Q3-base:1.3 pkgsrc-2014Q2:1.3.0.26 pkgsrc-2014Q2-base:1.3 pkgsrc-2014Q1:1.3.0.24 pkgsrc-2014Q1-base:1.3 pkgsrc-2013Q4:1.3.0.22 pkgsrc-2013Q4-base:1.3 pkgsrc-2013Q3:1.3.0.20 pkgsrc-2013Q3-base:1.3 pkgsrc-2013Q2:1.3.0.18 pkgsrc-2013Q2-base:1.3 pkgsrc-2013Q1:1.3.0.16 pkgsrc-2013Q1-base:1.3 pkgsrc-2012Q4:1.3.0.14 pkgsrc-2012Q4-base:1.3 pkgsrc-2012Q3:1.3.0.12 pkgsrc-2012Q3-base:1.3 pkgsrc-2012Q2:1.3.0.10 pkgsrc-2012Q2-base:1.3 pkgsrc-2012Q1:1.3.0.8 pkgsrc-2012Q1-base:1.3 pkgsrc-2011Q4:1.3.0.6 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q3:1.3.0.4 pkgsrc-2011Q3-base:1.3 pkgsrc-2011Q2:1.3.0.2 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.2.0.28 pkgsrc-2011Q1-base:1.2 pkgsrc-2010Q4:1.2.0.26 pkgsrc-2010Q4-base:1.2 pkgsrc-2010Q3:1.2.0.24 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.2.0.22 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.2.0.20 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.2.0.18 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q3:1.2.0.16 pkgsrc-2009Q3-base:1.2 pkgsrc-2009Q2:1.2.0.14 pkgsrc-2009Q2-base:1.2 pkgsrc-2009Q1:1.2.0.12 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.2.0.10 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.8 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.6 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.4 pkgsrc-2008Q2-base:1.2 cwrapper:1.2.0.2 pkgsrc-2008Q1:1.1.1.1.0.8 pkgsrc-2008Q1-base:1.1.1.1 pkgsrc-2007Q4:1.1.1.1.0.6 pkgsrc-2007Q4-base:1.1.1.1 pkgsrc-2007Q3:1.1.1.1.0.4 pkgsrc-2007Q3-base:1.1.1.1 pkgsrc-2007Q2:1.1.1.1.0.2 pkgsrc-2007Q2-base:1.1.1.1 pkgsrc_base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.4 date 2015.04.03.18.37.32; author rodent; state dead; branches; next 1.3; commitid NBqi1hIGmMFGUagy; 1.3 date 2011.04.08.22.49.49; author morr; state Exp; branches; next 1.2; 1.2 date 2008.05.27.21.22.02; author tonnerre; state Exp; branches; next 1.1; 1.1 date 2007.04.13.20.06.21; author bouyer; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2007.04.13.20.06.21; author bouyer; state Exp; branches; next ; desc @@ 1.4 log @Sync with net/nagios-plugins. @ text @$NetBSD: patch-al,v 1.3 2011/04/08 22:49:49 morr Exp $ --- contrib/check_axis.sh.orig 2010-07-27 20:47:15.000000000 +0000 +++ contrib/check_axis.sh @@@@ -5,7 +5,7 @@@@ port=$2 usr=$3 pass=$4 -if [ ! "$#" == "4" ]; then +if [ ! "$#" = "4" ]; then echo -e "\nYou did not supply enough command line arguments. \nUsage: ./check_axis.sh \n \nCheck_axis.sh checks the status of LPT ports on Axis print servers. \nIt was written by Tom De Blende (tom.deblende@@village.uunet.be) in 2002. \n" && exit "3" fi @@@@ -27,7 +27,7 @@@@ fi lines=`cat $tempfile | grep -i $port` status=`echo $lines | awk '{ print $3 }'` -if [ "$status" == "Printing" ]; then +if [ "$status" = "Printing" ]; then bytes=`echo $lines | awk '{ print $4 }'`; comments=`echo $lines | tr -d " " | awk '{ print $5 " " $6 }'`; @@@@ -42,48 +42,48 @@@@ if [ "$comma" -eq "1" ]; then fi -if [ "$status" == "Available" ]; then - if [ "$comments" == "Paper out" ]; then +if [ "$status" = "Available" ]; then + if [ "$comments" = "Paper out" ]; then exit="1" && stdio="WARNING - Out of paper."; - elif [ "$comments" == " " ]; then + elif [ "$comments" = " " ]; then exit="0" && stdio="OK - Printer is available but returns no comments."; - elif [ "$comments" == "No error" ]; then + elif [ "$comments" = "No error" ]; then exit="0" && stdio="OK - No error."; - elif [ "$comments" == "Ready " ]; then + elif [ "$comments" = "Ready " ]; then exit="0" && stdio="OK - Ready."; - elif [ "$comments" == "Off line" ]; then + elif [ "$comments" = "Off line" ]; then exit="1" && stdio="WARNING - Printer is off line."; - elif [ "$comments" == "Out of" ]; then + elif [ "$comments" = "Out of" ]; then exit="1" && stdio="WARNING - Out of paper."; - elif [ "$comments" == "Busy Out" ]; then + elif [ "$comments" = "Busy Out" ]; then exit="1" && stdio="WARNING - Busy, out of paper."; - elif [ "$comments" == "Printer off-line" ]; then + elif [ "$comments" = "Printer off-line" ]; then exit="1" && stdio="WARNING - Printer is off line."; - elif [ "$comments" == "Printer fault" ]; then + elif [ "$comments" = "Printer fault" ]; then exit="2" && stdio="CRITICAL - Printer fault."; else exit="3" && stdio="Comments: $comments"; fi -elif [ "$status" == "Printing" ]; then - if [ "$comments" == "Printer busy" ]; then +elif [ "$status" = "Printing" ]; then + if [ "$comments" = "Printer busy" ]; then exit="0" && stdio="OK - PRINTING. Bytes printed: $bytes."; - elif [ "$comments" == "No error" ]; then + elif [ "$comments" = "No error" ]; then exit="0" && stdio="OK - PRINTING. Bytes printed: $bytes."; - elif [ "$comments" == "Paper out" ]; then + elif [ "$comments" = "Paper out" ]; then exit="1" && stdio="WARNING - PRINTING. Out of paper."; - elif [ "$comments" == "Out of" ]; then + elif [ "$comments" = "Out of" ]; then exit="1" && stdio="WARNING - PRINTING. Out of paper. Bytes printed: $bytes."; - elif [ "$comments" == "Busy Out" ]; then + elif [ "$comments" = "Busy Out" ]; then exit="1" && stdio="WARNING - Busy, out of paper."; - elif [ "$comments" == "Ready " ]; then + elif [ "$comments" = "Ready " ]; then exit="0" && stdio="OK - PRINTING. Bytes printed: $bytes."; - elif [ "$comments" == "Printer off-line" ]; then + elif [ "$comments" = "Printer off-line" ]; then exit="1" && stdio="WARNING - PRINTING. Printer is off line."; - elif [ "$comments" == "Busy " ]; then + elif [ "$comments" = "Busy " ]; then exit="0" && stdio="OK - PRINTING. Busy. Bytes printed: $bytes."; - elif [ "$comments" == "Off line" ]; then + elif [ "$comments" = "Off line" ]; then exit="1" && stdio="WARNING - PRINTING. Printer is off line."; - elif [ "$comments" == "Printer fault" ]; then + elif [ "$comments" = "Printer fault" ]; then exit="2" && stdio="CRITICAL - PRINTING. Printer fault. Bytes printed: $bytes."; else exit="3" && stdio="Comments: $comments."; @ 1.3 log @Add DESTDIR support and LICENSE @ text @d1 1 a1 1 $NetBSD: patch-al,v 1.2 2008/05/27 21:22:03 tonnerre Exp $ @ 1.2 log @Update the nagios-plugins package to version 1.4.11. This fixes various crashes on various architectures and system, such as, for example, the check_icmp bus error on sparc64. Changes in 1.4.4: - check_ntp is now written in C instead of Perl. - check_disk bugfixes. - check_udp2, check_udp and check_tcp are now united. - check_mailq now reports mailq errors better. - check_snmp now compiles with a sane amount of effort. Changes in 1.4.5: - Fixed bug in perl's is_hostname routine. Changes in 1.4.6: - check_ping and netutils.c now do less DNS lookups. - alloca.h related compile fixes. - check_swap now works on Solaris too. - check_disk perf data can now be monitored. - check_procs had a buffer overflow. - Fixed UNIX socket error handling. - check_by_ssh now can pass -q and -o to ssh. - GNUlib sync. - check_jabber can now return things different from a warning. Changes in 1.4.7: - check_procs uses /usr/ucb/ps on Solaris which fixes pst3 problems. - check_smtp does a non-broken HELO now. - check_icmp can now have a minimum number of required hosts and also works if running for a long time on BSDs. - check_ping timeout reduced. - Everybody can now execute SUID check plugins unless indicated otherwise to configure. Changes in 1.4.8: - check_disk now has an extra option for regex matching and grouping of FSes. - check_ntp various fixes. Changes in 1.4.9: - New plugin check_cluster (not built by pkgsrc). - check_by_ssh now has improved stderr/stdout handling options (-E/-S). - check_ldap, check_radius and check_pgsql compile fixes. - check_snmp 64-bit counter support. - Better underflow checking for check_time. - check_http output is more consistent now. - check_http HTTP redirect segfault fixes. - check_tcp doesn't segfault anymore when multiple expect strings are given. - check_tcp now supports -A to check if all expect strings match. Changes in 1.4.10: - check_http redirect buffer overflow vulnerability fixed (was fixed in pkgsrc before). - check_http now shuts down HTTP/1.1 keepalive connections cleanly. - check_ldaps doesn't guess anymore whether to use SSL or STARTTLS. - check_disk now calls stat on all file systems. - check_disk now supports the -L flag for local file system checks. - check_disk now supports -i/-I for ignoring paths/partitions by regex. - check_disk now supports -A to select all file systems explicitly. - check_disk now needs to have the -E flag passed before -p or -r/-R. - check_disk is no longer buggy when case sensitive and insensitive regexes are mixed. - check_dhcp now supports -u (unicast) to emulate a relay. - check_dhcp now lets you specify the MAC address in the request using -m. - check_dhcp -r and -s options now accept host names. - check_icmp no longer bus errors on various platforms. - check_smtp now handles multiple-packet server responses properly. - Negate command line options are no longer evaluated twice by the shell. - Negate commands to be run must now be fully qualified. - Negate can now remap custom states. - check_radius now supports radius-client-ng (was already in pkgsrc). - check_by_ssh now supports multiline output. - check_ntp now honors ntp flags. Changes in 1.4.10: - check_ntp returns UNKNOWN rather than WARNING if no jitter is available. - check_cluster now accept all valid characters in its thresholds. - check_ntp is now deprecated in favor of check_ntp_peer and check_ntp_time. - check_disk no longer reports OK if disk usage exceeds 100%. - check_load handles non-triplet arguments correctly now. - Nagios::Plugin updated to 0.22. @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- contrib/check_axis.sh.orig 2003-05-26 12:09:23.000000000 +0200 @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD: patch-al,v 1.1 2006/10/16 08:40:45 seb Exp $ d3 1 a3 1 --- contrib/check_axis.sh.orig 2003-05-26 10:09:23.000000000 +0000 d21 3 a23 3 comments=`echo $lines | tr -d " " | awk '{ print $5 " " $6 }'`; else @@@@ -40,48 +40,48 @@@@ if [ "$comma" -eq "1" ]; then @ 1.1.1.1 log @import nagios-plugin-radius, a package for the nagios radius plugin from nagios-plugins-1.4.3. @ text @@