├── debian ├── compat ├── source │ └── format ├── monitoring-plugins-contrib.install ├── monitoring-plugins-contrib.docs ├── autoreconf ├── monitoring-plugins-contrib.links ├── gbp.conf ├── monitoring-plugins-contrib.lintian-overrides ├── patches │ ├── check_cups │ │ ├── epn │ │ └── ParseDateDelta │ ├── check_rbl │ │ ├── interpreter │ │ └── additional_rbls │ ├── dsa │ │ ├── epn │ │ ├── check_running_kernel_allow_tilde │ │ ├── check_packages_location │ │ ├── check_cert_expire_dir_check_name_fix │ │ ├── check_packages-inifile │ │ ├── check_running_kernel_bookworm_fix │ │ ├── check_running_kernel_jammy_fix │ │ ├── status_directory │ │ └── check_running_kernel_focal_fix │ ├── check_printer │ │ ├── epn │ │ ├── use_data_dumper_if_needed │ │ ├── use_nagios_plugin │ │ └── debian_bts │ ├── check_bgpstate │ │ └── epn │ ├── check_webinject │ │ └── epn │ ├── check_v46 │ │ └── no_epn │ ├── check_haproxy │ │ └── epn │ ├── check_raid │ │ ├── prefer_cciss_vol_status_over_hpacucli │ │ ├── no_epn │ │ ├── sort_megacli_numerical │ │ ├── fix_unparsed_error_cciss │ │ └── hpacucli_cache_fail │ ├── check_snmp_time │ │ └── epn │ ├── check_httpd_status │ │ ├── epn │ │ └── htdigest_auth │ ├── check_lm_sensors │ │ ├── interpreter │ │ ├── spelling_errors │ │ └── manpage_whatis_fix │ ├── check_libvirt │ │ └── fix_cache_path │ ├── percona-nagios-plugins │ │ └── fix_bashism │ ├── check_haproxy_stats │ │ ├── interpreter │ │ └── socket │ ├── check_nfsmounts │ │ ├── nfs4_support │ │ ├── nfs_write_location │ │ └── perl_module │ ├── check_uptime │ │ └── missing_backslash │ ├── check_snmp_environment │ │ └── epn │ ├── check_imap_quota │ │ └── syntax_error_fix │ ├── check_backuppc │ │ ├── fix_filter │ │ └── use_nagios_plugins │ └── check_smstools │ │ └── operator_siglvl ├── .gitlab-ci.yml ├── README.Debian.plugins.in ├── tests │ └── test_check_varnish └── copyright.in ├── README ├── check_multipath ├── version ├── multipath.cfg ├── Makefile ├── control └── copyright ├── check_rbl ├── src ├── check_rbl-1.7.2 │ ├── VERSION │ ├── RELEASE_NOTES.md │ ├── TODO │ ├── AUTHORS │ ├── Changes │ ├── check_rbl.pod │ ├── SECURITY.md │ ├── MANIFEST.SKIP │ ├── t │ │ └── 01_validation.t │ ├── inc │ │ └── Module │ │ │ └── Install │ │ │ ├── Scripts.pm │ │ │ └── Include.pm │ ├── publish_release.sh │ ├── META.yml │ ├── MANIFEST │ ├── MYMETA.yml │ └── COPYRIGHT ├── rbl.cfg ├── Makefile ├── control └── copyright ├── check_backuppc ├── src ├── check_backuppc-1.1.0 │ ├── TODO │ ├── README │ ├── Makefile │ ├── INSTALL │ └── changelog ├── copyright ├── control └── Makefile ├── check_hpasm ├── check_hpasm-4.8.0.2 │ ├── NEWS │ ├── AUTHORS │ ├── plugins-scripts │ │ └── HP │ │ │ ├── Proliant │ │ │ ├── Component.pm │ │ │ └── Component │ │ │ │ ├── DiskSubsystem │ │ │ │ ├── Ide │ │ │ │ │ └── CLI.pm │ │ │ │ ├── Sas │ │ │ │ │ └── CLI.pm │ │ │ │ ├── Scsi │ │ │ │ │ └── CLI.pm │ │ │ │ └── Fca │ │ │ │ │ └── CLI.pm │ │ │ │ ├── BatterySubsystem │ │ │ │ └── CLI.pm │ │ │ │ ├── AsrSubsystem │ │ │ │ └── CLI.pm │ │ │ │ └── AsrSubsystem.pm │ │ │ └── BladeSystem │ │ │ └── Component.pm │ └── Makefile.am ├── src ├── Makefile ├── control └── copyright ├── check_lm_sensors ├── src ├── check_lm_sensors-4.1.1 │ ├── VERSION │ ├── NAME │ ├── TODO │ ├── MANIFEST.SKIP │ ├── AUTHORS │ ├── MANIFEST │ ├── COPYRIGHT │ ├── META.yml │ ├── MYMETA.yml │ └── NEWS ├── copyright ├── Makefile ├── control └── lm_sensors.cfg ├── check_ssl_cert ├── src ├── check_ssl_cert_2.75.0 │ ├── VERSION │ └── Makefile ├── tests ├── Makefile ├── ssl_cert.cfg ├── control └── copyright ├── check_chrony ├── Makefile ├── control └── copyright ├── check_clamav ├── Makefile ├── control └── copyright ├── check_mysql_health ├── src ├── check_mysql_health-2.2.2 │ ├── NEWS │ ├── AUTHORS │ ├── TODO │ ├── Makefile.am │ └── t │ │ └── Makefile.am ├── control ├── Makefile └── copyright ├── check_printer ├── Makefile ├── printer.cfg └── control ├── check_whois ├── Makefile ├── whois.cfg └── control ├── check_email_delivery ├── src ├── check_email_delivery-0.7.1b │ ├── docs │ │ └── How to test plugin.txt │ └── CHANGES.txt ├── Makefile ├── email_delivery.cfg ├── copyright └── control ├── check_hp_bladechassis ├── src ├── check_hp_bladechassis.cfg ├── Makefile ├── control ├── check_hp_bladechassis-1.0.1 │ ├── CHANGES │ ├── README │ ├── INSTALL │ └── install.sh └── copyright ├── check_nfsmounts ├── Makefile ├── control └── copyright ├── check_printer_health ├── src ├── check_printer_health-1.1.0.2 │ ├── AUTHORS │ ├── NEWS │ ├── README │ ├── plugins-scripts │ │ └── Classes │ │ │ ├── HOSTRESOURCESMIB.pm │ │ │ ├── Brother.pm │ │ │ ├── PRINTERMIB.pm │ │ │ ├── Kyocera.pm │ │ │ ├── Lexmark.pm │ │ │ ├── HOSTRESOURCESMIB │ │ │ └── Component │ │ │ │ └── UptimeSubsystem.pm │ │ │ └── Lexmark │ │ │ └── Component │ │ │ └── ConsumablesSubsystem.pm │ ├── GLPlugin │ │ └── lib │ │ │ └── Monitoring │ │ │ └── GLPlugin │ │ │ ├── SNMP │ │ │ ├── Item.pm │ │ │ ├── MibsAndOids.pm │ │ │ ├── MibsAndOids │ │ │ │ ├── SNMPFRAMEWORKMIB.pm │ │ │ │ ├── SNMPV2TCV1MIB.pm │ │ │ │ ├── LEXMARKSETTINGSCONTROL.pm │ │ │ │ ├── LEXMARKSETTINGSDEFINITION.pm │ │ │ │ ├── LEXMARKROOTMIB.pm │ │ │ │ └── LEXMARKSETTINGS.pm │ │ │ └── SysDescPrettify.pm │ │ │ └── TableItem.pm │ ├── Makefile.am │ └── ChangeLog ├── control ├── Makefile └── copyright ├── check_zone_auth ├── Makefile ├── zone_auth.cfg └── control ├── check_zone_rrsig_expiration ├── Makefile ├── zone-rrsig.cfg └── control ├── madrisan-nagios-plugins-linux ├── nagios-plugins-linux │ ├── NEWS │ ├── README │ ├── VERSION │ ├── debian │ │ ├── compat │ │ ├── source │ │ │ └── format │ │ ├── nagios-plugins-linux.dirs │ │ ├── nagios-plugins-linux-cpu.install │ │ ├── nagios-plugins-linux-fc.install │ │ ├── nagios-plugins-linux-clock.install │ │ ├── nagios-plugins-linux-cswch.install │ │ ├── nagios-plugins-linux-docker.install │ │ ├── nagios-plugins-linux-intr.install │ │ ├── nagios-plugins-linux-iowait.install │ │ ├── nagios-plugins-linux-load.install │ │ ├── nagios-plugins-linux-memory.install │ │ ├── nagios-plugins-linux-paging.install │ │ ├── nagios-plugins-linux-swap.install │ │ ├── nagios-plugins-linux-uptime.install │ │ ├── nagios-plugins-linux-users.install │ │ ├── nagios-plugins-linux-cpufreq.install │ │ ├── nagios-plugins-linux-nbprocs.install │ │ ├── nagios-plugins-linux-network.install │ │ ├── nagios-plugins-linux-pressure.install │ │ ├── nagios-plugins-linux-tcpcount.install │ │ ├── nagios-plugins-linux-ifmountfs.install │ │ ├── nagios-plugins-linux-multipath.install │ │ ├── nagios-plugins-linux-readonlyfs.install │ │ ├── nagios-plugins-linux-temperature.install │ │ ├── rules │ │ ├── nagios-plugins-linux-network.links │ │ └── copyright │ ├── tests │ │ ├── ts_procpressurecpu.data │ │ ├── ts_procpressureio.data │ │ ├── ts_container_podman_GetContainerStats.data │ │ └── ts_sysdockermemstat.data │ ├── ChangeLog │ ├── .gitmodules │ ├── nagios-plugins-linux-logo-128.png │ ├── nagios-plugins-linux-logo-256.png │ ├── contrib │ │ └── README.md │ ├── .gitattributes │ ├── .codeclimate.yml │ ├── .gitignore │ ├── .github │ │ └── ISSUE_TEMPLATE │ │ │ ├── bug_report.md │ │ │ └── feature_request.md │ ├── m4 │ │ └── ltversion.m4 │ ├── SECURITY.md │ ├── Makefile.am │ ├── include │ │ ├── url_encode.h │ │ ├── kernelver.h │ │ ├── progversion.h │ │ ├── getenv.h │ │ ├── system.h │ │ ├── xasprintf.h │ │ ├── xstrton.h │ │ ├── logging.h │ │ ├── units.h │ │ └── json_helpers.h │ └── packages │ │ └── specs │ │ └── APKBUILD.in └── copyright ├── check_cups ├── Makefile ├── cups.cfg ├── tests ├── copyright └── control ├── check_drbd ├── Makefile ├── copyright └── control ├── check_raid ├── Makefile └── copyright ├── check_ajp ├── Makefile ├── ajp.cfg ├── control └── copyright ├── check_bgpstate ├── Makefile ├── copyright ├── bgpstate.cfg └── control ├── check_haproxy ├── Makefile ├── haproxy.cfg ├── copyright └── control ├── check_libvirt ├── Makefile ├── control └── copyright ├── check_snmp_time ├── Makefile ├── copyright ├── snmp_time.cfg └── control ├── check_uptime ├── Makefile ├── tests ├── check_uptime.cfg ├── control └── copyright ├── check_httpd_status ├── Makefile ├── tests ├── httpd_status.cfg ├── control └── copyright ├── dsa ├── tests ├── etc │ └── obsolete-packages-ignore ├── update-files.sh ├── Makefile └── control ├── check_v46 ├── Makefile ├── control └── copyright ├── check_libs_ng ├── Makefile ├── control └── copyright ├── check_etc_hosts ├── Makefile ├── tests ├── control └── copyright ├── check_etc_resolv ├── Makefile ├── tests ├── control └── copyright ├── check_ipmi_sensor ├── Makefile ├── control └── ipmi_sensor.cfg ├── check_debsecan ├── Makefile ├── tests ├── debsecan.cfg ├── control └── copyright ├── check_smstools ├── copyright ├── Makefile └── control ├── .gitignore ├── check_graphite ├── control ├── copyright └── Makefile ├── check_checksums ├── tests ├── Makefile ├── control └── copyright ├── check_redis ├── Makefile ├── redis.cfg ├── control └── copyright ├── check_memcached ├── memcached.cfg ├── Makefile ├── copyright └── control ├── check_haproxy_stats ├── Makefile ├── control └── copyright ├── check_snmp_environment ├── Makefile ├── copyright └── control ├── extras ├── control ├── Makefile └── copyright ├── percona-nagios-plugins ├── Makefile ├── control └── copyright ├── check_webinject ├── Makefile ├── webinject.cfg ├── control └── copyright ├── check_mongodb ├── Makefile ├── control └── mongodb.cfg ├── .gitlab-ci.yml └── Makefile /debian/compat: -------------------------------------------------------------------------------- 1 | 8 2 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | debian/README.source -------------------------------------------------------------------------------- /check_multipath/version: -------------------------------------------------------------------------------- 1 | 0.1.5 2 | -------------------------------------------------------------------------------- /check_rbl/src: -------------------------------------------------------------------------------- 1 | check_rbl-1.7.2/ -------------------------------------------------------------------------------- /check_backuppc/src: -------------------------------------------------------------------------------- 1 | check_backuppc-1.1.0 -------------------------------------------------------------------------------- /check_hpasm/check_hpasm-4.8.0.2/NEWS: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /check_hpasm/src: -------------------------------------------------------------------------------- 1 | check_hpasm-4.8.0.2/ -------------------------------------------------------------------------------- /debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (native) 2 | -------------------------------------------------------------------------------- /check_lm_sensors/src: -------------------------------------------------------------------------------- 1 | check_lm_sensors-4.1.1 -------------------------------------------------------------------------------- /check_rbl/check_rbl-1.7.2/VERSION: -------------------------------------------------------------------------------- 1 | 1.7.1 2 | -------------------------------------------------------------------------------- /check_ssl_cert/src: -------------------------------------------------------------------------------- 1 | check_ssl_cert_2.75.0/ -------------------------------------------------------------------------------- /check_chrony/Makefile: -------------------------------------------------------------------------------- 1 | include ../common.mk 2 | -------------------------------------------------------------------------------- /check_clamav/Makefile: -------------------------------------------------------------------------------- 1 | include ../common.mk 2 | -------------------------------------------------------------------------------- /check_mysql_health/src: -------------------------------------------------------------------------------- 1 | check_mysql_health-2.2.2 -------------------------------------------------------------------------------- /check_printer/Makefile: -------------------------------------------------------------------------------- 1 | include ../common.mk 2 | -------------------------------------------------------------------------------- /check_whois/Makefile: -------------------------------------------------------------------------------- 1 | include ../common.mk 2 | -------------------------------------------------------------------------------- /check_email_delivery/src: -------------------------------------------------------------------------------- 1 | check_email_delivery-0.7.1b -------------------------------------------------------------------------------- /check_hp_bladechassis/src: -------------------------------------------------------------------------------- 1 | check_hp_bladechassis-1.0.1 -------------------------------------------------------------------------------- /check_nfsmounts/Makefile: -------------------------------------------------------------------------------- 1 | include ../common.mk 2 | -------------------------------------------------------------------------------- /check_printer_health/src: -------------------------------------------------------------------------------- 1 | check_printer_health-1.1.0.2/ -------------------------------------------------------------------------------- /check_zone_auth/Makefile: -------------------------------------------------------------------------------- 1 | include ../common.mk 2 | -------------------------------------------------------------------------------- /check_lm_sensors/check_lm_sensors-4.1.1/VERSION: -------------------------------------------------------------------------------- 1 | 4.1.1 2 | -------------------------------------------------------------------------------- /check_printer_health/check_printer_health-1.1.0.2/AUTHORS: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /check_printer_health/check_printer_health-1.1.0.2/NEWS: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /check_printer_health/check_printer_health-1.1.0.2/README: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /check_ssl_cert/check_ssl_cert_2.75.0/VERSION: -------------------------------------------------------------------------------- 1 | 2.75.0 2 | -------------------------------------------------------------------------------- /debian/monitoring-plugins-contrib.install: -------------------------------------------------------------------------------- 1 | debian/tmp/* 2 | -------------------------------------------------------------------------------- /check_backuppc/check_backuppc-1.1.0/TODO: -------------------------------------------------------------------------------- 1 | Test with Nagios2 2 | -------------------------------------------------------------------------------- /check_zone_rrsig_expiration/Makefile: -------------------------------------------------------------------------------- 1 | include ../common.mk 2 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/NEWS: -------------------------------------------------------------------------------- 1 | NEWS.md -------------------------------------------------------------------------------- /check_lm_sensors/check_lm_sensors-4.1.1/NAME: -------------------------------------------------------------------------------- 1 | check_lm_sensors 2 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/README: -------------------------------------------------------------------------------- 1 | README.md -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/VERSION: -------------------------------------------------------------------------------- 1 | 30 2 | -------------------------------------------------------------------------------- /check_cups/Makefile: -------------------------------------------------------------------------------- 1 | #/usr/bin/make -f 2 | 3 | include ../common.mk 4 | -------------------------------------------------------------------------------- /check_drbd/Makefile: -------------------------------------------------------------------------------- 1 | #/usr/bin/make -f 2 | 3 | include ../common.mk 4 | -------------------------------------------------------------------------------- /debian/monitoring-plugins-contrib.docs: -------------------------------------------------------------------------------- 1 | debian/README.Debian.plugins 2 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/compat: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /check_raid/Makefile: -------------------------------------------------------------------------------- 1 | #/usr/bin/make -f 2 | 3 | include ../common.mk 4 | 5 | -------------------------------------------------------------------------------- /check_ajp/Makefile: -------------------------------------------------------------------------------- 1 | PLUGIN := check_ajp 2 | 3 | include ../common.mk 4 | 5 | 6 | -------------------------------------------------------------------------------- /check_bgpstate/Makefile: -------------------------------------------------------------------------------- 1 | #/usr/bin/make -f 2 | 3 | include ../common.mk 4 | 5 | -------------------------------------------------------------------------------- /check_haproxy/Makefile: -------------------------------------------------------------------------------- 1 | #/usr/bin/make -f 2 | 3 | include ../common.mk 4 | 5 | -------------------------------------------------------------------------------- /check_libvirt/Makefile: -------------------------------------------------------------------------------- 1 | #/usr/bin/make -f 2 | 3 | include ../common.mk 4 | 5 | -------------------------------------------------------------------------------- /check_rbl/check_rbl-1.7.2/RELEASE_NOTES.md: -------------------------------------------------------------------------------- 1 | Fixed confliting command line option 2 | -------------------------------------------------------------------------------- /check_snmp_time/Makefile: -------------------------------------------------------------------------------- 1 | #/usr/bin/make -f 2 | 3 | include ../common.mk 4 | 5 | -------------------------------------------------------------------------------- /check_uptime/Makefile: -------------------------------------------------------------------------------- 1 | PLUGIN := check_uptime 2 | 3 | include ../common.mk 4 | 5 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/source/format: -------------------------------------------------------------------------------- 1 | 1.0 2 | -------------------------------------------------------------------------------- /check_hpasm/check_hpasm-4.8.0.2/AUTHORS: -------------------------------------------------------------------------------- 1 | Gerhard Lausser 2 | -------------------------------------------------------------------------------- /check_httpd_status/Makefile: -------------------------------------------------------------------------------- 1 | #/usr/bin/make -f 2 | 3 | include ../common.mk 4 | 5 | -------------------------------------------------------------------------------- /dsa/tests: -------------------------------------------------------------------------------- 1 | Depends: @ 2 | Test-Command: /usr/lib/nagios/plugins/check_entropy -w 1 3 | -------------------------------------------------------------------------------- /check_mysql_health/check_mysql_health-2.2.2/NEWS: -------------------------------------------------------------------------------- 1 | buy a newspaper if you want to read news 2 | -------------------------------------------------------------------------------- /check_rbl/check_rbl-1.7.2/TODO: -------------------------------------------------------------------------------- 1 | * refactor mdns to reduce code complexity 2 | * unit tests 3 | -------------------------------------------------------------------------------- /debian/autoreconf: -------------------------------------------------------------------------------- 1 | check_hpasm/src/ 2 | check_mysql_health/src/ 3 | check_varnish/src/ 4 | -------------------------------------------------------------------------------- /dsa/etc/obsolete-packages-ignore: -------------------------------------------------------------------------------- 1 | /linux-image-.*/ 2 | /kernel-image-.*/ 3 | buildd 4 | sbuild 5 | -------------------------------------------------------------------------------- /check_mysql_health/check_mysql_health-2.2.2/AUTHORS: -------------------------------------------------------------------------------- 1 | Gerhard Lausser 2 | -------------------------------------------------------------------------------- /check_v46/Makefile: -------------------------------------------------------------------------------- 1 | #/usr/bin/make -f 2 | 3 | PLUGIN = check_v46 4 | 5 | include ../common.mk 6 | 7 | -------------------------------------------------------------------------------- /check_libs_ng/Makefile: -------------------------------------------------------------------------------- 1 | #/usr/bin/make -f 2 | 3 | PLUGIN = check_libs_ng 4 | 5 | include ../common.mk 6 | -------------------------------------------------------------------------------- /check_etc_hosts/Makefile: -------------------------------------------------------------------------------- 1 | #/usr/bin/make -f 2 | 3 | PLUGIN = check_etc_hosts 4 | 5 | include ../common.mk 6 | -------------------------------------------------------------------------------- /check_etc_resolv/Makefile: -------------------------------------------------------------------------------- 1 | #/usr/bin/make -f 2 | 3 | PLUGIN = check_etc_resolv 4 | 5 | include ../common.mk 6 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/nagios-plugins-linux.dirs: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins 2 | -------------------------------------------------------------------------------- /check_etc_resolv/tests: -------------------------------------------------------------------------------- 1 | Test-Command: /usr/lib/nagios/plugins/check_etc_resolv 2 | Depends: bind9-host | knot-host 3 | -------------------------------------------------------------------------------- /debian/monitoring-plugins-contrib.links: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins/check_libs_ng usr/lib/nagios/plugins/check_libs 2 | -------------------------------------------------------------------------------- /check_mysql_health/check_mysql_health-2.2.2/TODO: -------------------------------------------------------------------------------- 1 | a lot 2 | 3 | http://blog.it4sport.de/2010/10/10/optimize-table-fallig/ 4 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/nagios-plugins-linux-cpu.install: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins/check_cpu 2 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/nagios-plugins-linux-fc.install: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins/check_fc 2 | -------------------------------------------------------------------------------- /check_rbl/check_rbl-1.7.2/AUTHORS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bzed/pkg-nagios-plugins-contrib/HEAD/check_rbl/check_rbl-1.7.2/AUTHORS -------------------------------------------------------------------------------- /check_rbl/check_rbl-1.7.2/Changes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bzed/pkg-nagios-plugins-contrib/HEAD/check_rbl/check_rbl-1.7.2/Changes -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/nagios-plugins-linux-clock.install: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins/check_clock 2 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/nagios-plugins-linux-cswch.install: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins/check_cswch 2 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/nagios-plugins-linux-docker.install: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins/check_docker 2 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/nagios-plugins-linux-intr.install: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins/check_intr 2 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/nagios-plugins-linux-iowait.install: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins/check_iowait 2 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/nagios-plugins-linux-load.install: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins/check_load 2 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/nagios-plugins-linux-memory.install: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins/check_memory 2 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/nagios-plugins-linux-paging.install: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins/check_paging 2 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/nagios-plugins-linux-swap.install: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins/check_swap 2 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/nagios-plugins-linux-uptime.install: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins/check_uptime 2 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/nagios-plugins-linux-users.install: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins/check_users 2 | -------------------------------------------------------------------------------- /check_lm_sensors/check_lm_sensors-4.1.1/TODO: -------------------------------------------------------------------------------- 1 | * other types of sensors? 2 | * other OSes? 3 | * mac os X: http://cutup.org/code/sh/tp 4 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/nagios-plugins-linux-cpufreq.install: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins/check_cpufreq 2 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/nagios-plugins-linux-nbprocs.install: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins/check_nbprocs 2 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/nagios-plugins-linux-network.install: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins/check_network 2 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/nagios-plugins-linux-pressure.install: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins/check_pressure 2 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/nagios-plugins-linux-tcpcount.install: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins/check_tcpcount 2 | -------------------------------------------------------------------------------- /check_ipmi_sensor/Makefile: -------------------------------------------------------------------------------- 1 | #/usr/bin/make -f 2 | 3 | DOCFILES = contrib/default-combinedgraph.template 4 | 5 | include ../common.mk 6 | 7 | -------------------------------------------------------------------------------- /check_uptime/tests: -------------------------------------------------------------------------------- 1 | Depends: libmonitoring-plugin-perl | libnagios-plugin-perl 2 | Test-Command: /usr/lib/nagios/plugins/check_uptime -f 3 | -------------------------------------------------------------------------------- /debian/gbp.conf: -------------------------------------------------------------------------------- 1 | [buildpackage] 2 | sign-tags = True 3 | posttag = git push && git push --tags 4 | pbuilder-options = --source-only-changes 5 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/nagios-plugins-linux-ifmountfs.install: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins/check_ifmountfs 2 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/nagios-plugins-linux-multipath.install: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins/check_multipath 2 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/nagios-plugins-linux-readonlyfs.install: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins/check_readonlyfs 2 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/nagios-plugins-linux-temperature.install: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins/check_temperature 2 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/tests/ts_procpressurecpu.data: -------------------------------------------------------------------------------- 1 | some avg10=7.48 avg60=6.26 avg300=6.66 total=200932088 2 | -------------------------------------------------------------------------------- /check_debsecan/Makefile: -------------------------------------------------------------------------------- 1 | #/usr/bin/make -f 2 | 3 | PLUGIN = src/check_debsecan 4 | DOCFILES = src/README.md 5 | 6 | include ../common.mk 7 | 8 | -------------------------------------------------------------------------------- /check_rbl/check_rbl-1.7.2/check_rbl.pod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bzed/pkg-nagios-plugins-contrib/HEAD/check_rbl/check_rbl-1.7.2/check_rbl.pod -------------------------------------------------------------------------------- /check_smstools/copyright: -------------------------------------------------------------------------------- 1 | Author: Patrick Schoenfeld 2 | This file is licensed under the terms of the GPL v2 or later. 3 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/ChangeLog: -------------------------------------------------------------------------------- 1 | See GitHub: 2 | https://github.com/madrisan/nagios-plugins-linux/commits/master 3 | -------------------------------------------------------------------------------- /check_ssl_cert/tests: -------------------------------------------------------------------------------- 1 | Depends: ca-certificates, openssl, curl, file, bc, host 2 | Test-Command: /usr/lib/nagios/plugins/check_ssl_cert -H www.debian.org 3 | -------------------------------------------------------------------------------- /check_whois/whois.cfg: -------------------------------------------------------------------------------- 1 | define command { 2 | command_name check_whois 3 | command_line /usr/lib/nagios/plugins/check_whois $HOSTADDRESS$ 4 | } 5 | -------------------------------------------------------------------------------- /check_hpasm/check_hpasm-4.8.0.2/plugins-scripts/HP/Proliant/Component.pm: -------------------------------------------------------------------------------- 1 | package HP::Proliant::Component; 2 | our @ISA = qw(HP::Proliant); 3 | 4 | 1; 5 | 6 | -------------------------------------------------------------------------------- /check_hpasm/check_hpasm-4.8.0.2/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to produce Makefile.in 2 | 3 | SUBDIRS = plugins-scripts 4 | 5 | dist-hook: 6 | make 7 | -------------------------------------------------------------------------------- /check_rbl/check_rbl-1.7.2/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Reporting a Vulnerability 4 | 5 | Please contact the [matteo@corti.li](mailto:matteo@corti.li) directly 6 | -------------------------------------------------------------------------------- /check_zone_auth/zone_auth.cfg: -------------------------------------------------------------------------------- 1 | define command { 2 | command_name check_zone_auth 3 | command_line /usr/lib/nagios/plugins/check_zone_auth -Z $HOSTADDRESS$ 4 | } 5 | -------------------------------------------------------------------------------- /check_ssl_cert/Makefile: -------------------------------------------------------------------------------- 1 | #/usr/bin/make -f 2 | 3 | PLUGIN = src/check_ssl_cert 4 | MANPAGES = src/check_ssl_cert.1 5 | DOCFILES = src/README.md 6 | 7 | include ../common.mk 8 | 9 | -------------------------------------------------------------------------------- /check_zone_rrsig_expiration/zone-rrsig.cfg: -------------------------------------------------------------------------------- 1 | define command { 2 | command_name check_zone_rrsig 3 | command_line /usr/lib/nagios/plugins/check_zone_rrsig -Z $HOSTADDRESS$ 4 | } 5 | -------------------------------------------------------------------------------- /check_debsecan/tests: -------------------------------------------------------------------------------- 1 | Depends: debsecan 2 | Test-Command: /usr/lib/nagios/plugins/check_debsecan -f 9998 -F 9999 -o 9998 -O 9999 -l 9998 -L 9999 -m 9998 -M 9999 -u 9998 -U 9999 -r -s sid 3 | -------------------------------------------------------------------------------- /check_hpasm/check_hpasm-4.8.0.2/plugins-scripts/HP/BladeSystem/Component.pm: -------------------------------------------------------------------------------- 1 | package HP::BladeSystem::Component; 2 | 3 | use strict; 4 | 5 | our @ISA = qw(HP::BladeSystem); 6 | 7 | 1; 8 | -------------------------------------------------------------------------------- /check_printer_health/check_printer_health-1.1.0.2/plugins-scripts/Classes/HOSTRESOURCESMIB.pm: -------------------------------------------------------------------------------- 1 | package Classes::HOSTRESOURCESMIB; 2 | our @ISA = qw(Classes::Device); 3 | use strict; 4 | 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | debian/files 2 | debian/nagios-plugins-contrib/* 3 | debian/nagios-plugins-contrib.debhelper.log 4 | debian/nagios-plugins-contrib.substvars 5 | .*.swp 6 | .pc 7 | *.rej 8 | *.orig 9 | -------------------------------------------------------------------------------- /check_debsecan/debsecan.cfg: -------------------------------------------------------------------------------- 1 | # 'check_debsecan' command definition 2 | define command{ 3 | command_name check_debsecan 4 | command_line /usr/lib/nagios/plugins/check_debsecan 5 | } 6 | -------------------------------------------------------------------------------- /check_etc_hosts/tests: -------------------------------------------------------------------------------- 1 | Depends: libnet-dns-perl 2 | Test-Command: echo "127.0.0.1 localhost" > /etc/hosts && /usr/lib/nagios/plugins/check_etc_hosts 3 | Restrictions: needs-root, breaks-testbed 4 | -------------------------------------------------------------------------------- /check_multipath/multipath.cfg: -------------------------------------------------------------------------------- 1 | # 'multipath' command definition 2 | define command{ 3 | command_name check_multipath 4 | command_line /usr/lib/nagios/plugins/check_multipath 5 | } 6 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/tests/ts_procpressureio.data: -------------------------------------------------------------------------------- 1 | some avg10=0.08 avg60=0.02 avg300=0.01 total=40636071 2 | full avg10=0.04 avg60=0.01 avg300=0.00 total=32897091 3 | -------------------------------------------------------------------------------- /check_graphite/control: -------------------------------------------------------------------------------- 1 | Uploaders: Bernd Zeimetz 2 | Description: Plugin to monitor graphite metrics 3 | Homepage: https://github.com/disqus/nagios-plugins 4 | Recommends: python3 5 | -------------------------------------------------------------------------------- /check_graphite/copyright: -------------------------------------------------------------------------------- 1 | Copyright: (c) 2012 DISQUS. 2 | License: Apache License 2.0 3 | 4 | On Debian systems, a copy of the Apache License 2.0 can be found in 5 | /usr/share/common-licenses/Apache-2.0 6 | -------------------------------------------------------------------------------- /check_checksums/tests: -------------------------------------------------------------------------------- 1 | Test-Command: mkdir -p /etc/nagios/ && sha256sum /bin/true > /etc/nagios/check_checksums.sha256 && /usr/lib/nagios/plugins/check_checksums 2 | Restrictions: needs-root, breaks-testbed 3 | -------------------------------------------------------------------------------- /check_multipath/Makefile: -------------------------------------------------------------------------------- 1 | PLUGIN := check_multipath 2 | CLEANFILES := check_multipath 3 | 4 | include ../common.mk 5 | 6 | check_multipath: check-multipath.pl 7 | cp $< $@ 8 | chmod 755 $@ 9 | 10 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "packages/docker-shell-helpers"] 2 | path = packages/docker-shell-helpers 3 | url = https://github.com/madrisan/docker-shell-helpers 4 | -------------------------------------------------------------------------------- /check_ajp/ajp.cfg: -------------------------------------------------------------------------------- 1 | # 'check_ajp' command definition 2 | define command{ 3 | command_name check_ajp 4 | command_line /usr/lib/nagios/plugins/check_ajp --app '$HOSTADDRESS$' 5 | } 6 | 7 | -------------------------------------------------------------------------------- /check_graphite/Makefile: -------------------------------------------------------------------------------- 1 | PLUGIN := check_graphite 2 | CLEANFILES := check_graphite 3 | DOCFILES := README.md 4 | 5 | include ../common.mk 6 | 7 | check_graphite: 8 | cp $@.py $@ 9 | chmod 755 $@ 10 | 11 | -------------------------------------------------------------------------------- /check_redis/Makefile: -------------------------------------------------------------------------------- 1 | PLUGIN := check_redis 2 | CLEANEXTRAFILES := $(PLUGIN) 3 | PNP4NAGIOSTEMPLATES := check_redis.php 4 | 5 | include ../common.mk 6 | 7 | check_redis: check_redis.pl 8 | cp $< $@ 9 | 10 | -------------------------------------------------------------------------------- /check_chrony/control: -------------------------------------------------------------------------------- 1 | Uploaders: Bernd Zeimetz 2 | Description: chrony NTP server check 3 | This plugin is able to check the stratum time difference of a local 4 | chronyd instance. 5 | Version: 0.1 6 | -------------------------------------------------------------------------------- /check_haproxy/haproxy.cfg: -------------------------------------------------------------------------------- 1 | # 'check_haproxy' command definition 2 | define command{ 3 | command_name check_haproxy 4 | command_line /usr/lib/nagios/plugins/check_haproxy -u '$ARG1$' 5 | } 6 | -------------------------------------------------------------------------------- /check_memcached/memcached.cfg: -------------------------------------------------------------------------------- 1 | # 'check_memcached' command definition 2 | define command{ 3 | command_name check_memcached 4 | command_line /usr/lib/nagios/plugins/check_memcached -H '$HOSTADDRESS$' 5 | } 6 | -------------------------------------------------------------------------------- /check_printer/printer.cfg: -------------------------------------------------------------------------------- 1 | define command{ 2 | command_name check_printer 3 | command_line /usr/lib/nagios/plugins/check_printer -h '$HOSTADDRESS$' -w '$ARG1$' -c '$ARG2$' $ARG3$ 4 | } 5 | 6 | -------------------------------------------------------------------------------- /check_redis/redis.cfg: -------------------------------------------------------------------------------- 1 | # 'check_redis' command definition 2 | define command{ 3 | command_name check_redis 4 | command_line /usr/lib/nagios/plugins/check_redis -H $HOSTADDRESS$ $ARG1$ 5 | } 6 | -------------------------------------------------------------------------------- /check_ssl_cert/ssl_cert.cfg: -------------------------------------------------------------------------------- 1 | # 'check_ssl_cert' command definition 2 | define command{ 3 | command_name check_ssl_cert 4 | command_line /usr/lib/nagios/plugins/check_ssl_cert -H $HOSTADDRESS$ '$ARG1$' 5 | } 6 | -------------------------------------------------------------------------------- /check_checksums/Makefile: -------------------------------------------------------------------------------- 1 | PLUGIN := check_checksums 2 | 3 | include ../common.mk 4 | 5 | install:: 6 | install -d $(DESTDIR)/usr/lib/nagios 7 | install -m 755 -o root -g root update_checksums $(DESTDIR)/usr/lib/nagios 8 | 9 | -------------------------------------------------------------------------------- /check_cups/cups.cfg: -------------------------------------------------------------------------------- 1 | # 'check_cups_queue' command definition 2 | define command{ 3 | command_name check_cups_queue 4 | command_line /usr/lib/nagios/plugins/check_cups -H '$HOSTADDRESS$' '$ARG1$' 5 | } 6 | -------------------------------------------------------------------------------- /check_bgpstate/copyright: -------------------------------------------------------------------------------- 1 | C) 2000 Christoph Kron 2 | 3 | License: GPL-2 4 | 5 | On Debian systems, the complete text of the GNU General 6 | Public License version 1 can be found in "/usr/share/common-licenses/GPL-2". 7 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/nagios-plugins-linux-logo-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bzed/pkg-nagios-plugins-contrib/HEAD/madrisan-nagios-plugins-linux/nagios-plugins-linux/nagios-plugins-linux-logo-128.png -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/nagios-plugins-linux-logo-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bzed/pkg-nagios-plugins-contrib/HEAD/madrisan-nagios-plugins-linux/nagios-plugins-linux/nagios-plugins-linux-logo-256.png -------------------------------------------------------------------------------- /check_cups/tests: -------------------------------------------------------------------------------- 1 | Depends: cups, libdate-manip-perl, libmonitoring-plugin-perl | libnagios-plugin-perl, libnet-cups-perl 2 | Test-Command: /usr/lib/nagios/plugins/check_cups -H localhost 3 | Restrictions: needs-root, isolation-container 4 | -------------------------------------------------------------------------------- /check_checksums/control: -------------------------------------------------------------------------------- 1 | Version: 20130611 2 | Uploaders: Bernd Zeimetz 3 | Description: plugin to verify file checksums 4 | against (local, not 100% secure) lists. 5 | Supports md5 sha1 sha224 sha256 sha384 sha512 checksums. 6 | -------------------------------------------------------------------------------- /check_haproxy_stats/Makefile: -------------------------------------------------------------------------------- 1 | #/usr/bin/make -f 2 | 3 | PLUGIN := check_haproxy_stats 4 | CLEANEXTRAFILES := $(PLUGIN) 5 | 6 | 7 | include ../common.mk 8 | 9 | check_haproxy_stats: check_haproxy_stats.pl 10 | cp $< $@ 11 | 12 | 13 | -------------------------------------------------------------------------------- /check_libs_ng/control: -------------------------------------------------------------------------------- 1 | Uploaders: Leo Antunes 2 | Description: plugin to report processes using outdated libraries 3 | depents on kernel features present in kernels newer than 3.3 4 | Version: 0.1.0 5 | Recommends: python3 6 | -------------------------------------------------------------------------------- /check_snmp_environment/Makefile: -------------------------------------------------------------------------------- 1 | PLUGIN := check_snmp_environment 2 | CLEANFILES := check_snmp_environment 3 | 4 | include ../common.mk 5 | 6 | check_snmp_environment: check_snmp_environment.pl 7 | cp $< $@ 8 | chmod 755 $@ 9 | 10 | -------------------------------------------------------------------------------- /check_backuppc/copyright: -------------------------------------------------------------------------------- 1 | Copyright (C) 2006,2007 Seneca Cunningham 2 | 3 | License: GPL v2 4 | 5 | On Debian systems, the complete text of the GNU General 6 | Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". 7 | -------------------------------------------------------------------------------- /check_bgpstate/bgpstate.cfg: -------------------------------------------------------------------------------- 1 | # 'check_snmp_bgpstate' command definition 2 | define command{ 3 | command_name check_snmp_bgpstate 4 | command_line /usr/lib/nagios/plugins/check_bgpstate '$HOSTADDRESS$' -c '$ARG1$' 5 | } 6 | -------------------------------------------------------------------------------- /check_hp_bladechassis/check_hp_bladechassis.cfg: -------------------------------------------------------------------------------- 1 | # HP blade enclosure check 2 | define command { 3 | command_name check_hp_bladechassis 4 | command_line /usr/lib/nagios/plugins/check_hp_bladechassis -H $HOSTADDRESS$ 5 | } 6 | 7 | -------------------------------------------------------------------------------- /check_smstools/Makefile: -------------------------------------------------------------------------------- 1 | PLUGIN := check_smstools 2 | CLEANFILES := check_smstools 3 | DOCFILES := README.check_smstools 4 | 5 | 6 | include ../common.mk 7 | 8 | check_smstools: bin/check_smstools 9 | cp $< $@ 10 | chmod 755 $@ 11 | 12 | -------------------------------------------------------------------------------- /check_rbl/rbl.cfg: -------------------------------------------------------------------------------- 1 | # 'check_rbl' command definition 2 | define command{ 3 | command_name check_rbl 4 | command_line /usr/lib/nagios/plugins/check_rbl -H '$HOSTADDRESS$' --extra-opts='rbl@/etc/nagios-plugins/check_rbl.ini' --timeout=60 5 | } 6 | -------------------------------------------------------------------------------- /check_debsecan/control: -------------------------------------------------------------------------------- 1 | Uploaders: Stefan Schoerghofer 2 | Recommends: debsecan 3 | Version: 1.0.0 4 | Homepage: https://github.com/AMD1212/check_debsecan 5 | Description: plugin to check the Debian CVE lists against your installed packages 6 | -------------------------------------------------------------------------------- /check_lm_sensors/copyright: -------------------------------------------------------------------------------- 1 | Copyright (c) 2007, ETH Zurich. 2 | 3 | Author: Matteo Corti 4 | 5 | This module is free software; you can redistribute it and/or modify it 6 | under the terms of GNU general public license (gpl) version 3. 7 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | NP_LIBEXEC:=/usr/lib/nagios/plugins 4 | 5 | %: 6 | dh $@ --with autoreconf 7 | 8 | override_dh_auto_configure: 9 | dh_auto_configure -- --libexecdir=${NP_LIBEXEC} 10 | -------------------------------------------------------------------------------- /check_haproxy/copyright: -------------------------------------------------------------------------------- 1 | 2010 Stéphane Urbanovski 2 | 3 | License: GPL v2 4 | 5 | On Debian systems, the complete text of the GNU General 6 | Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". 7 | 8 | 9 | -------------------------------------------------------------------------------- /check_hp_bladechassis/Makefile: -------------------------------------------------------------------------------- 1 | PLUGIN := check_hp_bladechassis 2 | MANPAGES := check_hp_bladechassis.8 3 | 4 | CLEANFILES := check_hp_bladechassis check_hp_bladechassis.8 5 | 6 | include ../common.mk 7 | 8 | 9 | check_hp_%: src/check_hp_% 10 | cp $< $@ 11 | 12 | -------------------------------------------------------------------------------- /check_rbl/check_rbl-1.7.2/MANIFEST.SKIP: -------------------------------------------------------------------------------- 1 | \.DS_Store$ 2 | ^_build 3 | ^Build$ 4 | ^blib 5 | ~$ 6 | \.bak$ 7 | \.sw.$ 8 | \.svn 9 | \.git 10 | \.tdy$ 11 | ^cover_db 12 | ^Makefile$ 13 | ^Makefile.old$ 14 | ^pm_to_blib$ 15 | ^.# 16 | ^# 17 | ^check_rbl- 18 | notes.txt 19 | -------------------------------------------------------------------------------- /check_snmp_time/copyright: -------------------------------------------------------------------------------- 1 | (c) 2007 Karl Bolingbroke 2 | (c) 2010 Frank Migge 3 | 4 | License: GPL-1 5 | 6 | On Debian systems, the complete text of the GNU General 7 | Public License version 1 can be found in "/usr/share/common-licenses/GPL-1". 8 | -------------------------------------------------------------------------------- /check_httpd_status/tests: -------------------------------------------------------------------------------- 1 | Depends: apache2, liblocale-gettext-perl, libmonitoring-plugin-perl | libnagios-plugin-perl, liblwp-useragent-determined-perl 2 | Test-Command: /usr/lib/nagios/plugins/check_httpd_status -H localhost 3 | Restrictions: needs-root, allow-stderr, isolation-container 4 | -------------------------------------------------------------------------------- /check_lm_sensors/check_lm_sensors-4.1.1/MANIFEST.SKIP: -------------------------------------------------------------------------------- 1 | \.DS_Store$ 2 | ^_build 3 | ^Build$ 4 | ^blib 5 | ~$ 6 | \.bak$ 7 | \.sw.$ 8 | \.svn 9 | ^cover_db 10 | ^Makefile$ 11 | ^Makefile.old$ 12 | ^pm_to_blib$ 13 | ^.# 14 | ^# 15 | ^check_lm_sensors- 16 | \.git 17 | \.travis.yml 18 | -------------------------------------------------------------------------------- /check_printer_health/check_printer_health-1.1.0.2/GLPlugin/lib/Monitoring/GLPlugin/SNMP/Item.pm: -------------------------------------------------------------------------------- 1 | package Monitoring::GLPlugin::SNMP::Item; 2 | our @ISA = qw(Monitoring::GLPlugin::SNMP::CSF Monitoring::GLPlugin::Item Monitoring::GLPlugin::SNMP); 3 | use strict; 4 | 5 | 1; 6 | 7 | __END__ 8 | -------------------------------------------------------------------------------- /check_httpd_status/httpd_status.cfg: -------------------------------------------------------------------------------- 1 | # 'check_httpd_status' command definition 2 | define command{ 3 | command_name check_httpd_status 4 | command_line /usr/lib/nagios/plugins/check_httpd_status -H $HOSTADDRESS$ -p '$ARG1$' -w '$ARG2$': -c '$ARG3$': '$ARG4$' 5 | } 6 | -------------------------------------------------------------------------------- /extras/control: -------------------------------------------------------------------------------- 1 | Suggests: nsca-client 2 | Version: 1 3 | Uploaders: Bernd Zeimetz 4 | Suggests: nagios-plugin-check-multi, moreutils 5 | Description: various scripts and extras 6 | Not a plugin, but a collection of various useful 7 | event/obsession handlers and similar scripts. 8 | -------------------------------------------------------------------------------- /check_etc_resolv/control: -------------------------------------------------------------------------------- 1 | Uploaders: Petter Reinholdtsen 2 | Description: plugin to check /etc/resolv.conf 3 | Check /etc/resolv.conf, and make sure the name servers listed are 4 | working. It will ignore entries with '# NAGIOSIGNORE' at the end. 5 | Recommends: bind9-host | knot-host 6 | -------------------------------------------------------------------------------- /check_lm_sensors/check_lm_sensors-4.1.1/AUTHORS: -------------------------------------------------------------------------------- 1 | Matteo Corti 2 | 3 | Thanks to: 4 | - Maarten Bremer for the useful suggestions 5 | - Greg Vickers for pointing out incompatibilities with ePN 6 | - Giles Westwood for the multiple renames patch 7 | - Martin Schulze for the device name patch 8 | -------------------------------------------------------------------------------- /check_nfsmounts/control: -------------------------------------------------------------------------------- 1 | Homepage: http://exchange.nagios.org/directory/Plugins/Operating-Systems/Linux/check_nfsmounts/details 2 | Recommends: libmonitoring-plugin-perl | libnagios-plugin-perl 3 | Uploaders: Bernd Zeimetz 4 | Description: checks whether there are stale NFS mounts on the host 5 | -------------------------------------------------------------------------------- /check_raid/copyright: -------------------------------------------------------------------------------- 1 | 2004-2006 Steve Shipway, university of auckland, 2 | 2009-2013 Elan Ruusamäe 3 | 4 | License: GPL v2 5 | 6 | On Debian systems, the complete text of the GNU General 7 | Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". 8 | 9 | 10 | -------------------------------------------------------------------------------- /percona-nagios-plugins/Makefile: -------------------------------------------------------------------------------- 1 | #/usr/bin/make -f 2 | 3 | PLUGIN = $(wildcard nagios/bin/*) 4 | MANPAGES = $(shell find nagios/bin -type f -printf '%f\n' | sed 's,$$,.7,') 5 | CLEANFILES = $(MANPAGES) 6 | 7 | include ../common.mk 8 | 9 | 10 | %.7: $(PLUGIN) 11 | pod2man -s 7 $< > $@ 12 | 13 | 14 | -------------------------------------------------------------------------------- /check_cups/copyright: -------------------------------------------------------------------------------- 1 | Copyright (C) Steve Huff 2 | 3 | This Nagios plugin is free software, and comes with ABSOLUTELY NO WARRANTY. 4 | It may be used, redistributed and/or modified under the terms of the GNU 5 | General Public Licence (see http://www.fsf.org/licensing/licenses/gpl.txt). 6 | 7 | -------------------------------------------------------------------------------- /check_lm_sensors/Makefile: -------------------------------------------------------------------------------- 1 | #/usr/bin/make -f 2 | 3 | PLUGIN = src/check_lm_sensors 4 | MANPAGES = check_lm_sensors.7 5 | DOCFILES = src/README 6 | CLEANFILES = check_lm_sensors.7 7 | 8 | include ../common.mk 9 | 10 | 11 | check_lm_sensors.7: src/check_lm_sensors.pod 12 | pod2man -s 7 $< > $@ 13 | 14 | 15 | -------------------------------------------------------------------------------- /check_memcached/Makefile: -------------------------------------------------------------------------------- 1 | #/usr/bin/make -f 2 | CLEANFILES = check_memcached check_memcached.c 3 | PKG_CONFIG ?= pkg-config 4 | LIBS += $(shell $(PKG_CONFIG) --libs libmemcached) -lpthread 5 | 6 | include ../common.mk 7 | 8 | 9 | check_memcached: check_memcached.o 10 | $(CC) $(LDFLAGS) -o $@ $< $(LIBS) 11 | -------------------------------------------------------------------------------- /check_rbl/Makefile: -------------------------------------------------------------------------------- 1 | #/usr/bin/make -f 2 | 3 | PLUGIN = src/check_rbl 4 | MANPAGES = check_rbl.7 5 | INIFILES = src/check_rbl.ini 6 | DOCFILES = src/README.md 7 | CLEANFILES = check_rbl.7 8 | 9 | 10 | include ../common.mk 11 | 12 | 13 | check_rbl.7: src/check_rbl.pod 14 | pod2man -s 7 $< > $@ 15 | 16 | 17 | -------------------------------------------------------------------------------- /check_bgpstate/control: -------------------------------------------------------------------------------- 1 | Homepage: https://raw.github.com/nagios-plugins/nagios-plugins/ba7615631add0b610ada6a819d6c8f8c46a2d36d/contrib/check_bgpstate.pl 2 | Recommends: libnet-snmp-perl, whois 3 | Version: 1.0 4 | Uploaders: Jan Wagner 5 | Description: plugin to check all BGP session on Cisco routers 6 | -------------------------------------------------------------------------------- /check_webinject/Makefile: -------------------------------------------------------------------------------- 1 | PLUGIN := tmp/check_webinject 2 | 3 | include ../common.mk 4 | 5 | tmp/check_webinject: 6 | mkdir -p tmp 7 | sed -e '/^package Web/,/^#!\/usr\/bin\/env perl/d' \ 8 | -e '/^my.*Webinject->/ iuse Webinject;\n' \ 9 | check_webinject > $@ 10 | 11 | clean:: 12 | rm -rf tmp 13 | 14 | -------------------------------------------------------------------------------- /check_rbl/check_rbl-1.7.2/t/01_validation.t: -------------------------------------------------------------------------------- 1 | #!perl 2 | 3 | use 5.00800; 4 | 5 | use strict; 6 | use warnings; 7 | 8 | use File::Spec; 9 | use Test::More tests => 1; 10 | 11 | our $VERSION = '1.4.0'; 12 | 13 | my $check_rbl = File::Spec->catfile(qw(blib script check_rbl)); 14 | 15 | require_ok($check_rbl); 16 | 17 | 1; 18 | -------------------------------------------------------------------------------- /check_mongodb/Makefile: -------------------------------------------------------------------------------- 1 | PLUGIN := check_mongodb 2 | CLEANFILES := check_mongodb 3 | DOCFILES := README.md 4 | 5 | include ../common.mk 6 | 7 | check_mongodb: 8 | cp $@.py $@ 9 | chmod 755 $@ 10 | 11 | install:: 12 | install -d $(DESTDIR)$(PLUGINDIR) 13 | ln -s $(PLUGINDIR)/$(PLUGIN) $(DESTDIR)$(PLUGINDIR)/$(PLUGIN).py 14 | 15 | -------------------------------------------------------------------------------- /check_haproxy/control: -------------------------------------------------------------------------------- 1 | Homepage: https://github.com/polymorf/check_haproxy/blob/master/check_haproxy.pl 2 | Recommends: liblocale-gettext-perl, liblwp-useragent-determined-perl, libmonitoring-plugin-perl | libnagios-plugin-perl 3 | Version: rev135 4 | Uploaders: Jan Wagner 5 | Description: plugin to check the HAProxy statistics url 6 | -------------------------------------------------------------------------------- /check_ssl_cert/check_ssl_cert_2.75.0/Makefile: -------------------------------------------------------------------------------- 1 | # Wrapper for make which do not support ifdef 2 | # 3 | # See: https://stackoverflow.com/questions/45342191/the-make-on-freebsd-doesnt-support-ifdef-directives 4 | # 5 | 6 | GNUMAKE?= gmake 7 | 8 | all: 9 | ${GNUMAKE} $@ 10 | 11 | .DEFAULT: 12 | ${GNUMAKE} $@ 13 | 14 | .PHONY: all test install 15 | -------------------------------------------------------------------------------- /check_email_delivery/check_email_delivery-0.7.1b/docs/How to test plugin.txt: -------------------------------------------------------------------------------- 1 | HOW TO TEST THE PLUGIN 2 | 3 | Run the shell script tests which start the test server automatically: 4 | 5 | ./test/3_email_delivery.sh 6 | 7 | 8 | 9 | 10 | 11 | 12 | If you want to start up the test server yourself: 13 | 14 | sudo perl test/dummy_smtp_server.pl 15 | 16 | -------------------------------------------------------------------------------- /check_libvirt/control: -------------------------------------------------------------------------------- 1 | Homepage: http://git.op5.org/gitweb?p=system-addons/plugins/op5/check_libvirt.git;a=summary 2 | Recommends: libmonitoring-plugin-perl | libnagios-plugin-perl, libxml-simple-perl 3 | Suggests: libsys-virt-perl 4 | Version: v7.0.3 5 | Uploaders: Bernd Zeimetz 6 | Description: monitor virtualization solutions using libvirt 7 | -------------------------------------------------------------------------------- /check_mongodb/control: -------------------------------------------------------------------------------- 1 | Uploaders: Jan Wagner 2 | Recommends: python3, python3-pymongo 3 | Version: 1b54df0 4 | Homepage: https://github.com/mzupan/nagios-plugin-mongodb 5 | Watch: https://github.com/mzupan/nagios-plugin-mongodb ]*>\s+([0-9a-f]+)\s+ 6 | Description: Plugin script to monitor your MongoDB server(s) 7 | -------------------------------------------------------------------------------- /debian/monitoring-plugins-contrib.lintian-overrides: -------------------------------------------------------------------------------- 1 | # as mentioned in the description people need to 2 | # install whats mentioned in recommends. 3 | monitoring-plugins-contrib: undeclared-elf-prerequisites 4 | #monitoring-plugins-contrib: ruby-script-but-no-ruby-dep usr/lib/nagios/plugins/check_soas #!ruby 5 | monitoring-plugins-contrib: ruby-script-but-no-ruby-dep 6 | -------------------------------------------------------------------------------- /check_printer_health/check_printer_health-1.1.0.2/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to produce Makefile.in 2 | 3 | SUBDIRS = plugins-scripts 4 | DOS2UNIX=$(shell which dos2unix || which fromdos) 5 | 6 | dist-hook: 7 | rm -f t/var/tmp/* 8 | rm -f t/var/adm/* 9 | find $(distdir) -type f -exec $(DOS2UNIX) {} >/dev/null 2>&1 \; 10 | make 11 | 12 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/contrib/README.md: -------------------------------------------------------------------------------- 1 | # Configuration files for using these plugins 2 | 3 | ## Icinga2 4 | Copy the file `contrib/icinga2/CheckCommands.conf` to your prefered location (probably 5 | `/etc/icinga2/zones.d/global-templates/commands/` or something like that. 6 | It will then provide the `CheckCommand` objects for your Services. 7 | -------------------------------------------------------------------------------- /check_drbd/copyright: -------------------------------------------------------------------------------- 1 | Copyright (C) Brandon Lee Poyner 2 | 3 | The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute 4 | copies of the plugins under the terms of the GNU General Public License. 5 | 6 | On Debian systems, the complete text of the GNU General 7 | Public License version 1 can be found in "/usr/share/common-licenses/GPL-1". 8 | -------------------------------------------------------------------------------- /debian/patches/check_cups/epn: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_cups/check_cups 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_cups/check_cups 4 | +++ pkg-nagios-plugins-contrib/check_cups/check_cups 5 | @@ -1,4 +1,5 @@ 6 | #!/usr/bin/perl 7 | +# nagios: -epn 8 | 9 | =head1 NAME 10 | 11 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/.gitattributes: -------------------------------------------------------------------------------- 1 | configure linguist-generated=true 2 | config.* linguist-vendored 3 | depcomp linguist-vendored 4 | install-sh linguist-vendored 5 | missing linguist-vendored 6 | test-driver linguist-vendored 7 | ltmain.sh linguist-vendored 8 | libtool linguist-vendored 9 | *.psd filter=lfs diff=lfs merge=lfs -text 10 | -------------------------------------------------------------------------------- /debian/patches/check_rbl/interpreter: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_rbl/src/check_rbl 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_rbl/src/check_rbl 4 | +++ pkg-nagios-plugins-contrib/check_rbl/src/check_rbl 5 | @@ -1,4 +1,4 @@ 6 | -#!perl 7 | +#!/usr/bin/perl 8 | 9 | # nagios: -epn 10 | 11 | -------------------------------------------------------------------------------- /check_backuppc/control: -------------------------------------------------------------------------------- 1 | Uploaders: Jan Wagner 2 | Recommends: libmonitoring-plugin-perl | libnagios-plugin-perl 3 | Suggests: backuppc 4 | Version: 1.1.0 5 | Homepage: http://n-backuppc.sourceforge.net/ 6 | Watch: http://sourceforge.net/projects/n-backuppc/files/ check_backuppc-([0-9.]+)\.tar\.gz 7 | Description: plugin for checking on the status of 8 | BackupPC backups 9 | -------------------------------------------------------------------------------- /check_ajp/control: -------------------------------------------------------------------------------- 1 | Version: 1 2 | Uploaders: Bernd Zeimetz 3 | Description: plugin to monitor the AJP ping response time 4 | Should work with all application servers (Tomcat, JBoss,....) 5 | which provide an AJPv13 connector. 6 | Homepage: http://blog.devnu11.net/projects/ 7 | Watch: http://blog.devnu11.net/projects/

v([0-9]*) – md5: 8 | Recommends: libsocket-perl 9 | -------------------------------------------------------------------------------- /check_ssl_cert/control: -------------------------------------------------------------------------------- 1 | Uploaders: Jan Wagner 2 | Recommends: bc, curl, file, openssl 3 | Suggests: expect, iproute2, dnsutils 4 | Version: 2.75.0 5 | Homepage: https://github.com/matteocorti/check_ssl_cert 6 | Watch: https://github.com/matteocorti/check_ssl_cert/releases >check_ssl_cert-([0-9.]+)< 7 | Description: plugin to check the CA and validity of an 8 | X.509 certificate 9 | -------------------------------------------------------------------------------- /check_lm_sensors/control: -------------------------------------------------------------------------------- 1 | Uploaders: Bernd Zeimetz 2 | Recommends: libmonitoring-plugin-perl | libnagios-plugin-perl (>= 0.31) 3 | Version: 4.1.1 4 | Homepage: https://github.com/matteocorti/check_lm_sensors 5 | Watch: https://github.com/matteocorti/check_lm_sensors/releases >check_lm_sensors-([0-9.]+)< 6 | Description: plugin to monitor hardware sensors 7 | and disk temperatures 8 | -------------------------------------------------------------------------------- /check_printer_health/control: -------------------------------------------------------------------------------- 1 | Homepage: http://labs.consol.de/lang/en/nagios/check_printer_health/ 2 | Watch: http://labs.consol.de/lang/en/nagios/check_printer_health/ check_printer_health-([0-9.]+)\.tar\.gz 3 | Uploaders: Jan Wagner 4 | Description: plugin which checks the health of snmp-enabled printers 5 | Build-Depends: autotools-dev 6 | Recommends: snmp 7 | Version: 1.1.0.2 8 | -------------------------------------------------------------------------------- /debian/patches/dsa/epn: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/dsa/checks/dsa-check-packages 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/dsa/checks/dsa-check-packages 4 | +++ pkg-nagios-plugins-contrib/dsa/checks/dsa-check-packages 5 | @@ -1,4 +1,5 @@ 6 | #!/usr/bin/perl 7 | +# nagios: -epn 8 | 9 | # dsa-check-packages 10 | 11 | -------------------------------------------------------------------------------- /check_mysql_health/control: -------------------------------------------------------------------------------- 1 | Homepage: http://labs.consol.de/lang/en/nagios/check_mysql_health/ 2 | Watch: http://labs.consol.de/lang/en/nagios/check_mysql_health/ check_mysql_health-([0-9.]+)\.tar\.gz 3 | Uploaders: Jan Wagner 4 | Recommends: libdbd-mysql-perl 5 | Description: plugin to check various parameters of a 6 | MySQL database 7 | Build-Depends: autotools-dev 8 | Version: 2.2.2 9 | -------------------------------------------------------------------------------- /check_drbd/control: -------------------------------------------------------------------------------- 1 | Homepage: https://exchange.icinga.org/oldmonex/512-check_drbd/ 2 | Watch: https://exchange.icinga.org/oldmonex/512-check_drbd/check_drbd prog_revision='([0-9.]+)'; 3 | Uploaders: Jan Wagner 4 | Description: plugin to check DRBD device states 5 | This plugin is for checking DRBD device states. It parses the 6 | /proc/drbd device and analyses the output. 7 | Version: 0.5.3 8 | -------------------------------------------------------------------------------- /check_email_delivery/Makefile: -------------------------------------------------------------------------------- 1 | #/usr/bin/make -f 2 | 3 | PLUGIN = $(wildcard src/check_*) $(wildcard src/imap_ssl_*) 4 | MANPAGES = $(shell find src/docs -regex '[^ ]*.pod' -printf '%f\n' | sed 's,pod$$,7,') 5 | DOCFILES = src/docs/*.html src/docs/*.txt src/README.txt 6 | CLEANFILES = $(MANPAGES) 7 | 8 | include ../common.mk 9 | 10 | 11 | %.7: src/docs/%.pod 12 | pod2man -s 7 $< > $@ 13 | 14 | 15 | -------------------------------------------------------------------------------- /dsa/update-files.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # update all files from the dsa nagios git 4 | find checks sbin share etc -type f | while read i; do 5 | tmp=`mktemp` 6 | if wget -O "${tmp}" "https://salsa.debian.org/dsa-team/mirror/dsa-nagios/raw/master/dsa-nagios-checks/${i}"; then 7 | mv "${tmp}" "$i" 8 | else 9 | rm -f "${tmp}" 10 | fi 11 | done 12 | 13 | chmod 755 sbin/* 14 | -------------------------------------------------------------------------------- /check_etc_hosts/control: -------------------------------------------------------------------------------- 1 | Uploaders: Petter Reinholdtsen 2 | Description: plugin to check /etc/hosts for DNS consistency 3 | Check /etc/hosts, and make sure the content matches the information 4 | in DNS. Lookup IP, and check if the names listed in /etc/hosts 5 | maches the one in DNS. It will ignore entries with '# NAGIOSIGNORE' 6 | at the end. 7 | Recommends: libnet-dns-perl 8 | Version: ? 9 | -------------------------------------------------------------------------------- /debian/patches/check_printer/epn: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_printer/check_printer 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_printer/check_printer 4 | +++ pkg-nagios-plugins-contrib/check_printer/check_printer 5 | @@ -1,4 +1,5 @@ 6 | #!/usr/bin/perl 7 | +# nagios: -epn 8 | # 9 | # Copyright (c) 2007,2011 Eric F Crist 10 | # 11 | -------------------------------------------------------------------------------- /check_backuppc/Makefile: -------------------------------------------------------------------------------- 1 | #/usr/bin/make -f 2 | 3 | PLUGIN = check_backuppc 4 | MANPAGES = src/check_backuppc.8 5 | DOCFILES = src/README 6 | NAGIOS_LIB = /usr/lib/nagios/plugins 7 | BACKUPPC_LIB = /usr/share/backuppc/lib 8 | CLEANFILES = $(PLUGIN) 9 | 10 | include ../common.mk 11 | 12 | $(PLUGIN): 13 | sed -e "s|NAGIOS_LIB|$(NAGIOS_LIB)|g" -e \ 14 | "s|BACKUPPC_LIB|${BACKUPPC_LIB}|g" src/check_backuppc > $@ 15 | 16 | -------------------------------------------------------------------------------- /check_zone_auth/control: -------------------------------------------------------------------------------- 1 | Homepage: http://dns.measurement-factory.com/tools/nagios-plugins/check_zone_auth.html 2 | Watch: http://dns.measurement-factory.com/tools/nagios-plugins/src/check_zone_auth Id: check_zone_auth,v ([0-9.]+) 3 | Uploaders: Bernd Zeimetz 4 | Description: plugin to ensure that the authoritative nameservers 5 | for a given zone remain in sync. 6 | Recommends: libnet-dns-perl 7 | Version: 1.14 8 | -------------------------------------------------------------------------------- /debian/patches/check_bgpstate/epn: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_bgpstate/check_bgpstate 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_bgpstate/check_bgpstate 4 | +++ pkg-nagios-plugins-contrib/check_bgpstate/check_bgpstate 5 | @@ -1,4 +1,5 @@ 6 | #!/usr/bin/perl -w 7 | +# nagios: -epn 8 | # 9 | # check_bgpstate.pl - nagios plugin 10 | # 11 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/nagios-plugins-linux-network.links: -------------------------------------------------------------------------------- 1 | usr/lib/nagios/plugins/check_network usr/lib/nagios/plugins/check_network_collisions 2 | usr/lib/nagios/plugins/check_network usr/lib/nagios/plugins/check_network_dropped 3 | usr/lib/nagios/plugins/check_network usr/lib/nagios/plugins/check_network_errors 4 | usr/lib/nagios/plugins/check_network usr/lib/nagios/plugins/check_network_multicast 5 | -------------------------------------------------------------------------------- /check_smstools/control: -------------------------------------------------------------------------------- 1 | Homepage: http://exchange.nagios.org/directory/Plugins/Hardware/Mobile-Devices/check_smstools/details 2 | Uploaders: Bernd Zeimetz 3 | Description: plugin to check GSM Modems using smstools 4 | check_smstools is a plugin to monitor a GSM modem 5 | signal quality and registration status with smstools. 6 | Recommends: libmonitoring-plugin-perl | libnagios-plugin-perl 7 | Suggests: smstools (>= 3~) 8 | -------------------------------------------------------------------------------- /check_webinject/webinject.cfg: -------------------------------------------------------------------------------- 1 | # 'check_webinject' command definition 2 | define command{ 3 | command_name check_webinject 4 | command_line /usr/lib/nagios/plugins/check_webinject '$ARG1$' 5 | } 6 | 7 | 8 | # 'check_webinject' command definition 9 | define command{ 10 | command_name check_webinject_baseurl 11 | command_line /usr/lib/nagios/plugins/check_webinject -s 'baseurl=$ARG1$' '$ARG2$' 12 | } 13 | -------------------------------------------------------------------------------- /debian/patches/check_webinject/epn: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_webinject/check_webinject 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_webinject/check_webinject 4 | +++ pkg-nagios-plugins-contrib/check_webinject/check_webinject 5 | @@ -1,5 +1,5 @@ 6 | #!/usr/bin/perl 7 | -# nagios: +epn 8 | +# nagios: -epn 9 | 10 | package Webinject; 11 | 12 | -------------------------------------------------------------------------------- /debian/patches/check_v46/no_epn: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_v46/check_v46 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_v46/check_v46 4 | +++ pkg-nagios-plugins-contrib/check_v46/check_v46 5 | @@ -1,4 +1,6 @@ 6 | #!/usr/bin/perl 7 | +# nagios: -epn 8 | +# 9 | # 10 | # check_v46 11 | # Nagios plugin wrapper for running the actual plugin for both / either of 12 | -------------------------------------------------------------------------------- /check_haproxy_stats/control: -------------------------------------------------------------------------------- 1 | Homepage: https://github.com/skyscrapers/monitoring-plugins/blob/master/check_haproxy_stats.pl 2 | Watch: https://raw.githubusercontent.com/skyscrapers/monitoring-plugins/master/check_haproxy_stats.pl VERSION = "([0-9.]+)" 3 | Version: 1.1.3 4 | Uploaders: Bernd Zeimetz 5 | Description: check haproxy via admin socket 6 | Different from check_haproxy this plugin is able to check 7 | haproxy via the unix admin socket. 8 | -------------------------------------------------------------------------------- /check_multipath/control: -------------------------------------------------------------------------------- 1 | Watch: http://exchange.nagios.org/directory/Plugins/Operating-Systems/Linux/check-2Dmultipath-2Epl/details Current Version

([0-9.]+)
2 | Version: 0.4.12 3 | Homepage: http://exchange.nagios.org/directory/Plugins/Operating-Systems/Linux/check-2Dmultipath-2Epl/details 4 | Uploaders: Bernd Zeimetz 5 | Description: plugin to monitor the number of available and 6 | failed paths of multipath devices 7 | -------------------------------------------------------------------------------- /check_rbl/control: -------------------------------------------------------------------------------- 1 | Uploaders: Bernd Zeimetz 2 | Recommends: libmonitoring-plugin-perl | libnagios-plugin-perl (>= 0.31), libreadonly-perl, libnet-dns-perl, libdata-validate-domain-perl, libdata-validate-ip-perl, libcapture-tiny-perl 3 | Version: 1.7.2 4 | Homepage: https://github.com/matteocorti/check_rbl 5 | Watch: https://github.com/matteocorti/check_rbl/releases >check_rbl-([0-9.]+)< 6 | Description: plugin to check if a server is blacklisted 7 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/tests/ts_container_podman_GetContainerStats.data: -------------------------------------------------------------------------------- 1 | {"container":{"block_input":20594688,"block_output":24576,"cpu":2.241186151818685828849e-09,"cpu_nano":35548000,"id":"fced2dbe15a84cfc6da72d9dd7e3bd104469862f173e42fc08588392740d6122","mem_limit":8232517632,"mem_perc":1.120458213675162573164e-01,"mem_usage":9224192,"name":"web-server-1","net_input":1118,"net_output":7222,"pids":2,"system_nano":1586124381999834484}} 2 | -------------------------------------------------------------------------------- /check_mysql_health/check_mysql_health-2.2.2/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to produce Makefile.in 2 | 3 | # find . \( -type d -and -name .svn -and -prune \) -or -type f -exec fromdos -v {} \; 4 | 5 | SUBDIRS = plugins-scripts t 6 | EXTRA_DIST = contrib 7 | 8 | dist-hook: 9 | rm -f t/var/tmp/* 10 | rm -f t/var/adm/* 11 | find $(distdir) -depth -name .svn -exec rm -rf {} \; 12 | find $(distdir) -type f -exec fromdos -v {} \; 13 | make 14 | -------------------------------------------------------------------------------- /check_printer_health/check_printer_health-1.1.0.2/ChangeLog: -------------------------------------------------------------------------------- 1 | * 2022-12-14 1.1.0.2 2 | remove trailing nul from JetDirect prtMarkerSuppliesDescription 3 | * 2020-03-02 1.1.0.1 4 | bugfix in Konica Minolta, Printermib 5 | * 2019-09-06 1.1 6 | use vendor mibs for Lexmark printers 7 | * 2018-03-29 1.0.1.1 8 | convert spanish characters to ascii 9 | * 2017-11-08 1.0.1 10 | output empty/full instead of percent 11 | * 2017-08-01 1.0 12 | initial release 13 | -------------------------------------------------------------------------------- /debian/patches/check_haproxy/epn: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_haproxy/check_haproxy 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_haproxy/check_haproxy 4 | +++ pkg-nagios-plugins-contrib/check_haproxy/check_haproxy 5 | @@ -1,4 +1,5 @@ 6 | #!/usr/bin/perl -w 7 | +# nagios: -epn 8 | # 9 | # Copyright (c) 2010 Stéphane Urbanovski 10 | # 11 | -------------------------------------------------------------------------------- /check_hp_bladechassis/control: -------------------------------------------------------------------------------- 1 | Homepage: http://folk.uio.no/trondham/software/check_hp_bladechassis.html 2 | Watch: http://folk.uio.no/trondham/software/check_hp_bladechassis.html .*href="files/check_hp_bladechassis-([0-9.]+)\.tar\.gz 3 | Uploaders: Bernd Zeimetz 4 | Description: plugin to check the hardware health of 5 | HP blade enclosures via SNMP. 6 | The plugin is only tested with the c7000 enclosure. 7 | Recommends: libnet-snmp-perl 8 | Version: 1.0.1 9 | -------------------------------------------------------------------------------- /check_cups/control: -------------------------------------------------------------------------------- 1 | Homepage: https://exchange.icinga.org/oldmonex/1867-check_cups/ 2 | Uploaders: Jan Wagner 3 | Description: plugin to check queues on a remote CUPS server 4 | This plugin is monitoring of queues on a remote CUPS server, 5 | which means that it doesn't need to be installed on the print 6 | server and run via NRPE. 7 | Recommends: libdate-manip-perl, libmonitoring-plugin-perl | libnagios-plugin-perl (>= 0.31), libnet-cups-perl 8 | Version: 0.2 9 | -------------------------------------------------------------------------------- /check_zone_rrsig_expiration/control: -------------------------------------------------------------------------------- 1 | Homepage: http://dns.measurement-factory.com/tools/nagios-plugins/check_zone_rrsig_expiration.html 2 | Watch: http://dns.measurement-factory.com/tools/nagios-plugins/src/check_zone_rrsig_expiration Id: check_zone_rrsig_expiration,v ([0-9.]+) 3 | Uploaders: Bernd Zeimetz 4 | Description: plugin to check for expiration of 5 | signatures in dnssec-enabled zones. 6 | Recommends: libnet-dns-perl, libnet-dns-sec-perl 7 | Version: 1.14 8 | -------------------------------------------------------------------------------- /debian/patches/check_raid/prefer_cciss_vol_status_over_hpacucli: -------------------------------------------------------------------------------- 1 | --- a/check_raid/check_raid 2 | +++ b/check_raid/check_raid 3 | @@ -3975,8 +3975,10 @@ sub check { 4 | package hpacucli; 5 | use base 'plugin'; 6 | 7 | -# register 8 | -push(@utils::plugins, __PACKAGE__); 9 | +# register if cciss_vol_status is not available 10 | +if (! utils::which('cciss_vol_status')) { 11 | + push(@utils::plugins, __PACKAGE__); 12 | +} 13 | 14 | sub program_names { 15 | __PACKAGE__; 16 | -------------------------------------------------------------------------------- /percona-nagios-plugins/control: -------------------------------------------------------------------------------- 1 | Watch: http://www.percona.com/downloads/percona-monitoring-plugins/LATEST/source/ >percona-monitoring-plugins-([0-9.]+)\.tar\.gz< 2 | Version: 1.1.8 3 | Homepage: http://www.percona.com/doc/percona-monitoring-plugins/ 4 | Uploaders: Bernd Zeimetz 5 | Description: Percona Monitoring Plugins (nagios) 6 | Nagios MySQL Monitoring plugins writting/provided by Percona. 7 | Suggests: percona-toolkit, python3, python3-pymongo, python3-boto 8 | -------------------------------------------------------------------------------- /extras/Makefile: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | DM_DIR=/usr/share/icinga/plugins/eventhandlers/distributed-monitoring/ 4 | MULTI_DIR=/etc/check_multi 5 | 6 | all: 7 | #nothing to do. 8 | 9 | install: 10 | install -d $(DESTDIR)$(MULTI_DIR) 11 | install -m 644 -o root -g root check_apt.cmd $(DESTDIR)$(MULTI_DIR) 12 | install -d $(DESTDIR)$(DM_DIR) 13 | install -m 755 -o root -g root send_nsca_host_or_service_check_result $(DESTDIR)$(DM_DIR) 14 | 15 | clean: 16 | # nothing to do. 17 | -------------------------------------------------------------------------------- /check_email_delivery/email_delivery.cfg: -------------------------------------------------------------------------------- 1 | define command{ 2 | command_name check_email_delivery 3 | command_line /usr/lib/nagios/plugins/check_email_delivery -p '$USER1$/check_smtp_send -H $HOSTADDRESS$ --mailfrom $ARG3$ --mailto $ARG4$ -U $ARG5$ -P $ARG6$ --header "Subject: Nagios %TOKEN1%" -w $ARG1$ -c $ARG2$' -p '$USER1$/check_imap_receive -H $HOSTADDRESS$ -U $ARG5$ -P $ARG6$ -s SUBJECT -s "Nagios %TOKEN1%" -w $ARG1$ -c $ARG2$' -w $ARG1$,$ARG1$ -c $ARG2$,$ARG2$ 4 | } 5 | -------------------------------------------------------------------------------- /check_ssl_cert/copyright: -------------------------------------------------------------------------------- 1 | Copyright (c) 2007-2011 ETH Zurich 2 | 3 | Authors: 4 | 5 | Dan Wallis 6 | Lawren Quigley-Jones 7 | Marc Fournier 8 | Marcus Rejås 9 | Matteo Corti 10 | Matthias Fuhrmeister 11 | Raphael Thoma 12 | Scott Worthington 13 | Sven Nierlein 14 | Tuomas Haarala 15 | Wolfgang Schricker 16 | Yannick Gravel 17 | 18 | This module is free software; you can redistribute it and/or modify it 19 | under the terms of GNU general public license (gpl) version 3. 20 | -------------------------------------------------------------------------------- /debian/patches/check_snmp_time/epn: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_snmp_time/check_snmp_time 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_snmp_time/check_snmp_time 4 | +++ pkg-nagios-plugins-contrib/check_snmp_time/check_snmp_time 5 | @@ -1,4 +1,5 @@ 6 | #!/usr/bin/perl -w 7 | +# nagios: -epn 8 | ############################## check_snmp_time.pl ################# 9 | my $Version='1.1'; 10 | # Date : Dec 08 2010 11 | -------------------------------------------------------------------------------- /check_ipmi_sensor/control: -------------------------------------------------------------------------------- 1 | Recommends: freeipmi-tools, libipc-run-perl 2 | Version: 3.14 3 | Uploaders: Bernd Zeimetz 4 | Homepage: http://www.thomas-krenn.com/en/oss/ipmi-plugin.html 5 | Description: IPMI Sensor Monitoring Plugin 6 | Plugin to monitor the hardware status (fan speed, temperaturs, 7 | voltages, power usage, ...) of a server using IPMI. 8 | Watch: https://raw.githubusercontent.com/thomas-krenn/check_ipmi_sensor_v3/master/check_ipmi_sensor check_ipmi_sensor_version = "([0-9.]+)"; 9 | -------------------------------------------------------------------------------- /debian/patches/check_raid/no_epn: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_raid/check_raid 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_raid/check_raid 4 | +++ pkg-nagios-plugins-contrib/check_raid/check_raid 5 | @@ -1,4 +1,5 @@ 6 | #!/usr/bin/perl 7 | +# nagios: -epn 8 | 9 | # This chunk of stuff was generated by App::FatPacker. To find the original 10 | # file's code, look for the end of this BEGIN block or the string 'FATPACK' 11 | -------------------------------------------------------------------------------- /debian/.gitlab-ci.yml: -------------------------------------------------------------------------------- 1 | --- 2 | include: 3 | - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml 4 | 5 | variables: 6 | RELEASE: 'unstable' 7 | SALSA_CI_DISABLE_APTLY: 0 8 | SALSA_CI_DISABLE_AUTOPKGTEST: 0 9 | SALSA_CI_DISABLE_BLHC: 1 10 | SALSA_CI_DISABLE_LINTIAN: 0 11 | SALSA_CI_DISABLE_PIUPARTS: 0 12 | SALSA_CI_DISABLE_REPROTEST: 0 13 | SALSA_CI_DISABLE_BUILD_PACKAGE_ALL: 0 14 | SALSA_CI_DISABLE_BUILD_PACKAGE_ANY: 0 15 | SALSA_CI_ENABLE_BUILD_PACKAGE_TWICE: 1 16 | -------------------------------------------------------------------------------- /.gitlab-ci.yml: -------------------------------------------------------------------------------- 1 | include: 2 | - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml 3 | - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml 4 | 5 | variables: 6 | RELEASE: 'unstable' 7 | SALSA_CI_DISABLE_APTLY: 0 8 | SALSA_CI_DISABLE_AUTOPKGTEST: 0 9 | SALSA_CI_DISABLE_BLHC: 0 10 | SALSA_CI_DISABLE_LINTIAN: 0 11 | SALSA_CI_DISABLE_PIUPARTS: 0 12 | SALSA_CI_DISABLE_REPROTEST: 0 13 | SALSA_CI_DISABLE_BUILD_PACKAGE_ALL: 0 14 | SALSA_CI_DISABLE_BUILD_PACKAGE_ANY: 0 15 | -------------------------------------------------------------------------------- /check_snmp_time/snmp_time.cfg: -------------------------------------------------------------------------------- 1 | # 'check_snmp_time' command definition 2 | define command{ 3 | command_name check_snmp_time 4 | command_line /usr/lib/nagios/plugins/check_snmp_time -H $HOSTADDRESS$ -C $ARG1$ -w $ARG2$ -c $ARG3$ -p $ARG4$ -f 5 | } 6 | 7 | # 'check_snmp_time_v2' command definition 8 | define command{ 9 | command_name check_snmp_time_v2 10 | command_line /usr/lib/nagios/plugins/check_snmp_time -H $HOSTADDRESS$ -2 -C $ARG1$ -w $ARG2$ -c $ARG3$ -p $ARG4$ -f 11 | } 12 | -------------------------------------------------------------------------------- /check_whois/control: -------------------------------------------------------------------------------- 1 | Homepage: http://dns.measurement-factory.com/tools/nagios-plugins/check_whois.html 2 | Watch: http://dns.measurement-factory.com/tools/nagios-plugins/src/check_whois Id: check_whois,v ([0-9.]+) 3 | Uploaders: Bernd Zeimetz 4 | Description: plugin to check for the expiration of a domain. 5 | The plugin may not yet work with all registrars, since their 6 | output formats differ or there is no expiration date in the 7 | whois output. 8 | Recommends: libdate-manip-perl 9 | Version: 1.24 10 | -------------------------------------------------------------------------------- /debian/patches/check_httpd_status/epn: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_httpd_status/check_httpd_status 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_httpd_status/check_httpd_status 4 | +++ pkg-nagios-plugins-contrib/check_httpd_status/check_httpd_status 5 | @@ -1,4 +1,6 @@ 6 | #!/usr/bin/perl -w 7 | +# nagios: -epn 8 | +# 9 | ####################### check_httpd_status.pl ####################### 10 | # Version : 1.3 11 | # Date : 06 Aug 2010 12 | -------------------------------------------------------------------------------- /debian/patches/check_lm_sensors/interpreter: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_lm_sensors/src/check_lm_sensors 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_lm_sensors/src/check_lm_sensors 4 | +++ pkg-nagios-plugins-contrib/check_lm_sensors/src/check_lm_sensors 5 | @@ -1,4 +1,4 @@ 6 | -#!perl 7 | +#!/usr/bin/perl 8 | 9 | # check_lm_sensors is a Nagios plugin to monitor the values of on board sensors and hard 10 | # disk temperatures on Linux systems 11 | -------------------------------------------------------------------------------- /check_printer/control: -------------------------------------------------------------------------------- 1 | Homepage: https://www.secure-computing.net/trac/browser/SCN%20Open%20Source/trunk/nagios/ 2 | Watch: https://www.secure-computing.net/trac/browser/SCN%20Open%20Source/trunk/nagios/check_printer?format=raw SHA1:d2b7d0f7ca09d2813aca9d0904f069337bb6fe53 3 | Uploaders: Bernd Zeimetz 4 | Description: plugin to check printer supply levels using SNMP 5 | It outputs performance data for all supplies 6 | found, for example toner and drum. 7 | Recommends: snmp, libmonitoring-plugin-perl | libnagios-plugin-perl 8 | -------------------------------------------------------------------------------- /debian/patches/check_libvirt/fix_cache_path: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_libvirt/check_libvirt 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_libvirt/check_libvirt 4 | +++ pkg-nagios-plugins-contrib/check_libvirt/check_libvirt 5 | @@ -56,7 +56,7 @@ BEGIN { 6 | 7 | $PROGNAME = basename($0); 8 | $VERSION = '0.1.0'; 9 | -my $spooldir="/opt/monitor/var/check_libvirt"; 10 | +my $spooldir="/var/lib/nagios/.cache/check_libvirt"; 11 | 12 | if (!-d $spooldir) 13 | { 14 | -------------------------------------------------------------------------------- /dsa/Makefile: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | PLUGIN:=$(shell cd checks; ls -1 | sed 's,^dsa-,,;s,-,_,g') 4 | CRONJOBS:=$(shell cd sbin; ls -1 | sed 's,^dsa-,,') 5 | INIFILES:=etc/obsolete-packages-ignore 6 | DOCFILES:=$(wildcard *.cmd) 7 | 8 | check_%: 9 | cp checks/dsa-`echo $@ | sed 's,_,-,g'` $@ 10 | chmod 755 $@ 11 | 12 | update-%-status: 13 | cp sbin/dsa-$@ $@ 14 | chmod 755 $@ 15 | 16 | CLEANFILES=$(PLUGIN) $(CRONJOBS) 17 | 18 | 19 | include ../common.mk 20 | 21 | install:: 22 | install -d $(DESTDIR)$(INIDIR)/obsolete-packages-ignore.d 23 | 24 | -------------------------------------------------------------------------------- /check_httpd_status/control: -------------------------------------------------------------------------------- 1 | Homepage: http://cvs.orion.education.fr/viewvc/viewvc.cgi/nagios-plugins-perl/trunk/plugins/check_httpd_status.pl?view=log 2 | Watch: http://cvs.orion.education.fr/viewvc/viewvc.cgi/nagios-plugins-perl/trunk/plugins/check_httpd_status.pl?view=log 3 | Recommends: liblocale-gettext-perl, libmonitoring-plugin-perl | libnagios-plugin-perl, liblwp-useragent-determined-perl 4 | Version: rev204 5 | Uploaders: Jan Wagner 6 | Description: plugin checking Apache or lighttpd 7 | server-status page (using mod_status) 8 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/.codeclimate.yml: -------------------------------------------------------------------------------- 1 | version: "2" 2 | plugins: 3 | duplication: 4 | enabled: true 5 | config: 6 | languages: 7 | - c 8 | fixme: 9 | enabled: true 10 | config: 11 | strings: 12 | - FIXME 13 | gnu-complexity: 14 | enabled: true 15 | config: 16 | threshold: 30 17 | shellcheck: 18 | enabled: true 19 | exclude_patterns: 20 | - "**.sample" 21 | - compile 22 | - config.sub 23 | - depcomp 24 | - install-sh 25 | - libtool 26 | - ltmain.sh 27 | - m4/ 28 | - packages/ 29 | -------------------------------------------------------------------------------- /check_uptime/check_uptime.cfg: -------------------------------------------------------------------------------- 1 | define command { 2 | command_name check_uptime 3 | command_line $USER1$/check_uptime -f -w $ARG1$ -c $ARG2$ 4 | } 5 | 6 | define command { 7 | command_name check_snmp_uptime_v2 8 | command_line $USER1$/check_uptime -2 -f -w $ARG1$ -c $ARG2$ -H $HOSTADDRESS$ -C $_HOSTSNMP_COMMUNITY$ 9 | } 10 | 11 | define command { 12 | command_name check_snmp_uptime_v3 13 | command_line $USER1$/check_uptime -f -w $ARG1$ -c $ARG2$ -H $HOSTADDRESS$ -l $_HOSTSNMP_V3_USER$ -x $_HOSTSNMP_V3_AUTH$ -X $_HOSTSNMP_V3_PRIV$ -L sha,aes 14 | } 15 | 16 | -------------------------------------------------------------------------------- /debian/patches/percona-nagios-plugins/fix_bashism: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/percona-nagios-plugins/nagios/bin/pmp-check-mysql-ts-count 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/percona-nagios-plugins/nagios/bin/pmp-check-mysql-ts-count 4 | +++ pkg-nagios-plugins-contrib/percona-nagios-plugins/nagios/bin/pmp-check-mysql-ts-count 5 | @@ -1,4 +1,4 @@ 6 | -#!/bin/sh 7 | +#!/bin/bash 8 | 9 | # ######################################################################## 10 | # This program is part of $PROJECT_NAME$ 11 | -------------------------------------------------------------------------------- /check_httpd_status/copyright: -------------------------------------------------------------------------------- 1 | Dennis D. Spreen (dennis at spreendigital.de) 2 | De Bodt Lieven (Lieven dot DeBodt at gmail.com) 3 | Karsten Behrens (karsten at behrens dot in) 4 | Geoff McQueen (geoff dot mcqueen at hiivesystems dot com ) 5 | Dave Steinberg (dave at redterror dot net) 6 | Gerhard Lausser (gerhard dot lausser at consol dot de) 7 | Stéphane Urbanovski 8 | 9 | License: GPL v2 10 | 11 | On Debian systems, the complete text of the GNU General 12 | Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". 13 | 14 | 15 | -------------------------------------------------------------------------------- /debian/patches/check_lm_sensors/spelling_errors: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_lm_sensors/src/check_lm_sensors.pod 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_lm_sensors/src/check_lm_sensors.pod 4 | +++ pkg-nagios-plugins-contrib/check_lm_sensors/src/check_lm_sensors.pod 5 | @@ -49,7 +49,7 @@ verbosity. 6 | =head1 EXIT STATUS 7 | 8 | 0 if OK, 1 in case of a warning, 2 in case of a critical status and 3 9 | -in case of an unkown problem 10 | +in case of an unknown problem 11 | 12 | =head1 DEPENDENCIES 13 | 14 | -------------------------------------------------------------------------------- /check_printer_health/check_printer_health-1.1.0.2/GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids.pm: -------------------------------------------------------------------------------- 1 | package Monitoring::GLPlugin::SNMP::MibsAndOids; 2 | our @ISA = qw(Monitoring::GLPlugin::SNMP); 3 | 4 | { 5 | no warnings qw(once); 6 | $Monitoring::GLPlugin::SNMP::MibsAndOids::discover_ids = {}; 7 | $Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids = {}; 8 | $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids = {}; 9 | $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions = {}; 10 | $Monitoring::GLPlugin::SNMP::MibsAndOids::origin = {}; 11 | } 12 | 13 | 1; 14 | 15 | __END__ 16 | 17 | -------------------------------------------------------------------------------- /check_printer_health/check_printer_health-1.1.0.2/plugins-scripts/Classes/Brother.pm: -------------------------------------------------------------------------------- 1 | package Classes::Brother; 2 | our @ISA = qw(Classes::Device); 3 | use strict; 4 | 5 | sub init { 6 | my $self = shift; 7 | if ($self->mode =~ /device::hardware::health/) { 8 | $self->analyze_and_check_environmental_subsystem('Classes::HOSTRESOURCESMIB::Component::EnvironmentalSubsystem'); 9 | } elsif ($self->mode =~ /device::battery/) { 10 | $self->analyze_and_check_battery_subsystem('Classes::Kyocera::Components::BatterySubsystem'); 11 | } else { 12 | $self->no_such_mode(); 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /debian/patches/dsa/check_running_kernel_allow_tilde: -------------------------------------------------------------------------------- 1 | --- a/dsa/checks/dsa-check-running-kernel 2 | +++ b/dsa/checks/dsa-check-running-kernel 3 | @@ -207,7 +207,7 @@ 4 | if [ -x /usr/bin/lsb_release ] ; then 5 | vendor=$(lsb_release -i -s) 6 | if [ -n "$vendor" ] && [ "xDebian" != "x$vendor" ] ; then 7 | - on_disk_version=$( echo $on_disk_version|sed -e "s/ ($vendor [[:alnum:]\.-]\+ [[:alnum:]\.-]\+)//") 8 | + on_disk_version=$( echo $on_disk_version|sed -e "s/ ($vendor [[:alnum:]\.~-]\+ [[:alnum:]\.~-]\+)//") 9 | fi 10 | fi 11 | [ -z "$on_disk_version" ] || continue 12 | -------------------------------------------------------------------------------- /check_haproxy_stats/copyright: -------------------------------------------------------------------------------- 1 | Copyright (C) 2012, Giacomo Montagner 2 | 3 | This program is free software; you can redistribute it and/or modify it 4 | under the same terms as Perl 5.10.1. 5 | For more details, see http://dev.perl.org/licenses/artistic.html 6 | 7 | This program is distributed in the hope that it will be 8 | useful, but without any warranty; without even the implied 9 | warranty of merchantability or fitness for a particular purpose. 10 | 11 | On Debian systems a copy of the Artistic license can be found 12 | in /usr/share/common-licenses/Artistic. 13 | 14 | -------------------------------------------------------------------------------- /check_webinject/control: -------------------------------------------------------------------------------- 1 | Homepage: http://labs.consol.de/lang/en/nagios/check_webinject/ 2 | Watch: http://labs.consol.de/lang/en/nagios/check_webinject/ check_webinject-([0-9.]+)\.tar\.gz 3 | Uploaders: Bernd Zeimetz 4 | Recommends: libwebinject-perl 5 | Description: plugin for testing web services 6 | It uses the WebInject Perl module for automated testing of 7 | web applications and web services. It can be used to check 8 | individual system components that have HTTP interfaces 9 | (JSP, ASP, CGI, PHP, AJAX, Servlets, HTML Forms, 10 | XML/SOAP Web Services, REST, etc). 11 | Version: 1.80 12 | -------------------------------------------------------------------------------- /debian/patches/dsa/check_packages_location: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/dsa/sbin/dsa-update-apt-status 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/dsa/sbin/dsa-update-apt-status 4 | +++ pkg-nagios-plugins-contrib/dsa/sbin/dsa-update-apt-status 5 | @@ -81,7 +81,7 @@ fi 6 | tmp=`tempfile` 7 | trap "rm -f '$tmp'" exit 8 | #/usr/share/dsa/apt-status-check --noupdate --timeout=600 > "$tmp" 9 | -/usr/lib/nagios/plugins/dsa-check-packages > "$tmp" 10 | +/usr/lib/nagios/plugins/check_packages > "$tmp" 11 | result="$?" 12 | case "$result" in 13 | 0) 14 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/copyright: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013-2021 Davide Madrisan 2 | 3 | This program is free software: you can redistribute it and/or modify 4 | it under the terms of the GNU General Public License as published by 5 | the Free Software Foundation, either version 3 of the License, or 6 | (at your option) any later version. 7 | 8 | This program is distributed in the hope that it will be useful, 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | GNU General Public License for more details. 12 | -------------------------------------------------------------------------------- /debian/patches/check_haproxy_stats/interpreter: -------------------------------------------------------------------------------- 1 | commit 7ecba59a47bf3a9276d4bb6ef3976ebc2d809e4d 2 | Author: Jan Wagner 3 | Date: Tue Jan 29 16:14:46 2019 +0100 4 | 5 | Fixing interpreter 6 | 7 | Index: pkg-nagios-plugins-contrib/check_haproxy_stats/check_haproxy_stats.pl 8 | =================================================================== 9 | --- pkg-nagios-plugins-contrib.orig/check_haproxy_stats/check_haproxy_stats.pl 10 | +++ pkg-nagios-plugins-contrib/check_haproxy_stats/check_haproxy_stats.pl 11 | @@ -1,4 +1,4 @@ 12 | -#!/usr/bin/env perl 13 | +#!/usr/bin/perl 14 | # vim: se et ts=4: 15 | 16 | # 17 | -------------------------------------------------------------------------------- /check_hp_bladechassis/check_hp_bladechassis-1.0.1/CHANGES: -------------------------------------------------------------------------------- 1 | 1.0.1 2010-01-22 2 | ------------------ 3 | 4 | * Ignore components that are absent, such as power supplies and 5 | fans. If your chassis isn't fully stacked with blades, it may not be 6 | fully stacked with power supplies and fans either. 7 | * Collect perl warnings and output them in a Nagios friendly way 8 | * Plugin version information is now available in the debug output 9 | * Manpage moved from section 3 to section 8 10 | * Plugin now installs in /nagios, not /nagios/contrib 11 | 12 | 1.0.0 2009-08-04 13 | ------------------ 14 | 15 | * Initial release 16 | -------------------------------------------------------------------------------- /check_lm_sensors/lm_sensors.cfg: -------------------------------------------------------------------------------- 1 | # 'check_lm_sensors_high' command definition 2 | define command{ 3 | command_name check_lm_sensors_high 4 | command_line /usr/lib/nagios/plugins/check_lm_sensors --high '$ARG1$' 5 | } 6 | # 'check_lm_sensors_low' command definition 7 | define command{ 8 | command_name check_lm_sensors_low 9 | command_line /usr/lib/nagios/plugins/check_lm_sensors --low '$ARG1$' 10 | } 11 | # 'check_lm_sensors_range' command definition 12 | define command{ 13 | command_name check_lm_sensors_range 14 | command_line /usr/lib/nagios/plugins/check_lm_sensors --range '$ARG1$' 15 | } 16 | 17 | -------------------------------------------------------------------------------- /debian/patches/check_nfsmounts/nfs4_support: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_nfsmounts/check_nfsmounts 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_nfsmounts/check_nfsmounts 4 | +++ pkg-nagios-plugins-contrib/check_nfsmounts/check_nfsmounts 5 | @@ -101,7 +101,7 @@ if(!open MTAB,"< /etc/mtab") { 6 | my @dirs=(); 7 | my %mountmodes=(); 8 | while(my $line=) { 9 | - if($line =~ /^[^ ]+ [^ ]+ nfs /) { 10 | + if($line =~ /^[^ ]+ [^ ]+ nfs4? /) { 11 | my @fields=split(/\s+/,$line); 12 | my $mountpoint=$fields[1]; 13 | push(@dirs,$mountpoint); 14 | -------------------------------------------------------------------------------- /check_uptime/control: -------------------------------------------------------------------------------- 1 | Homepage: https://github.com/willixix/WL-NagiosPlugins 2 | Watch: https://raw.githubusercontent.com/willixix/WL-NagiosPlugins/master/check_uptime.pl Version[ :]+([0-9.]+) 3 | Uploaders: Bernd Zeimetz 4 | Description: check_uptime returns uptime of a system 5 | in text (readable) format as well as in minutes for performance graphing. 6 | The plugin can either run on a local unix system (using 'uptime' command) 7 | or check remote system by SNMP. Also it is able to report one CRITICAL 8 | or WARNING alert if system has been rebooted since last check. 9 | Recommends: libnet-snmp-perl 10 | Version: 0.521 11 | -------------------------------------------------------------------------------- /check_clamav/control: -------------------------------------------------------------------------------- 1 | Homepage: http://exchange.nagios.org/directory/Plugins/Anti-2DVirus/ClamAV/ClamAV-check-plugin/details 2 | Watch: http://exchange.nagios.org/directory/Plugins/Anti-2DVirus/ClamAV/ClamAV-check-plugin/details check_clamav plugin v([0-9.]+) 3 | Uploaders: Bernd Zeimetz 4 | Description: plugin to check for clamav signature freshness 5 | This script is used to compare the version and signature 6 | level of the currently running clamd daemon with the latest 7 | available versions listed in the TXT record for 8 | current.cvd.clamav.net. 9 | Recommends: nagios-plugins-basic, libnet-dns-perl 10 | Version: 1.2 11 | -------------------------------------------------------------------------------- /debian/patches/check_cups/ParseDateDelta: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_cups/check_cups 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_cups/check_cups 4 | +++ pkg-nagios-plugins-contrib/check_cups/check_cups 5 | @@ -395,7 +395,7 @@ elsif ( scalar( keys( %warning ) ) ) { 6 | 7 | my( $age, $jobs ) = ( $warning{$queue}->{age}, $warning{$queue}->{jobs} ); 8 | 9 | - my( $prettyage ) = prettyDelta( parseDateDelta( "$age minutes" ) ); 10 | + my( $prettyage ) = prettyDelta( ParseDateDelta( "$age minutes" ) ); 11 | 12 | my( @messages ); 13 | 14 | -------------------------------------------------------------------------------- /debian/patches/dsa/check_cert_expire_dir_check_name_fix: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/dsa/checks/dsa-check-cert-expire-dir 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/dsa/checks/dsa-check-cert-expire-dir 4 | +++ pkg-nagios-plugins-contrib/dsa/checks/dsa-check-cert-expire-dir 5 | @@ -26,9 +26,9 @@ 6 | 7 | sn="$0" 8 | if [ "${sn%/*}" = "$sn" ]; then 9 | - CERT_CHECK=dsa-check-cert-expire 10 | + CERT_CHECK=check_cert_expire 11 | else 12 | - CERT_CHECK="${sn%/*}/dsa-check-cert-expire" 13 | + CERT_CHECK="${sn%/*}/check_cert_expire" 14 | fi 15 | 16 | if [ "$#" != 1 ] ; then 17 | -------------------------------------------------------------------------------- /check_hp_bladechassis/copyright: -------------------------------------------------------------------------------- 1 | AUTHOR: Trond H. Amundsen 2 | 3 | 4 | Copyright (C) 2010 Trond H. Amundsen 5 | 6 | This program is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | This program is distributed in the hope that it will be useful, but 12 | WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | General Public License for more details. 15 | 16 | -------------------------------------------------------------------------------- /debian/patches/check_printer/use_data_dumper_if_needed: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_printer/check_printer 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_printer/check_printer 4 | +++ pkg-nagios-plugins-contrib/check_printer/check_printer 5 | @@ -40,7 +40,6 @@ if ($OS =~ m/^\wBSD/){ 6 | use lib "/usr/local/nagios/libexec"; 7 | } 8 | 9 | -use Data::Dumper; 10 | use Getopt::Long; 11 | use Pod::Usage; 12 | 13 | @@ -109,6 +108,7 @@ foreach(@vars){ 14 | } 15 | 16 | if ($debug){ 17 | + use Data::Dumper; 18 | print Dumper(\@values); 19 | } 20 | my %finvalues; 21 | -------------------------------------------------------------------------------- /check_printer_health/check_printer_health-1.1.0.2/GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/SNMPFRAMEWORKMIB.pm: -------------------------------------------------------------------------------- 1 | package Monitoring::GLPlugin::SNMP::MibsAndOids::SNMPFRAMEWORKMIB; 2 | 3 | $Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'SNMP-FRAMEWORK-MIB'} = { 4 | url => "", 5 | name => "MIB-II", 6 | }; 7 | 8 | $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'SNMP-FRAMEWORK-MIB'} = { 9 | snmpEngineID => '1.3.6.1.6.3.10.2.1.1.0', 10 | snmpEngineBoots => '1.3.6.1.6.3.10.2.1.2.0', 11 | snmpEngineTime => '1.3.6.1.6.3.10.2.1.3.0', 12 | snmpEngineMaxMessageSize => '1.3.6.1.6.3.10.2.1.4.0', 13 | }; 14 | 15 | 1; 16 | 17 | __END__ 18 | -------------------------------------------------------------------------------- /check_mysql_health/check_mysql_health-2.2.2/t/Makefile.am: -------------------------------------------------------------------------------- 1 | ## 2 | ## Process this file with automake to produce Makefile.in 3 | ## 4 | 5 | AUTOMAKE_OPTIONS = 1.3 no-dependencies 6 | 7 | #all: tests 8 | 9 | TEST_VERBOSE=0 10 | TEST_TYPE=test_$(LINKTYPE) 11 | TEST_FILE = test.pl 12 | TEST_FILES = *.t 13 | TESTDB_SW = -d 14 | 15 | #EXTRA_DIST = *.t bin var etc 16 | EXTRA_DIST = *.t 17 | 18 | tests: 19 | $(PERL) "-MExtUtils::Command::MM" "-e" "test_harness($(TEST_VERBOSE))" $(TEST_FILES) 20 | # PERL_DL_NONLAZY=1 $(FULLPERLRUN) "-MExtUtils::Command::MM" "-e" "test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" $(TEST_FILES) 21 | 22 | -------------------------------------------------------------------------------- /debian/patches/check_lm_sensors/manpage_whatis_fix: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_lm_sensors/src/check_lm_sensors.pod 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_lm_sensors/src/check_lm_sensors.pod 4 | +++ pkg-nagios-plugins-contrib/check_lm_sensors/src/check_lm_sensors.pod 5 | @@ -2,8 +2,7 @@ 6 | 7 | =head1 NAME 8 | 9 | -C is a Nagios plugin to monitor the values of on 10 | -board sensors and hard disk temperatures on Linux systems 11 | +C - Nagios plugin to monitor hardware sensors and disk temperatures 12 | 13 | =head1 DESCRIPTION 14 | 15 | -------------------------------------------------------------------------------- /check_hp_bladechassis/check_hp_bladechassis-1.0.1/README: -------------------------------------------------------------------------------- 1 | Files in this directory: 2 | 3 | check_hp_bladechassis - The plugin 4 | check_hp_bladechassis.8 - Man page 5 | check_hp_bladechassis.pod - POD (raw man page) 6 | check_hp_bladechassis.php - PNP4Nagios template 7 | COPYING - License information 8 | INSTALL - Install HOWTO 9 | CHANGES - Changelog 10 | install.sh - Linux/UNIX install script 11 | README - This file 12 | 13 | More information avilable online: 14 | 15 | http://folk.uio.no/trondham/software/check_hp_bladechassis.html 16 | 17 | -------------------------------------------------------------------------------- /check_lm_sensors/check_lm_sensors-4.1.1/MANIFEST: -------------------------------------------------------------------------------- 1 | AUTHORS 2 | Changes 3 | check_lm_sensors 4 | check_lm_sensors.pod 5 | check_lm_sensors.spec 6 | COPYING 7 | COPYRIGHT 8 | inc/Module/AutoInstall.pm 9 | inc/Module/Install.pm 10 | inc/Module/Install/AutoInstall.pm 11 | inc/Module/Install/Base.pm 12 | inc/Module/Install/Include.pm 13 | inc/Module/Install/Makefile.pm 14 | inc/Module/Install/MakeMaker.pm 15 | inc/Module/Install/Metadata.pm 16 | inc/Module/Install/Scripts.pm 17 | inc/version.pm 18 | INSTALL 19 | Makefile.PL 20 | MANIFEST This list of files 21 | MANIFEST.SKIP 22 | META.yml 23 | MYMETA.json 24 | MYMETA.yml 25 | NAME 26 | NEWS 27 | README 28 | TODO 29 | VERSION 30 | -------------------------------------------------------------------------------- /debian/patches/check_uptime/missing_backslash: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_uptime/check_uptime 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_uptime/check_uptime 4 | +++ pkg-nagios-plugins-contrib/check_uptime/check_uptime 5 | @@ -540,7 +540,7 @@ if ($check_type==1) { # local 6 | elsif ($uptime_output =~ /up\s+(\d+)\s+min/) { 7 | ($days, $hrs, $mins) = (0,0,$1); 8 | } 9 | - elsif ($uptime_output =~ /up\s+(\d+)s+days?,s+(\d+)s+min/) { 10 | + elsif ($uptime_output =~ /up\s+(\d+)\s+days?,\s+(\d+)\s+min/) { 11 | ($days, $hrs, $mins) = ($1,0,$2); 12 | } 13 | else { 14 | -------------------------------------------------------------------------------- /debian/patches/check_snmp_environment/epn: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_snmp_environment/check_snmp_environment.pl 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_snmp_environment/check_snmp_environment.pl 4 | +++ pkg-nagios-plugins-contrib/check_snmp_environment/check_snmp_environment.pl 5 | @@ -1,4 +1,5 @@ 6 | #!/usr/bin/perl 7 | +# nagios: -epn 8 | # ============================================================================ 9 | # ============================== INFO ======================================== 10 | # ============================================================================ 11 | -------------------------------------------------------------------------------- /check_printer_health/check_printer_health-1.1.0.2/plugins-scripts/Classes/PRINTERMIB.pm: -------------------------------------------------------------------------------- 1 | package Classes::PRINTERMIB; 2 | our @ISA = qw(Classes::Device); 3 | use strict; 4 | 5 | sub init { 6 | my $self = shift; 7 | if ($self->mode =~ /device::hardware::health/) { 8 | $self->analyze_and_check_environmental_subsystem('Classes::PRINTERMIB::Component::PrinterSubsystem'); 9 | } elsif ($self->mode =~ /device::printer::consumables/) { 10 | $self->analyze_and_check_environmental_subsystem('Classes::PRINTERMIB::Component::PrinterSubsystem'); 11 | $self->reduce_messages_short('supplies status is fine'); 12 | } else { 13 | $self->no_such_mode(); 14 | } 15 | } 16 | 17 | -------------------------------------------------------------------------------- /check_webinject/copyright: -------------------------------------------------------------------------------- 1 | Copyright 2010 Sven Nierlein (nierlein@cpan.org) 2 | Copyright 2004-2006 Corey Goldberg (corey@goldb.org) 3 | 4 | This file is part of WebInject. 5 | 6 | WebInject is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 2 of the License, or 9 | (at your option) any later version. 10 | 11 | WebInject is distributed in the hope that it will be useful, 12 | but without any warranty; without even the implied warranty of 13 | merchantability or fitness for a particular purpose. See the 14 | GNU General Public License for more details. 15 | 16 | -------------------------------------------------------------------------------- /debian/patches/dsa/check_packages-inifile: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/dsa/checks/dsa-check-packages 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/dsa/checks/dsa-check-packages 4 | +++ pkg-nagios-plugins-contrib/dsa/checks/dsa-check-packages 5 | @@ -37,8 +37,8 @@ use strict; 6 | use warnings; 7 | use English; 8 | 9 | -my $IGNORE = "/etc/nagios/obsolete-packages-ignore"; 10 | -my $IGNORED = "/etc/nagios/obsolete-packages-ignore.d"; 11 | +my $IGNORE = "/etc/nagios-plugins/obsolete-packages-ignore"; 12 | +my $IGNORED = "/etc/nagios-plugins/obsolete-packages-ignore.d"; 13 | 14 | my %CODE = ( 15 | 'OK' => 0, 16 | -------------------------------------------------------------------------------- /check_rbl/check_rbl-1.7.2/inc/Module/Install/Scripts.pm: -------------------------------------------------------------------------------- 1 | #line 1 2 | package Module::Install::Scripts; 3 | 4 | use strict 'vars'; 5 | use Module::Install::Base (); 6 | 7 | use vars qw{$VERSION @ISA $ISCORE}; 8 | BEGIN { 9 | $VERSION = '1.21'; 10 | @ISA = 'Module::Install::Base'; 11 | $ISCORE = 1; 12 | } 13 | 14 | sub install_script { 15 | my $self = shift; 16 | my $args = $self->makemaker_args; 17 | my $exe = $args->{EXE_FILES} ||= []; 18 | foreach ( @_ ) { 19 | if ( -f $_ ) { 20 | push @$exe, $_; 21 | } elsif ( -d 'script' and -f "script/$_" ) { 22 | push @$exe, "script/$_"; 23 | } else { 24 | die("Cannot find script '$_'"); 25 | } 26 | } 27 | } 28 | 29 | 1; 30 | -------------------------------------------------------------------------------- /percona-nagios-plugins/copyright: -------------------------------------------------------------------------------- 1 | Copyright 2012-2014 Baron Schwartz, 2012-2014 Percona Inc. 2 | 3 | THIS PROGRAM IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED 4 | WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 5 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 6 | 7 | This program is free software; you can redistribute it and/or modify it under 8 | the terms of the GNU General Public License as published by the Free Software 9 | Foundation, version 2. You should have received a copy of the GNU General 10 | Public License along with this program; if not, write to the Free Software 11 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 12 | 13 | -------------------------------------------------------------------------------- /check_hpasm/Makefile: -------------------------------------------------------------------------------- 1 | PLUGIN := check_hpasm 2 | CLEANFILES := check_hpasm 3 | 4 | include ../common.mk 5 | 6 | check_hpasm: 7 | set -e; for i in guess sub; do if [ ! -e src/config.$$i.bak ]; then cp src/config.$$i src/config.$$i.bak; fi; done 8 | cp /usr/share/misc/config.* src 9 | cd src && ./configure --prefix=/usr --enable-perfdata --enable-extendedinfo --with-nagios-user=nagios --with-nagios-group=nagios --with-degrees=celsius 10 | make -C src 11 | sed '2s,^,# nagios: -epn\n,' src/plugins-scripts/check_hpasm > $@ 12 | 13 | clean:: 14 | [ ! -f src/Makefile ] || make -C src distclean 15 | set -e; for i in guess sub; do if [ -e src/config.$$i.bak ]; then mv src/config.$$i.bak src/config.$$i; fi; done 16 | -------------------------------------------------------------------------------- /check_ipmi_sensor/ipmi_sensor.cfg: -------------------------------------------------------------------------------- 1 | # See http://www.thomas-krenn.com/de/wiki/IPMI_Sensor_Monitoring_Plugin 2 | # for details (German only) 3 | 4 | # Ensure to configure 5 | # _ipmi_ip 6 | # as Custom Object Variable in your Host definition. 7 | 8 | # 'check_ipmi_sensor' command definition 9 | define command{ 10 | command_name check_ipmi_sensor 11 | command_line /usr/lib/nagios/plugins/check_ipmi_sensor -H $_HOSTIPMI_IP$ -f $ARG1$ 12 | } 13 | 14 | # 'check_ipmi_sensor_exclude' command definition 15 | define command{ 16 | command_name check_ipmi_sensor_exclude 17 | command_line /usr/lib/nagios/plugins/check_ipmi_sensor -H $_HOSTIPMI_IP$ -f $ARG1$ -x $ARG2$ 18 | } 19 | -------------------------------------------------------------------------------- /check_v46/control: -------------------------------------------------------------------------------- 1 | Watch: https://gitorious.org/nagios-monitoring-tools/nagios-monitoring-tools.git/?p=nagios-monitoring-tools:nagios-monitoring-tools.git;a=atom ([^>]+) 2 | Version: 2013-08-26T07:33:11Z 3 | Homepage: https://gitorious.org/nagios-monitoring-tools/nagios-monitoring-tools/ 4 | Uploaders: Bernd Zeimetz 5 | Description: ipv4/ipv6 Nagios plugin wrapper 6 | Nagios plugin wrapper for running the actual plugin for both / either of 7 | IPv6 and/or IPv4. The worst result of the actual plugin runs will be 8 | the wrapper return value, that is, result will be OK only if all checks 9 | returned OK. Compatible with any plugin with standard command line options 10 | -6/-4. 11 | -------------------------------------------------------------------------------- /check_hp_bladechassis/check_hp_bladechassis-1.0.1/INSTALL: -------------------------------------------------------------------------------- 1 | Automatic installation 2 | ---------------------- 3 | 4 | Run the script install.sh to install automatically. The install.sh 5 | script will ask where to install the files, unless given the '-q' 6 | option, which will install the files in the default location. 7 | 8 | 9 | Manual installation 10 | ------------------- 11 | 12 | To install check_hp_bladechassis, copy the file check_hp_bladechassis to the 13 | Nagios plugin directory (usually /usr/lib/nagios/plugins): 14 | 15 | cp check_hp_bladechassis /usr/lib/nagios/plugins 16 | 17 | To install the manual page: 18 | 19 | cp check_hp_bladechassis.8 /usr/share/man/man8 20 | 21 | This is all. 22 | 23 | -trond 24 | -------------------------------------------------------------------------------- /check_hpasm/check_hpasm-4.8.0.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide/CLI.pm: -------------------------------------------------------------------------------- 1 | package HP::Proliant::Component::DiskSubsystem::Ide::CLI; 2 | our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Ide); 3 | 4 | use strict; 5 | use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; 6 | 7 | sub new { 8 | my $class = shift; 9 | my %params = @_; 10 | my $self = { 11 | controllers => [], 12 | accelerators => [], 13 | enclosures => [], 14 | physical_drives => [], 15 | logical_drives => [], 16 | spare_drives => [], 17 | blacklisted => 0, 18 | }; 19 | bless $self, $class; 20 | return $self; 21 | } 22 | 23 | sub init { 24 | my $self = shift; 25 | } 26 | 27 | 1; 28 | -------------------------------------------------------------------------------- /check_hpasm/check_hpasm-4.8.0.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas/CLI.pm: -------------------------------------------------------------------------------- 1 | package HP::Proliant::Component::DiskSubsystem::Sas::CLI; 2 | our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Sas); 3 | 4 | use strict; 5 | use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; 6 | 7 | sub new { 8 | my $class = shift; 9 | my %params = @_; 10 | my $self = { 11 | controllers => [], 12 | accelerators => [], 13 | enclosures => [], 14 | physical_drives => [], 15 | logical_drives => [], 16 | spare_drives => [], 17 | blacklisted => 0, 18 | }; 19 | bless $self, $class; 20 | return $self; 21 | } 22 | 23 | sub init { 24 | my $self = shift; 25 | } 26 | 27 | 1; 28 | -------------------------------------------------------------------------------- /check_hpasm/control: -------------------------------------------------------------------------------- 1 | Homepage: http://labs.consol.de/lang/en/nagios/check_hpasm/ 2 | Watch: http://labs.consol.de/lang/en/nagios/check_hpasm/ check_hpasm-([0-9.]+)\.tar\.gz 3 | Uploaders: Bernd Zeimetz 4 | Description: plugin to check the hardware health of 5 | HP Proliant Servers 6 | It either uses snmp or - if installed - the hpasm package locally. 7 | The plugin checks the health of 8 | * Processors 9 | * Power supplies 10 | * Memory modules 11 | * Fans 12 | * CPU- and board-temperatures 13 | * Raids 14 | and alerts you if one of these components is faulty or operates 15 | outside its normal parameters. 16 | Build-Depends: autotools-dev 17 | Recommends: snmp 18 | Version: 4.8.0.2 19 | -------------------------------------------------------------------------------- /check_printer_health/check_printer_health-1.1.0.2/GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/SNMPV2TCV1MIB.pm: -------------------------------------------------------------------------------- 1 | package Monitoring::GLPlugin::SNMP::MibsAndOids::SNMPV2TCV1MIB; 2 | 3 | $Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'SNMPv2-TC-v1-MIB'} = { 4 | url => '', 5 | name => 'SNMPv2-TC-v1-MIB', 6 | }; 7 | 8 | $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'SNMPv2-TC-v1-MIB'} = { 9 | 'TruthValue' => { 10 | 1 => 'true', 11 | 2 => 'false', 12 | }, 13 | 'RowStatus' => { 14 | 1 => 'active', 15 | 2 => 'notInService', 16 | 3 => 'notReady', 17 | 4 => 'createAndGo', 18 | 5 => 'createAndWait', 19 | 6 => 'destroy', 20 | }, 21 | }; 22 | 23 | 1; 24 | 25 | __END__ 26 | -------------------------------------------------------------------------------- /check_debsecan/copyright: -------------------------------------------------------------------------------- 1 | Copyright (C) 2017 Stefan Schörghofer 2 | 3 | This program is free software: you can redistribute it and/or modify 4 | it under the terms of the GNU General Public License as published by 5 | the Free Software Foundation, either version 3 of the License, or 6 | (at your option) any later version. 7 | 8 | This program is distributed in the hope that it will be useful, but 9 | WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 | General Public License for more details. 12 | 13 | You should have received a copy of the GNU General Public License 14 | along with this program. If not, see . 15 | 16 | -------------------------------------------------------------------------------- /check_hpasm/check_hpasm-4.8.0.2/plugins-scripts/HP/Proliant/Component/BatterySubsystem/CLI.pm: -------------------------------------------------------------------------------- 1 | package HP::Proliant::Component::BatterySubsystem::CLI; 2 | our @ISA = qw(HP::Proliant::Component::BatterySubsystem); 3 | 4 | use strict; 5 | use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; 6 | 7 | sub new { 8 | my $class = shift; 9 | my %params = @_; 10 | my $self = { 11 | runtime => $params{runtime}, 12 | rawdata => $params{rawdata}, 13 | blacklisted => 0, 14 | info => undef, 15 | extendedinfo => undef, 16 | }; 17 | bless $self, $class; 18 | $self->init(%params); 19 | return $self; 20 | } 21 | 22 | sub init { 23 | my $self = shift; 24 | my %params = @_; 25 | } 26 | 27 | 1; 28 | -------------------------------------------------------------------------------- /check_hpasm/check_hpasm-4.8.0.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi/CLI.pm: -------------------------------------------------------------------------------- 1 | package HP::Proliant::Component::DiskSubsystem::Scsi::CLI; 2 | our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Scsi); 3 | 4 | use strict; 5 | use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; 6 | 7 | sub new { 8 | my $class = shift; 9 | my %params = @_; 10 | my $self = { 11 | controllers => [], 12 | accelerators => [], 13 | enclosures => [], 14 | physical_drives => [], 15 | logical_drives => [], 16 | spare_drives => [], 17 | blacklisted => 0, 18 | }; 19 | bless $self, $class; 20 | return $self; 21 | } 22 | 23 | sub init { 24 | my $self = shift; 25 | } 26 | 27 | 1; 28 | -------------------------------------------------------------------------------- /check_rbl/check_rbl-1.7.2/inc/Module/Install/Include.pm: -------------------------------------------------------------------------------- 1 | #line 1 2 | package Module::Install::Include; 3 | 4 | use strict; 5 | use Module::Install::Base (); 6 | 7 | use vars qw{$VERSION @ISA $ISCORE}; 8 | BEGIN { 9 | $VERSION = '1.21'; 10 | @ISA = 'Module::Install::Base'; 11 | $ISCORE = 1; 12 | } 13 | 14 | sub include { 15 | shift()->admin->include(@_); 16 | } 17 | 18 | sub include_deps { 19 | shift()->admin->include_deps(@_); 20 | } 21 | 22 | sub auto_include { 23 | shift()->admin->auto_include(@_); 24 | } 25 | 26 | sub auto_include_deps { 27 | shift()->admin->auto_include_deps(@_); 28 | } 29 | 30 | sub auto_include_dependent_dists { 31 | shift()->admin->auto_include_dependent_dists(@_); 32 | } 33 | 34 | 1; 35 | -------------------------------------------------------------------------------- /check_backuppc/check_backuppc-1.1.0/README: -------------------------------------------------------------------------------- 1 | This plugin must be run as the same user that BackupPC runs under. For a host 2 | to be considered an archive host by the --backup-only and --archive-only options 3 | at least one archive must be run by the host. 4 | 5 | Sample configuration for NRPE with Ubuntu hosts: 6 | 1) Add the following line to /etc/sudoers on the backup host 7 | nagios ALL = (backuppc) NOPASSWD: /usr/local/lib/nagios/plugins/check_backuppc 8 | 9 | 2) Add the following line to /etc/nagios/nrpe.cfg 10 | command[check_backuppc]=/usr/bin/sudo -u backuppc \ 11 | /usr/local/lib/nagios/plugins/check_backuppc 12 | 13 | 3) Add the appropriate stanza to your Nagios configuration to use this check 14 | with NRPE. 15 | -------------------------------------------------------------------------------- /check_printer_health/check_printer_health-1.1.0.2/GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/LEXMARKSETTINGSCONTROL.pm: -------------------------------------------------------------------------------- 1 | package Monitoring::GLPlugin::SNMP::MibsAndOids::LEXMARKSETTINGSCONTROLMIB; 2 | 3 | $Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'LEXMARK-SETTINGS-CONTROL-MIB'} = { 4 | url => '', 5 | name => 'LEXMARK-SETTINGS-CONTROL-MIB', 6 | }; 7 | 8 | #$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'LEXMARK-SETTINGS-CONTROL-MIB'} = 9 | 10 | $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'LEXMARK-SETTINGS-CONTROL-MIB'} = { 11 | settingsControlMibModule => '1.3.6.1.4.1.641.4.3', 12 | }; 13 | 14 | $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'LEXMARK-SETTINGS-CONTROL-MIB'} = { 15 | }; 16 | -------------------------------------------------------------------------------- /check_email_delivery/copyright: -------------------------------------------------------------------------------- 1 | Copyright (C) 2005-2011 Jonathan Buhacoff 2 | 3 | This program is free software; you can redistribute it and/or modify 4 | it under the terms of the GNU General Public License as published by 5 | the Free Software Foundation; either version 3 of the License, or 6 | (at your option) any later version. 7 | 8 | This program is distributed in the hope that it will be useful, 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | GNU General Public License for more details. 12 | 13 | You should have received a copy of the GNU General Public License 14 | along with this program. If not, see . 15 | 16 | -------------------------------------------------------------------------------- /check_printer_health/check_printer_health-1.1.0.2/GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/LEXMARKSETTINGSDEFINITION.pm: -------------------------------------------------------------------------------- 1 | package Monitoring::GLPlugin::SNMP::MibsAndOids::LEXMARKSETTINGSDEFINITION; 2 | 3 | $Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'LEXMARK-SETTINGS-DEFINITION'} = { 4 | url => '', 5 | name => 'LEXMARK-SETTINGS-DEFINITION', 6 | }; 7 | 8 | #$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'LEXMARK-SETTINGS-DEFINITION'} = 9 | 10 | $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'LEXMARK-SETTINGS-DEFINITION'} = { 11 | settingsDefinitionMibModule => '1.3.6.1.4.1.641.4.3', 12 | }; 13 | 14 | $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'LEXMARK-SETTINGS-DEFINITION'} = { 15 | }; 16 | -------------------------------------------------------------------------------- /check_etc_hosts/copyright: -------------------------------------------------------------------------------- 1 | Copyright (C) 2002 Petter Reinholdtsen 2 | 3 | This program is free software; you can redistribute it and/or modify 4 | it under the terms of the GNU General Public License as published by 5 | the Free Software Foundation; either version 2 of the License, or (at 6 | your option) any later version. 7 | 8 | This program is distributed in the hope that it will be useful, but 9 | WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 | General Public License for more details. 12 | 13 | You should have received a copy of the GNU General Public License 14 | along with this program; if not, see . 15 | -------------------------------------------------------------------------------- /check_rbl/check_rbl-1.7.2/publish_release.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | VERSION=$(grep "our\ \$VERSION\ =\ " check_rbl | sed "s/^[^']*'\([0-9.]*\)';/\1/") 4 | 5 | echo "Publishing release ${VERSION}" 6 | 7 | echo 'RELEASE_NOTES.md:' 8 | echo '------------------------------------------------------------------------------' 9 | 10 | cat RELEASE_NOTES.md 11 | 12 | echo '------------------------------------------------------------------------------' 13 | 14 | echo 'Did you update the RELEASE_NOTES.md? ' 15 | read -r ANSWER 16 | if [ "${ANSWER}" = "y" ]; then 17 | 18 | perl Makefile.PL 19 | make dist 20 | gh release create "v${VERSION}" --title "check_rbl-${VERSION}" --notes-file RELEASE_NOTES.md "check_rbl-${VERSION}.tar.gz" 21 | 22 | fi 23 | -------------------------------------------------------------------------------- /check_checksums/copyright: -------------------------------------------------------------------------------- 1 | Copyright (C) 2013 Bernd Zeimetz 2 | 3 | This program is free software: you can redistribute it and/or modify 4 | it under the terms of the GNU General Public License as published by 5 | the Free Software Foundation, either version 3 of the License, or 6 | (at your option) any later version. 7 | 8 | This program is distributed in the hope that it will be useful, 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | GNU General Public License for more details. 12 | 13 | You should have received a copy of the GNU General Public License 14 | along with this program. If not, see . 15 | 16 | -------------------------------------------------------------------------------- /check_printer_health/check_printer_health-1.1.0.2/GLPlugin/lib/Monitoring/GLPlugin/TableItem.pm: -------------------------------------------------------------------------------- 1 | package Monitoring::GLPlugin::TableItem; 2 | our @ISA = qw(Monitoring::GLPlugin::Item); 3 | 4 | use strict; 5 | 6 | sub new { 7 | my ($class, %params) = @_; 8 | my $self = {}; 9 | bless $self, $class; 10 | foreach (keys %params) { 11 | $self->{$_} = $params{$_}; 12 | } 13 | if ($self->can("finish")) { 14 | $self->finish(%params); 15 | } 16 | return $self; 17 | } 18 | 19 | sub check { 20 | my ($self) = @_; 21 | # some tableitems are not checkable, they are only used to enhance other 22 | # items (e.g. sensorthresholds enhance sensors) 23 | # normal tableitems should have their own check-method 24 | } 25 | 26 | 1; 27 | 28 | __END__ 29 | -------------------------------------------------------------------------------- /check_printer_health/check_printer_health-1.1.0.2/GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/LEXMARKROOTMIB.pm: -------------------------------------------------------------------------------- 1 | package Monitoring::GLPlugin::SNMP::MibsAndOids::LEXMARKROOTMIB; 2 | 3 | $Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'LEXMARK-ROOT-MIB'} = { 4 | url => '', 5 | name => 'LEXMARK-ROOT-MIB', 6 | }; 7 | 8 | #$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'LEXMARK-ROOT-MIB'} = 9 | 10 | $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'LEXMARK-ROOT-MIB'} = { 11 | lexmark => '1.3.6.1.4.1.641', 12 | lexmarkModules => '1.3.6.1.4.1.641.4', 13 | lexmarkMIB => '1.3.6.1.4.1.641.4.1', 14 | lexmarkMibObjects => '1.3.6.1.4.1.641.5', 15 | }; 16 | 17 | $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'LEXMARK-ROOT-MIB'} = { 18 | }; 19 | -------------------------------------------------------------------------------- /check_rbl/check_rbl-1.7.2/META.yml: -------------------------------------------------------------------------------- 1 | --- 2 | build_requires: 3 | ExtUtils::MakeMaker: 6.36 4 | configure_requires: 5 | ExtUtils::MakeMaker: 6.36 6 | distribution_type: module 7 | dynamic_config: 1 8 | generated_by: 'Module::Install version 1.21' 9 | license: gpl_3 10 | meta-spec: 11 | url: http://module-build.sourceforge.net/META-spec-v1.4.html 12 | version: 1.4 13 | name: check_rbl 14 | no_index: 15 | directory: 16 | - inc 17 | - t 18 | requires: 19 | Capture::Tiny: 0 20 | Data::Validate::Domain: 0.12 21 | Data::Validate::IP: 0 22 | English: 0 23 | IO::Select: 0 24 | Monitoring::Plugin: 0 25 | Monitoring::Plugin::Getopt: 0 26 | Monitoring::Plugin::Threshold: 0 27 | Net::DNS: 0 28 | Net::IP: 0 29 | Readonly: 0 30 | Socket: 0 31 | version: 1.7.2 32 | -------------------------------------------------------------------------------- /check_v46/copyright: -------------------------------------------------------------------------------- 1 | 2012-02, 2012-03 Ville.Mattila@csc.fi 2 | Copyright (C) 2012-2013 CSC - IT Center for Science Ltd. 3 | 4 | This program is free software; you can redistribute it and/or modify it under 5 | the terms of the GNU General Public License as published by the Free Software 6 | Foundation; either version 3 of the License, or (at your option) any later 7 | version. 8 | 9 | This program is distributed in the hope that it will be useful, but WITHOUT 10 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 11 | FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 12 | details. 13 | 14 | You should have received a copy of the GNU General Public License along with 15 | this program; if not, see . 16 | 17 | -------------------------------------------------------------------------------- /check_etc_resolv/copyright: -------------------------------------------------------------------------------- 1 | Copyright (C) 2001 Petter Reinholdtsen 2 | Copyright (C) 2020 Bernd Zeimetz 3 | 4 | This program is free software; you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 2 of the License, or (at 7 | your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, but 10 | WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, see . 16 | -------------------------------------------------------------------------------- /check_lm_sensors/check_lm_sensors-4.1.1/COPYRIGHT: -------------------------------------------------------------------------------- 1 | Copyright (c) 2007-2010 Matteo Corti 2 | 3 | This program is free software; you can redistribute it and/or modify 4 | it under the terms of the GNU General Public License as published by 5 | the Free Software Foundation; either version 3 of the License, or (at 6 | your option) any later version. 7 | 8 | This program is distributed in the hope that it will be useful, but 9 | WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 | General Public License for more details. 12 | 13 | You should have received a copy of the GNU General Public License 14 | along with this program; if not, write to the Free Software 15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 16 | -------------------------------------------------------------------------------- /check_multipath/copyright: -------------------------------------------------------------------------------- 1 | Copyright (C) 2011 Hinnerk Rümenapf, Trond H. Amundsen, Gunther Schlegel, Matija Nalis, 2 | Bernd Zeimetz 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation, either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, but 10 | WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . 16 | 17 | -------------------------------------------------------------------------------- /check_hpasm/check_hpasm-4.8.0.2/plugins-scripts/HP/Proliant/Component/AsrSubsystem/CLI.pm: -------------------------------------------------------------------------------- 1 | package HP::Proliant::Component::AsrSubsystem::CLI; 2 | our @ISA = qw(HP::Proliant::Component::AsrSubsystem); 3 | 4 | use strict; 5 | use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; 6 | 7 | sub new { 8 | my $class = shift; 9 | my %params = @_; 10 | my $self = { 11 | runtime => $params{runtime}, 12 | rawdata => $params{rawdata}, 13 | blacklisted => 0, 14 | info => undef, 15 | extendedinfo => undef, 16 | }; 17 | bless $self, $class; 18 | $self->init(%params); 19 | return $self; 20 | } 21 | 22 | sub init { 23 | my $self = shift; 24 | my %params = @_; 25 | } 26 | 27 | sub overall_check { 28 | my $self = shift; 29 | my %params = @_; 30 | } 31 | 32 | 1; 33 | -------------------------------------------------------------------------------- /check_nfsmounts/copyright: -------------------------------------------------------------------------------- 1 | Author: Clint Byrum 2 | 3 | Copyright 2007 Adicio, Inc. 4 | 5 | This program is free software; you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . 17 | 18 | -------------------------------------------------------------------------------- /check_redis/control: -------------------------------------------------------------------------------- 1 | Homepage: https://github.com/willixix/WL-NagiosPlugins 2 | Watch: https://raw.githubusercontent.com/willixix/WL-NagiosPlugins/master/check_redis.pl Version[ :]+([0-9.]+) 3 | Uploaders: Bernd Zeimetz 4 | Description: Redis Server check plugin 5 | This plugin checks Redis NoSQL database status variables, 6 | measures its response time and if specified allows one to set thresholds 7 | on one or more key data. You can set thresholds for data in stats 8 | variables and some of them are also conveniently available as long options 9 | with special threshold syntax. Plugin also calculates statistics such as 10 | Hitrate (calculated as rate of change of hits/misses) and memory use and 11 | can check replication delay. 12 | Recommends: libredis-perl 13 | Version: 0.73 14 | -------------------------------------------------------------------------------- /check_email_delivery/control: -------------------------------------------------------------------------------- 1 | Uploaders: Bernd Zeimetz 2 | Recommends: libio-socket-ssl-perl, libmail-imapclient-perl, libnet-smtp-tls-perl, libnet-smtp-ssl-perl, libnet-ssleay-perl, libnet-smtpauth-perl 3 | Suggests: perl-doc 4 | Version: 0.7.1b 5 | Homepage: http://buhacoff.net/software/check_email_delivery/ 6 | Watch: http://buhacoff.net/software/check_email_delivery/ archive/check_email_delivery-(\S+)\.tar\.gz 7 | Description: plugin to monitor email delivery 8 | Some typical uses of this plugin include: 9 | - check SMTP server 10 | - check messages and quota on IMAP server 11 | - check email delivery loop 12 | - check auto-responder function 13 | - keep an eye on email lag 14 | - monitor automated mailboxes 15 | - check email-to-FTP or other special email gateways 16 | -------------------------------------------------------------------------------- /check_rbl/check_rbl-1.7.2/MANIFEST: -------------------------------------------------------------------------------- 1 | AUTHORS 2 | build_rpm.sh 3 | Changes 4 | check_distribution.sh 5 | check_rbl 6 | check_rbl.ini 7 | check_rbl.pod 8 | check_rbl.spec 9 | COPYING 10 | COPYRIGHT 11 | inc/Module/AutoInstall.pm 12 | inc/Module/Install.pm 13 | inc/Module/Install/AutoInstall.pm 14 | inc/Module/Install/Base.pm 15 | inc/Module/Install/Include.pm 16 | inc/Module/Install/Makefile.pm 17 | inc/Module/Install/MakeMaker.pm 18 | inc/Module/Install/Metadata.pm 19 | inc/Module/Install/Scripts.pm 20 | INSTALL 21 | Makefile.PL 22 | MANIFEST This list of files 23 | MANIFEST.SKIP 24 | META.yml 25 | MYMETA.json 26 | MYMETA.yml 27 | NEWS 28 | publish_release.sh 29 | README.md 30 | RELEASE_NOTES.md 31 | SECURITY.md 32 | t/00_modules.t 33 | t/01_validation.t 34 | test.sh 35 | test_script.sh 36 | TODO 37 | VERSION 38 | -------------------------------------------------------------------------------- /debian/README.Debian.plugins.in: -------------------------------------------------------------------------------- 1 | nagios-plugins-contrib 2 | ====================== 3 | 4 | Some plugins require additional libraries. To prevent you from having to 5 | install dozens of further packages that you don't actually need, there is no 6 | strict dependency on those libraries. Rather, they are listed as recommenda- 7 | tions or suggestions. 8 | 9 | apt-get(8) and aptitude(8) will install recommended packages automatically by 10 | default. If you did not disable this feature you will have everything in place 11 | to operate all plugins when installing the "nagios-plugins-contrib" package. 12 | Else you have to install missing dependencies manually (see the section "Plugin 13 | dependencies" below). 14 | 15 | 16 | Plugin dependencies: 17 | -------------------- 18 | 19 | #AUTO_UPDATE_README# 20 | 21 | -------------------------------------------------------------------------------- /debian/patches/check_httpd_status/htdigest_auth: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_httpd_status/check_httpd_status 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_httpd_status/check_httpd_status 4 | +++ pkg-nagios-plugins-contrib/check_httpd_status/check_httpd_status 5 | @@ -213,7 +213,13 @@ $ua->agent($PROGNAME.'-'.$VERSION); 6 | logD("Web URL : $url"); 7 | 8 | my $req = HTTP::Request->new( GET => $url ); 9 | -if ( defined($o_user) ) { 10 | +if ( defined($o_realm) ) { 11 | + if ( ! defined($o_port) ) { 12 | + $o_port = 80; 13 | + } 14 | + $ua->credentials("$o_host:$o_port", $o_realm, $o_user, $o_pass); 15 | +} 16 | +elsif ( defined($o_user) ) { 17 | $req->authorization_basic($o_user, $o_pass); 18 | } 19 | 20 | -------------------------------------------------------------------------------- /check_backuppc/check_backuppc-1.1.0/Makefile: -------------------------------------------------------------------------------- 1 | ifndef PREFIX 2 | PREFIX=/usr/local 3 | endif 4 | ifndef NAGIOS_LIB 5 | NAGIOS_LIB=/usr/lib/nagios/plugins 6 | endif 7 | ifndef BACKUPPC_LIB 8 | BACKUPPC_LIB=/usr/share/backuppc/lib 9 | endif 10 | 11 | install: 12 | sed -e "s|NAGIOS_LIB|$(NAGIOS_LIB)|g" -e \ 13 | "s|BACKUPPC_LIB|${BACKUPPC_LIB}|g" check_backuppc \ 14 | > check_backuppc.processed 15 | install -d ${PREFIX}/lib/nagios/plugins 16 | install -m 755 check_backuppc.processed ${PREFIX}/lib/nagios/plugins 17 | mv ${PREFIX}/lib/nagios/plugins/check_backuppc.processed \ 18 | ${PREFIX}/lib/nagios/plugins/check_backuppc 19 | install -m 644 check_backuppc.8 ${PREFIX}/man/man8 20 | 21 | uninstall: 22 | rm -f ${PREFIX}/lib/nagios/plugins/check_backuppc 23 | rm -f ${PREFIX}/man/man8/check_backuppc.8 24 | -------------------------------------------------------------------------------- /check_snmp_time/control: -------------------------------------------------------------------------------- 1 | Homepage: https://raw.github.com/mludvig/nagios-plugins/master/check_snmp_time.pl 2 | Watch: https://raw.github.com/mludvig/nagios-plugins/master/check_snmp_time.pl Version='([0-9.]+)'; 3 | Recommends: libnet-snmp-perl (>= 5), libtimedate-perl 4 | Version: 1.1 5 | Uploaders: Jan Wagner 6 | Description: plugin to check the time on a server using SNMP 7 | This plugin queries the remote systems time through SNMP and compares 8 | it against the local time on the Nagios server. This identifies systems 9 | with no correct time set and sends alarms if the time is off to far. 10 | HOST-RESOURCES-MIB::hrSystemDate.0 used here returns 8 or 11 byte octets. 11 | SNMP translation needs to be switched off and to be converted the 12 | received SNMP data into readable strings. 13 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/.gitignore: -------------------------------------------------------------------------------- 1 | # Object and libray files 2 | **/*.[ao] 3 | **/*.l[ao] 4 | # Shared objects 5 | *.so 6 | *.so.* 7 | *.dylib 8 | # Files creared by autotools 9 | .deps 10 | .libs 11 | **/*.log 12 | aclocal.m4 13 | autom4te.cache 14 | compile 15 | compile.scan 16 | config.cache 17 | config.guess 18 | config.h 19 | config.h.in 20 | config.hin 21 | config.hin~ 22 | config.status 23 | configure 24 | configure.scan 25 | libtool 26 | stamp-h1 27 | **/Makefile.in 28 | **/Makefile 29 | # Build files 30 | **/APKBUILD 31 | *.spec 32 | *.tar.bz2 33 | *.tar.xz 34 | # Packages 35 | packages/pcks 36 | # Test-build files 37 | tests-build/pcks 38 | # Binary files created by make {,check} 39 | plugins/check_* 40 | !plugins/check_*.c 41 | tests/ts* 42 | !tests/ts*.c 43 | !tests/ts*.data 44 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: "\U0001F41B Bug report" 3 | about: Create a report to help us improve 4 | title: "[Bug]" 5 | labels: bug 6 | assignees: '' 7 | 8 | --- 9 | 10 | # 🐛 Bug 11 | ## Describe the bug 12 | A clear and concise description of what the bug is. 13 | 14 | ## How to reproduce 15 | Steps to reproduce the behaviour: 16 | 1. Options passed to ./configure at build time (if applicable) 17 | 2. A way to recreate the problem 18 | 3. Command line to enter 19 | 4. The exact output printed by the plugin 20 | 21 | ## Expected behaviour 22 | A clear and concise description of what you expected to happen. 23 | 24 | ## Additional context 25 | - Linux distribution 26 | - Version [e.g. 27] 27 | - Add any other context about the problem here. 28 | -------------------------------------------------------------------------------- /check_clamav/copyright: -------------------------------------------------------------------------------- 1 | Copyright (c) 2005-2008 Darren Spruell 2 | 3 | Permission to use, copy, modify, and distribute this software for any 4 | purpose with or without fee is hereby granted, provided that the above 5 | copyright notice and this permission notice appear in all copies. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 8 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 9 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 10 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 11 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 12 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 13 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 14 | 15 | -------------------------------------------------------------------------------- /check_printer_health/Makefile: -------------------------------------------------------------------------------- 1 | PLUGIN := check_printer_health 2 | CLEANFILES := check_printer_health 3 | 4 | include ../common.mk 5 | 6 | check_printer_health: 7 | set -e; for i in guess sub; do if [ ! -e src/config.$$i.bak ]; then cp src/config.$$i src/config.$$i.bak; fi; done 8 | cp /usr/share/misc/config.* src 9 | cd src && ./configure --prefix=/usr --enable-perfdata --enable-extendedinfo --with-nagios-user=nagios --with-nagios-group=nagios --with-degrees=celsius 10 | make -C src 11 | sed -i '/#.*nagios: .epn/d' src/plugins-scripts/check_printer_health 12 | sed '2s,^,# nagios: -epn\n,' src/plugins-scripts/check_printer_health > $@ 13 | 14 | clean:: 15 | [ ! -f src/Makefile ] || make -C src distclean 16 | set -e; for i in guess sub; do if [ -e src/config.$$i.bak ]; then mv src/config.$$i.bak src/config.$$i; fi; done 17 | -------------------------------------------------------------------------------- /check_rbl/copyright: -------------------------------------------------------------------------------- 1 | Copyright (c) 2009 ETH Zurich 2 | Copyright (c) 2010 Elan Ruusamae 3 | 4 | This program is free software; you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or (at 7 | your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, but 10 | WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, write to the Free Software 16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 17 | MA 02110-1301 USA. 18 | -------------------------------------------------------------------------------- /extras/copyright: -------------------------------------------------------------------------------- 1 | 2 | send_nsca_host_or_service_check_result: 3 | 4 | Based on the example in the icinga documentation. 5 | Enhanced to handle service and host checks by 6 | Bernd Zeimetz . 7 | 8 | Copyright (c) 1999-2009 Ethan Galstad (nagios@nagios.org) 9 | Copyright (c) 2009-2010 Icinga Development Team (info@icinga.org) 10 | Copyright (c) 2012 Bernd Zeimetz 11 | 12 | License: 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License version 2 as 16 | published by the Free Software Foundation. 17 | 18 | On Debian systems, the complete text of the GNU General Public 19 | License, version 2, can be found in /usr/share/common-licenses/GPL-2. 20 | 21 | -------------------------------------------------------------------------------- /check_memcached/copyright: -------------------------------------------------------------------------------- 1 | This program was initially developed by Lonely Planet for internal use 2 | and has kindly been made available to the Open Source community for 3 | redistribution and further development under the terms of the 4 | GNU General Public License v3: http://www.gnu.org/licenses/gpl.html 5 | 6 | This program is supplied 'as-is', in the hope that it will be useful, but 7 | neither Lonely Planet nor the authors make any warranties or guarantees 8 | as to its correct operation, including its intended function. 9 | 10 | Or in other words: 11 | Test it yourself, and make sure it works for YOU. 12 | 13 | Author: George Hansper e-mail: George.Hansper@lonelyplanet.com.au 14 | 15 | On Debian systems, the complete text of the GNU General 16 | Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". 17 | -------------------------------------------------------------------------------- /check_backuppc/check_backuppc-1.1.0/INSTALL: -------------------------------------------------------------------------------- 1 | Automated Install Steps: 2 | ------------------------ 3 | 1) Set NAGIOS_LIB to the directory containing Nagios's util.pm 4 | 2) Set BACKUPPC_LIB to the directory containing BackupPC's Perl libraries 5 | 3) Set PREFIX to the desired installation location 6 | 4) make install 7 | 8 | Manual Install Steps: 9 | --------------------- 10 | 1) Edit check_backuppc and adjust the two "use lib" lines to refer to the 11 | correct location for Nagios's utils.pm and BackupPC's Perl libraries. 12 | 2) Copy check_backuppc into where you want this plugin. 13 | 14 | Configuration: 15 | -------------- 16 | 1) Add a sudoers entry to allow Nagios to run this plugin as the BackupPC user. 17 | 2) Configure Nagios to run this plugin through sudo as the BackupPC user. 18 | 3) Test 19 | 4) Add to Nagios service checks 20 | -------------------------------------------------------------------------------- /check_memcached/control: -------------------------------------------------------------------------------- 1 | Build-Depends: flex, libmemcached-dev [!hurd-i386], pkg-config 2 | Homepage: http://exchange.nagios.org/directory/Plugins/Websites,-Forms-and-Transactions/check_memcached-IV/details 3 | Version: 1.3 4 | Uploaders: Bernd Zeimetz 5 | Description: plugin to check memcached instances 6 | It will give a critical message if a partiular memcached host is 7 | inaccessible and generate a warning if the hit/miss ratio falls 8 | below a given threshold or the number of evictions exceeds a given 9 | limit. 10 | Hit/miss and evictions are measured over a 30 minute interval, 11 | using a memcached object to store the earlier statistics. 12 | Watch: http://exchange.nagios.org/directory/Plugins/Websites,-Forms-and-Transactions/check_memcached-IV/details Current Version
([0-9.]+)
13 | -------------------------------------------------------------------------------- /check_snmp_environment/copyright: -------------------------------------------------------------------------------- 1 | 2 | Author : Michiel Timmers ( michiel.timmers AT gmx.net) 3 | Based on : "check_snmp_env" plugin (version 1.3) from Patrick Proy 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see 17 | 18 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/m4/ltversion.m4: -------------------------------------------------------------------------------- 1 | # ltversion.m4 -- version numbers -*- Autoconf -*- 2 | # 3 | # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc. 4 | # Written by Scott James Remnant, 2004 5 | # 6 | # This file is free software; the Free Software Foundation gives 7 | # unlimited permission to copy and/or distribute it, with or without 8 | # modifications, as long as this notice is preserved. 9 | 10 | # @configure_input@ 11 | 12 | # serial 4179 ltversion.m4 13 | # This file is part of GNU Libtool 14 | 15 | m4_define([LT_PACKAGE_VERSION], [2.4.6]) 16 | m4_define([LT_PACKAGE_REVISION], [2.4.6]) 17 | 18 | AC_DEFUN([LTVERSION_VERSION], 19 | [macro_version='2.4.6' 20 | macro_revision='2.4.6' 21 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 22 | _LT_DECL(, macro_revision, 0) 23 | ]) 24 | -------------------------------------------------------------------------------- /check_lm_sensors/check_lm_sensors-4.1.1/META.yml: -------------------------------------------------------------------------------- 1 | --- 2 | abstract: ~ 3 | author: 4 | - 'Matteo Corti ' 5 | build_requires: 6 | ExtUtils::MakeMaker: 6.59 7 | configure_requires: 8 | ExtUtils::MakeMaker: 6.59 9 | distribution_type: module 10 | dynamic_config: 1 11 | generated_by: 'Module::Install version 1.16' 12 | license: gpl 13 | meta-spec: 14 | url: http://module-build.sourceforge.net/META-spec-v1.4.html 15 | version: 1.4 16 | name: check_lm_sensors 17 | no_index: 18 | directory: 19 | - inc 20 | requires: 21 | Carp: 0 22 | English: 0 23 | Getopt::Long: 0 24 | List::MoreUtils: 0 25 | Monitoring::Plugin: 0.31 26 | Monitoring::Plugin::Getopt: 0 27 | Monitoring::Plugin::Threshold: 0 28 | perl: 5.8.0 29 | version: 0 30 | resources: 31 | license: http://opensource.org/licenses/gpl-license.php 32 | version: 4.1.1 33 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: "\U0001F680 Feature request" 3 | about: Suggest an idea for a new feature in Nagios Plugins for Linux 4 | title: "[Feature Request]" 5 | labels: enhancement 6 | assignees: '' 7 | 8 | --- 9 | 10 | # 🚀 Feature Request 11 | 12 | ## Is your feature request related to a problem? Please describe. 13 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 14 | 15 | ## Describe the solution you'd like 16 | A clear and concise description of what you want to happen. 17 | 18 | ## Describe alternatives you've considered 19 | A clear and concise description of any alternative solutions or features you've considered. 20 | 21 | ## Additional context 22 | Add any other context or screenshots about the feature request here. 23 | -------------------------------------------------------------------------------- /check_ajp/copyright: -------------------------------------------------------------------------------- 1 | Comment: Please send bug fixes and enhancements to 2 | 3 | check_ajp - nagios plugin for jboss monitoring 4 | Copyright (C) 2010 Michel Rode 5 | 6 | This program is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | This program is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program. If not, see . 18 | -------------------------------------------------------------------------------- /check_snmp_environment/control: -------------------------------------------------------------------------------- 1 | Homepage: http://exchange.nagios.org/directory/Plugins/Hardware/Network-Gear/Cisco/Check-various-hardware-environmental-sensors/details 2 | Watch: http://exchange.nagios.org/directory/Plugins/Hardware/Network-Gear/Cisco/Check-various-hardware-environmental-sensors/details Current Version
([0-9.]+)
3 | Recommends: libnet-snmp-perl 4 | Description: plugin to check various hardware statuses 5 | Using snmp the plugin is able to retrieve Fan, power-supply, 6 | voltage, temperature, card and module status and various other 7 | information from Cisco, Nokia, Blue Coat, IronPort, 8 | Foundry Network, Linux (using lm-sensors), Extreme Networks, 9 | Juniper Networks, HP ProCurve, Netscreen, Citrix NetScaler 10 | and Transmode Systems hardware. 11 | Uploaders: Bernd Zeimetz 12 | Version: 0.7 13 | -------------------------------------------------------------------------------- /debian/patches/check_raid/sort_megacli_numerical: -------------------------------------------------------------------------------- 1 | Incorporate changes from https://github.com/glensc/nagios-plugin-check_raid/commit/2a05ecb2b219a5f102acb81d9bd6aeabb664d434 2 | Index: pkg-nagios-plugins-contrib/check_raid/check_raid 3 | =================================================================== 4 | --- pkg-nagios-plugins-contrib.orig/check_raid/check_raid 5 | +++ pkg-nagios-plugins-contrib/check_raid/check_raid 6 | @@ -4057,7 +4057,7 @@ $fatpacked{"App/Monitoring/Plugin/CheckR 7 | } 8 | 9 | my %dstatus; 10 | - foreach my $dev (@{$c->{physical}}) { 11 | + foreach my $dev (sort {$a->{dev} <=> $b->{dev}} @{$c->{physical}}) { 12 | if ($dev->{state} eq 'Online' || $dev->{state} eq 'Hotspare' || $dev->{state} eq 'Unconfigured(good)' || $dev->{state} eq 'JBOD') { 13 | push(@{$dstatus{$dev->{state}}}, sprintf "%02d", $dev->{dev}); 14 | 15 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | PLUGINS := $(strip $(shell find . -mindepth 2 -maxdepth 2 -name Makefile -printf '%h ')) 2 | 3 | ifeq ($(wildcard /etc/debian_version),/etc/debian_version) 4 | HOST_ARCH := $(strip $(shell dpkg-architecture -q DEB_HOST_ARCH)) 5 | else 6 | ifeq ($(wildcard /usr/bin/rpm),/usr/bin/rpm) 7 | HOST_ARCH := $(strip $(shell rpm --eval '%{_arch}')) 8 | endif 9 | endif 10 | 11 | ifeq ($(HOST_ARCH),$(filter $(HOST_ARCH),hurd-i386)) 12 | PLUGINS := $(filter-out check_memcached check_varnish,$(PLUGINS)) 13 | endif 14 | ifeq ($(HOST_ARCH),$(filter $(HOST_ARCH),arm64)) 15 | PLUGINS := $(filter-out check_memcached,$(PLUGINS)) 16 | endif 17 | ifeq ($(HOST_ARCH),$(filter $(HOST_ARCH),m68k)) 18 | PLUGINS := $(filter-out check_varnish,$(PLUGINS)) 19 | endif 20 | 21 | 22 | default: all 23 | 24 | $(PLUGINS):: 25 | $(MAKE) -C $@ $(MAKECMDGOALS) 26 | 27 | all clean install : $(PLUGINS) 28 | -------------------------------------------------------------------------------- /check_redis/copyright: -------------------------------------------------------------------------------- 1 | Author : William Leibzon - william@leibzon.org 2 | Licence : GPL - summary below, full text at http://www.fsf.org/licenses/gpl.txt 3 | 4 | This program is free software; you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 2 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, write to the Free Software 16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 17 | MA 02110-1301 USA. 18 | -------------------------------------------------------------------------------- /check_lm_sensors/check_lm_sensors-4.1.1/MYMETA.yml: -------------------------------------------------------------------------------- 1 | --- 2 | abstract: unknown 3 | author: 4 | - 'Matteo Corti ' 5 | build_requires: 6 | ExtUtils::MakeMaker: '6.59' 7 | configure_requires: 8 | ExtUtils::MakeMaker: '0' 9 | dynamic_config: 0 10 | generated_by: 'Module::Install version 1.16, CPAN::Meta::Converter version 2.150001' 11 | license: open_source 12 | meta-spec: 13 | url: http://module-build.sourceforge.net/META-spec-v1.4.html 14 | version: '1.4' 15 | name: check_lm_sensors 16 | no_index: 17 | directory: 18 | - inc 19 | requires: 20 | Carp: '0' 21 | English: '0' 22 | Getopt::Long: '0' 23 | List::MoreUtils: '0' 24 | Monitoring::Plugin: '0.31' 25 | Monitoring::Plugin::Getopt: '0' 26 | Monitoring::Plugin::Threshold: '0' 27 | perl: '5.00800' 28 | version: '0' 29 | resources: 30 | license: http://opensource.org/licenses/gpl-license.php 31 | version: 4.1.1 32 | -------------------------------------------------------------------------------- /check_mysql_health/Makefile: -------------------------------------------------------------------------------- 1 | PLUGIN := check_mysql_health 2 | CLEANFILES := check_mysql_health 3 | 4 | include ../common.mk 5 | 6 | check_mysql_health: 7 | set -e; for i in guess sub; do if [ ! -e src/config.$$i.bak ]; then cp src/config.$$i src/config.$$i.bak; fi; done 8 | cp /usr/share/misc/config.* src 9 | cd src && ./configure --prefix=/usr --enable-perfdata --enable-extendedinfo --with-nagios-user=nagios --with-nagios-group=nagios --with-statefiles-dir=/var/cache/nagios/ --with-mymodules-dir=/usr/lib/nagios/plugins/ --with-mymodules-dyn-dir=/usr/lib/nagios/plugins/ 10 | make -C src 11 | cp src/plugins-scripts/check_mysql_health $@ 12 | # sed '2s,^,# nagios: -epn\n,' src/plugins-scripts/check_mysql_health > $@ 13 | 14 | clean:: 15 | [ ! -f src/Makefile ] || make -C src distclean 16 | set -e; for i in guess sub; do if [ -e src/config.$$i.bak ]; then mv src/config.$$i.bak src/config.$$i; fi; done 17 | -------------------------------------------------------------------------------- /check_printer_health/copyright: -------------------------------------------------------------------------------- 1 | AUTHOR: Gerhard Lausser 2 | License: GPL v3 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation, either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This package is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . 16 | 17 | On Debian systems, the complete text of the GNU General 18 | Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". 19 | -------------------------------------------------------------------------------- /debian/patches/check_raid/fix_unparsed_error_cciss: -------------------------------------------------------------------------------- 1 | Incorporate changes from https://github.com/glensc/nagios-plugin-check_raid/pull/200/commits/12186c44c51941a16f82d23ee9c5fbd212a2c315 2 | Index: pkg-nagios-plugins-contrib/check_raid/check_raid 3 | =================================================================== 4 | --- pkg-nagios-plugins-contrib.orig/check_raid/check_raid 5 | +++ pkg-nagios-plugins-contrib/check_raid/check_raid 6 | @@ -1831,6 +1831,8 @@ $fatpacked{"App/Monitoring/Plugin/CheckR 7 | my $cache = $c{$cdev}{cache}; 8 | my %map = ( 9 | configured => qr/Cache configured: (.+)/, 10 | + total_cache_memory => qr/Total cache memory: (.+)/, 11 | + cache_ratio => qr/Cache Ratio: (.+)/, 12 | read_cache_memory => qr/Read cache memory: (.+)/, 13 | write_cache_memory => qr/Write cache memory: (.+)/, 14 | write_cache_enabled => qr/Write cache enabled: (.+)/, 15 | -------------------------------------------------------------------------------- /check_printer_health/check_printer_health-1.1.0.2/plugins-scripts/Classes/Kyocera.pm: -------------------------------------------------------------------------------- 1 | package Classes::Kyocera; 2 | our @ISA = qw(Classes::Device); 3 | use strict; 4 | 5 | sub init { 6 | my $self = shift; 7 | $self->get_snmp_tables('KYOCERA-Private-MIB', [ 8 | ['xxx', 'kcprtMemoryDeviceTable', 'Monitoring::GLPlugin::SNMP::TableItem'], 9 | #https://pastebin.com/ZvuFXPcU 10 | ]); 11 | 12 | if ($self->mode =~ /device::hardware::health/) { 13 | $self->analyze_and_check_environmental_subsystem('Classes::HOSTRESOURCESMIB::Component::EnvironmentalSubsystem'); 14 | } elsif ($self->mode =~ /device::consumables/) { 15 | $self->analyze_and_check_environmental_subsystem('Classes::HOSTRESOURCESMIB::Component::EnvironmentalSubsystem'); 16 | $self->analyze_and_check_battery_subsystem('Classes::Kyocera::Components::BatterySubsystem'); 17 | } else { 18 | $self->no_such_mode(); 19 | } 20 | } 21 | 22 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Supported Versions 4 | 5 | This project has rolling updates, so the list of versions currently 6 | being supported with security updates collapses to the last version only. 7 | 8 | | Version | Supported | 9 | | ------- | ------------------ | 10 | | 30 | :white_check_mark: | 11 | | < 30 | :x: | 12 | 13 | ## Reporting a Vulnerability 14 | 15 | Thank you for improving the security of this project. 16 | 17 | We take all security bugs in this project seriously. 18 | We appreciate your efforts and responsible disclosure and will make every 19 | effort to acknowledge your contributions. 20 | 21 | To report a vulnerability just open an issue. 22 | 23 | We will acknowledge if you open an issue with the security vulnerability 24 | as soon as possible, and we may ask for additional information. 25 | -------------------------------------------------------------------------------- /check_printer_health/check_printer_health-1.1.0.2/GLPlugin/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/LEXMARKSETTINGS.pm: -------------------------------------------------------------------------------- 1 | package Monitoring::GLPlugin::SNMP::MibsAndOids::LEXMARKSETTINGSMIB; 2 | 3 | $Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'LEXMARK-SETTINGS-MIB'} = { 4 | url => '', 5 | name => 'LEXMARK-SETTINGS-MIB', 6 | }; 7 | 8 | #$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'LEXMARK-SETTINGS-MIB'} = 9 | 10 | $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'LEXMARK-SETTINGS-MIB'} = { 11 | settings => '1.3.6.1.4.1.641.7', 12 | settingsMIBAdminInfo => '1.3.6.1.4.1.641.7.1', 13 | settingsMIBCompliances => '1.3.6.1.4.1.641.7.1.1', 14 | settingsMIBGroups => '1.3.6.1.4.1.641.7.1.2', 15 | settingsControl => '1.3.6.1.4.1.641.7.2', 16 | settingsDefinition => '1.3.6.1.4.1.641.7.3', 17 | }; 18 | 19 | $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'LEXMARK-SETTINGS-MIB'} = { 20 | }; 21 | -------------------------------------------------------------------------------- /check_rbl/check_rbl-1.7.2/MYMETA.yml: -------------------------------------------------------------------------------- 1 | --- 2 | abstract: unknown 3 | author: 4 | - unknown 5 | build_requires: 6 | ExtUtils::MakeMaker: '6.36' 7 | configure_requires: 8 | ExtUtils::MakeMaker: '0' 9 | dynamic_config: 0 10 | generated_by: 'Module::Install version 1.21, CPAN::Meta::Converter version 2.150010' 11 | license: gpl 12 | meta-spec: 13 | url: http://module-build.sourceforge.net/META-spec-v1.4.html 14 | version: '1.4' 15 | name: check_rbl 16 | no_index: 17 | directory: 18 | - inc 19 | - t 20 | requires: 21 | Capture::Tiny: '0' 22 | Data::Validate::Domain: '0.12' 23 | Data::Validate::IP: '0' 24 | English: '0' 25 | IO::Select: '0' 26 | Monitoring::Plugin: '0' 27 | Monitoring::Plugin::Getopt: '0' 28 | Monitoring::Plugin::Threshold: '0' 29 | Net::DNS: '0' 30 | Net::IP: '0' 31 | Readonly: '0' 32 | Socket: '0' 33 | version: 1.7.2 34 | x_serialization_backend: 'CPAN::Meta::YAML version 0.018' 35 | -------------------------------------------------------------------------------- /debian/patches/check_raid/hpacucli_cache_fail: -------------------------------------------------------------------------------- 1 | Incorporate chanegs from https://github.com/glensc/nagios-plugin-check_raid/commit/4a6e9fa15fe1f1e940637f048e86dedc607b1596 2 | Index: pkg-nagios-plugins-contrib/check_raid/check_raid 3 | =================================================================== 4 | --- pkg-nagios-plugins-contrib.orig/check_raid/check_raid 5 | +++ pkg-nagios-plugins-contrib/check_raid/check_raid 6 | @@ -3164,11 +3164,11 @@ $fatpacked{"App/Monitoring/Plugin/CheckR 7 | # print those only if not ok and configured 8 | if (($s = $c->{'Cache Status'}) && $s !~ /^(OK|Not Configured)/) { 9 | push(@s, "Cache: $s"); 10 | - $this->critical; 11 | + $this->cache_fail; 12 | } 13 | if (($s = $c->{'Battery/Capacitor Status'}) && $s !~ /^(OK|Not Configured)/) { 14 | push(@s, "Battery: $s"); 15 | - $this->critical; 16 | + $this->cache_fail; 17 | } 18 | 19 | # start with identifyier 20 | -------------------------------------------------------------------------------- /debian/patches/check_nfsmounts/nfs_write_location: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_nfsmounts/check_nfsmounts 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_nfsmounts/check_nfsmounts 4 | +++ pkg-nagios-plugins-contrib/check_nfsmounts/check_nfsmounts 5 | @@ -45,6 +45,7 @@ BEGIN { 6 | } 7 | 8 | use Time::HiRes qw{time alarm}; 9 | +use Sys::Hostname; 10 | use Getopt::Long; 11 | use strict; 12 | 13 | @@ -129,7 +130,8 @@ foreach $dir (@dirs) { 14 | if($pid==0) { 15 | chdir $dir or &bad_mount($dir,$!); 16 | if($writemode and exists($mountmodes{$dir}->{"rw"})) { 17 | - open X,"> $dir/.nfscheck" or exit $?; 18 | + my $check_filename="$dir/.nfscheck_" . hostname; 19 | + open X,"> $check_filename" or exit $?; 20 | print X $ENV{HOSTNAME}."\n".localtime()."\n"; # XXX Full disk may fail.. 21 | close X or exit $?; 22 | } 23 | -------------------------------------------------------------------------------- /check_hpasm/check_hpasm-4.8.0.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca/CLI.pm: -------------------------------------------------------------------------------- 1 | package HP::Proliant::Component::DiskSubsystem::Fca::CLI; 2 | our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Fca); 3 | 4 | use strict; 5 | use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; 6 | 7 | sub new { 8 | my $class = shift; 9 | my %params = @_; 10 | my $self = { 11 | controllers => [], 12 | accelerators => [], 13 | enclosures => [], 14 | physical_drives => [], 15 | logical_drives => [], 16 | spare_drives => [], 17 | blacklisted => 0, 18 | }; 19 | bless $self, $class; 20 | return $self; 21 | } 22 | 23 | sub init { 24 | my $self = shift; 25 | # ..... 26 | $self->{global_status} = 27 | HP::Proliant::Component::DiskSubsystem::Fca::GlobalStatus->new( 28 | runtime => $self->{runtime}, 29 | cpqFcaMibCondition => 'n/a', 30 | ); 31 | 32 | } 33 | 34 | 1; 35 | -------------------------------------------------------------------------------- /check_libvirt/copyright: -------------------------------------------------------------------------------- 1 | License: GPL 2 2 | Copyright (c) 2011 op5 AB 3 | Author: Kostyantyn Hushchyn 4 | 5 | For direct contact with any of the op5 developers send a mail to 6 | op5-users@lists.op5.com 7 | Discussions are directed to the mailing list op5-users@op5.com, 8 | see http://lists.op5.com/mailman/listinfo/op5-users 9 | 10 | This program is free software; you can redistribute it and/or modify 11 | it under the terms of the GNU General Public License version 2 as 12 | published by the Free Software Foundation. 13 | 14 | This program is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with this program. If not, see . 21 | 22 | 23 | -------------------------------------------------------------------------------- /check_hpasm/copyright: -------------------------------------------------------------------------------- 1 | AUTHOR: Gerhard Lausser 2 | License: GPL v2 3 | 4 | This program is free software; you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 2 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License along 15 | with this program; if not, write to the Free Software Foundation, Inc., 16 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 17 | 18 | On Debian systems, the complete text of the GNU General 19 | Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". 20 | -------------------------------------------------------------------------------- /check_uptime/copyright: -------------------------------------------------------------------------------- 1 | Authors : William Leibzon - william@leibzon.org 2 | Licence : GPL - summary below, full text at http://www.fsf.org/licenses/gpl.txt 3 | 4 | =========================== PROGRAM LICENSE ================================= 5 | 6 | This program is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 2 of the License, or 9 | (at your option) any later version. 10 | 11 | This program is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program; if not, write to the Free Software Foundation, 18 | Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 | 20 | -------------------------------------------------------------------------------- /check_mysql_health/copyright: -------------------------------------------------------------------------------- 1 | AUTHOR: Gerhard Lausser 2 | License: GPL v2 3 | 4 | This program is free software; you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 2 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License along 15 | with this program; if not, write to the Free Software Foundation, Inc., 16 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 17 | 18 | On Debian systems, the complete text of the GNU General 19 | Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". 20 | -------------------------------------------------------------------------------- /debian/patches/check_imap_quota/syntax_error_fix: -------------------------------------------------------------------------------- 1 | commit efd3fb018c2b6d9aacc367ab29dc4b0089ba10a5 2 | Author: Paul Voss 3 | Date: Fri Mar 14 10:43:30 2014 +0100 4 | 5 | - fixed syntax error by added missing closing bracket as mentioned in issue #44 6 | 7 | Index: pkg-nagios-plugins-contrib/check_email_delivery/src/check_imap_quota 8 | =================================================================== 9 | --- pkg-nagios-plugins-contrib.orig/check_email_delivery/src/check_imap_quota 10 | +++ pkg-nagios-plugins-contrib/check_email_delivery/src/check_imap_quota 11 | @@ -153,7 +153,7 @@ eval { 12 | } 13 | if (!length($quotaUsed) && !length($quotaLimit)) { 14 | print "no answer from imap host\n" if $verbose > 2; 15 | - } elsif (!length($quotaUsed) || !length($quotaLimit) { 16 | + } elsif (!length($quotaUsed) || !length($quotaLimit)) { 17 | print "incorrect answer from imap host\n"; 18 | $imap->close(); 19 | exit $status{UNKNOWN}; 20 | -------------------------------------------------------------------------------- /debian/patches/dsa/check_running_kernel_bookworm_fix: -------------------------------------------------------------------------------- 1 | --- a/dsa/checks/dsa-check-running-kernel 2 | +++ b/dsa/checks/dsa-check-running-kernel 3 | @@ -203,7 +203,7 @@ 4 | exit $UNKNOWN 5 | fi 6 | if [ "${on_disk/vmlinu}" != "$on_disk" ]; then 7 | - on_disk_version="`get_image_linux "$on_disk" | $STRINGS | grep 'Linux version' | head -n1`" 8 | + on_disk_version="`get_image_linux "$on_disk" | $STRINGS | grep 'Linux version' | tail -n1`" 9 | if [ -x /usr/bin/lsb_release ] ; then 10 | vendor=$(lsb_release -i -s) 11 | if [ -n "$vendor" ] && [ "xDebian" != "x$vendor" ] ; then 12 | @@ -211,7 +211,7 @@ 13 | fi 14 | fi 15 | [ -z "$on_disk_version" ] || continue 16 | - on_disk_version="`cat "$on_disk" | $STRINGS | grep 'Linux version' | head -n1`" 17 | + on_disk_version="`cat "$on_disk" | $STRINGS | grep 'Linux version' | tail -n1`" 18 | [ -z "$on_disk_version" ] || continue 19 | 20 | echo "UNKNOWN: Failed to get a version string from image $on_disk" 21 | -------------------------------------------------------------------------------- /check_email_delivery/check_email_delivery-0.7.1b/CHANGES.txt: -------------------------------------------------------------------------------- 1 | 2005-11-10 2 | * published 3 | 2005-05-10 4 | * received patches from Johan Nilsson 5 | 2006-07-20 6 | * received patches from Geoff Crompton 7 | 2007-04-24 8 | * packaged ePN version of the plugins -- the __END__ block for embedded documentation was causing an error because of the way ePN wraps the perl scripts. see http://nagios.sourceforge.net/docs/2_0/embeddedperl.html 9 | * added SSL support using patch from Benjamin Ritcey 10 | 2007-10-21 11 | * added TLS support for SMTP using Net::SMTP::TLS 12 | * added SSL support for SMTP using Net::SMTP::SSL, but NOTE that I don't have access to an SMTPS server so I cannot test this. 13 | 2007-12-04 14 | * small fix with SSL support for IMAP related to bugfix in Mail::IMAPClient 3.00 over 2.2.9 thanks to Seth P. Low 15 | * added --usage option to all three plugins for familiarity with the official nagios plugins 16 | -------------------------------------------------------------------------------- /dsa/control: -------------------------------------------------------------------------------- 1 | Homepage: https://salsa.debian.org/dsa-team/mirror/dsa-nagios 2 | Uploaders: Bernd Zeimetz 3 | Description: plugins from the Debian System Administrators 4 | nagios plugins repository. 5 | * check_cert_expire: check for certificate expiration 6 | using openssl on the certificate file 7 | * check_cert_expire_dir: checks if any of the *.crt files in 8 | a directory on disk will expire soon 9 | * check_dnssec_delegation: check for correct DNSSEC 10 | delegation 11 | * check_entropy: check if there is enough entropy available. 12 | * check_packages: replacement for check_apt; needs a cronjob 13 | to update the apt database regularly 14 | * check_running_kernel: check if a system was rebooted after 15 | a kernel upgrade 16 | * check_soas: check SOA records 17 | * check_statusfile: deliver the content of a status file 18 | as check result 19 | Recommends: ruby | ruby-interpreter, openssl, libnet-dns-perl, binutils, python3, lz4, lzop 20 | Version: 2300473 21 | -------------------------------------------------------------------------------- /check_backuppc/check_backuppc-1.1.0/changelog: -------------------------------------------------------------------------------- 1 | Mar. 18 2007 - 1.1.0 2 | - Added --status-only option 3 | - Fixed logic of --warning option 4 | - Adjusted default warning age to 0 and critical age to 7 days 5 | 6 | Sep. 16 2006 - 1.0 7 | - Added manpage 8 | - Adjusted spacing in debug messages 9 | - Adjusted behaviour of when an initial backup fails 10 | - Code cleanup 11 | 12 | Aug. 31 2006 - 0.9.0 13 | - Added Makefile 14 | - Increased verbosity level 15 | - Added host exclusion option 16 | - Added --archive-only and --backup-only options 17 | 18 | Aug. 23 2006 - 0.8.0 19 | - Added hostname option 20 | - Added warning threshold 21 | - Added severity reduction count 22 | - Code cleanup 23 | 24 | Aug. 22 2006 - 0.2.0 25 | - First public release 26 | - Code cleanup 27 | - Added command-line arguments 28 | 29 | Aug. 16 2006 - 0.1.1 30 | - Change error detection to checking for 'error' in hashes 31 | 32 | Aug. 15 2006 - 0.1.0 33 | - First technically working version of plugin, still needs options 34 | -------------------------------------------------------------------------------- /check_printer_health/check_printer_health-1.1.0.2/plugins-scripts/Classes/Lexmark.pm: -------------------------------------------------------------------------------- 1 | package Classes::Lexmark; 2 | our @ISA = qw(Classes::Device); 3 | use strict; 4 | 5 | sub init { 6 | my $self = shift; 7 | if ($self->mode =~ /device::hardware::health/) { 8 | $self->analyze_and_check_lxprinter_subsystem('Classes::Lexmark::Component::PrinterSubsystem'); 9 | if (! $self->check_errors()) { 10 | # ...kontrolle ist besser. 11 | $self->analyze_and_check_printer_subsystem('Classes::PRINTERMIB::Component::PrinterSubsystem'); 12 | } 13 | $self->reduce_messages_short('hardware working fine'); 14 | } elsif ($self->mode =~ /device::printer::consumables/) { 15 | $self->analyze_and_check_consumables_subsystem('Classes::Lexmark::Component::ConsumablesSubsystem'); 16 | $self->analyze_and_check_consumables_subsystem('Classes::PRINTERMIB::Component::PrinterSubsystem'); 17 | $self->reduce_messages_short('supplies status is fine'); 18 | } else { 19 | $self->no_such_mode(); 20 | } 21 | } 22 | 23 | -------------------------------------------------------------------------------- /debian/patches/dsa/check_running_kernel_jammy_fix: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/dsa/checks/dsa-check-running-kernel 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/dsa/checks/dsa-check-running-kernel 4 | +++ pkg-nagios-plugins-contrib/dsa/checks/dsa-check-running-kernel 5 | @@ -133,7 +133,7 @@ 6 | hdroff="$4" 7 | 8 | if ! which ${filter%% *} >/dev/null; then 9 | - echo "UNKNOWN: filter command '$filter' missing, perhaps install xz-utils, lz4 or lzop?" >&2 10 | + echo "UNKNOWN: filter command '$filter' missing, perhaps install xz-utils, lz4, lzop, zstd?" >&2 11 | exit $UNKNOWN 12 | fi 13 | 14 | @@ -162,6 +162,8 @@ 15 | cat_vmlinux "$image" "\x02\x21\x4c\x18" "lz4 -dc" 0 16 | # lzo compressed image 17 | cat_vmlinux "$image" "\x89\x4c\x5a\x4f\x00\x0d\x0a\x1a" "lzop -dc" 0 18 | + # zstd compressed image 19 | + cat_vmlinux "$image" "\x28\xb5\x2f\xfd" "zstd -dc" 0 20 | 21 | echo "ERROR: Unable to extract kernel image." 2>&1 22 | exit 1 23 | -------------------------------------------------------------------------------- /debian/patches/check_haproxy_stats/socket: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_haproxy_stats/check_haproxy_stats.pl 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_haproxy_stats/check_haproxy_stats.pl 4 | +++ pkg-nagios-plugins-contrib/check_haproxy_stats/check_haproxy_stats.pl 5 | @@ -84,7 +84,7 @@ DESCRIPTION 6 | Do not check named proxies. Use comma to separate proxies in list. 7 | 8 | -s, --sock, --socket 9 | - Use named UNIX socket instead of default (/var/run/haproxy.sock) 10 | + Use named UNIX socket instead of default (/run/haproxy/admin.sock) 11 | 12 | -U, --url 13 | Use HTTP URL instead of socket. The LWP::Simple perl module is used if 14 | @@ -151,7 +151,7 @@ my @status_names = (qw/OK WARNING CRITIC 15 | # Defaults 16 | my $swarn = 80.0; 17 | my $scrit = 90.0; 18 | -my $sock = "/var/run/haproxy.sock"; 19 | +my $sock = "/run/haproxy/admin.sock"; 20 | my $url; 21 | my $user = ''; 22 | my $pass = ''; 23 | -------------------------------------------------------------------------------- /debian/patches/check_rbl/additional_rbls: -------------------------------------------------------------------------------- 1 | --- a/check_rbl/src/check_rbl.ini 2 | +++ b/check_rbl/src/check_rbl.ini 3 | @@ -182,3 +182,28 @@ 4 | server=z.mailspike.net 5 | server=zen.spamhaus.org 6 | server=zombie.dnsbl.sorbs.net 7 | +; added by debian in random order 8 | +server=dul.dnsbl.borderware.com 9 | +server=uribl.swinog.ch 10 | +server=rbl.efnetrbl.org 11 | +server=virbl.dnsbl.bit.nl 12 | +server=relays.mail-abuse.org 13 | +server=dev.null.dk 14 | +server=blackholes.mail-abuse.org 15 | +server=dialups.mail-abuse.org 16 | +server=dul.orca.bc.ca 17 | +server=rbl-plus.mail-abuse.org 18 | +server=rbl.jp 19 | +server=virus.rbl.jp 20 | +server=dialup.blacklist.jippg.org 21 | +server=assholes.madscience.nl 22 | +server=blackholes.sandes.dk 23 | +server=blocked.hilli.dk 24 | +server=cart00ney.surriel.com 25 | +server=dsbl.dnsbl.net.au 26 | +server=rsbl.aupads.org 27 | +server=intruders.docs.uu.se 28 | +server=map.spam-rbl.com 29 | +server=pss.spambusters.org.ar 30 | +server=relays.bl.kundenserver.de 31 | +server=spam.olsentech.net 32 | -------------------------------------------------------------------------------- /debian/tests/test_check_varnish: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | VARNISH_PORT=$(( ($RANDOM % 60000) + 1024 )) 4 | API_PORT=$(( ($RANDOM % 60000) + 1024 )) 5 | 6 | systemctl stop varnish.service 2>/dev/null 7 | 8 | cat > /etc/systemd/system/varnish.service << __EOF__ 9 | 10 | [Unit] 11 | Description=Varnish HTTP accelerator 12 | Documentation=https://www.varnish-cache.org/docs/4.1/ man:varnishd 13 | 14 | [Service] 15 | Type=simple 16 | LimitNOFILE=131072 17 | LimitMEMLOCK=82000 18 | ExecStart=/usr/sbin/varnishd -j unix,user=vcache -F -a localhost:${VARNISH_PORT} -T localhost:${API_PORT} -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,50m 19 | ExecReload=/usr/share/varnish/reload-vcl 20 | ProtectSystem=full 21 | ProtectHome=true 22 | PrivateTmp=true 23 | PrivateDevices=true 24 | 25 | [Install] 26 | WantedBy=multi-user.target 27 | 28 | __EOF__ 29 | 30 | systemctl daemon-reload 2>/dev/null 31 | systemctl start varnish.service 2>/dev/null 32 | 33 | /usr/lib/nagios/plugins/check_varnish -p MAIN.pools -w 1: -c 1: 34 | exit $? 35 | 36 | -------------------------------------------------------------------------------- /check_printer_health/check_printer_health-1.1.0.2/plugins-scripts/Classes/HOSTRESOURCESMIB/Component/UptimeSubsystem.pm: -------------------------------------------------------------------------------- 1 | package Classes::HOSTRESOURCESMIB::Component::UptimeSubsystem; 2 | our @ISA = qw(Monitoring::GLPlugin::SNMP::Item); 3 | use strict; 4 | 5 | sub init { 6 | my $self = shift; 7 | my $hrSystemUptime = $self->get_snmp_object('HOST-RESOURCES-MIB', 'hrSystemUptime'); 8 | $self->{uptime} = $self->timeticks($hrSystemUptime); 9 | $self->debug(sprintf 'uptime: %s', $self->{uptime}); 10 | $self->debug(sprintf 'up since: %s', 11 | scalar localtime (time - $self->{uptime})); 12 | } 13 | 14 | sub check { 15 | my $self = shift; 16 | $self->add_info(sprintf 'device is up since %s', 17 | $self->human_timeticks($self->{uptime})); 18 | $self->set_thresholds(warning => '15:', critical => '5:'); 19 | $self->add_message($self->check_thresholds($self->{uptime} / 60)); 20 | $self->add_perfdata( 21 | label => 'uptime', 22 | value => $self->{uptime} / 60, 23 | places => 0, 24 | ); 25 | } 26 | 27 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/tests/ts_sysdockermemstat.data: -------------------------------------------------------------------------------- 1 | cache 108507136 2 | rss 53219328 3 | rss_huge 0 4 | shmem 172032 5 | mapped_file 54251520 6 | dirty 0 7 | writeback 0 8 | swap 0 9 | pgpgin 111725 10 | pgpgout 72238 11 | pgfault 97485 12 | pgmajfault 424 13 | inactive_anon 20480 14 | active_anon 53538816 15 | inactive_file 53460992 16 | active_file 54882304 17 | unevictable 0 18 | hierarchical_memory_limit 9223372036854771712 19 | hierarchical_memsw_limit 9223372036854771712 20 | total_cache 108507136 21 | total_rss 53219328 22 | total_rss_huge 0 23 | total_shmem 172032 24 | total_mapped_file 54251520 25 | total_dirty 0 26 | total_writeback 0 27 | total_swap 0 28 | total_pgpgin 111725 29 | total_pgpgout 72238 30 | total_pgfault 97485 31 | total_pgmajfault 424 32 | total_inactive_anon 20480 33 | total_active_anon 53538816 34 | total_inactive_file 53460992 35 | total_active_file 54882304 36 | total_unevictable 0 37 | recent_rotated_anon 85328 38 | recent_rotated_file 13403 39 | recent_scanned_anon 85369 40 | recent_scanned_file 36719 41 | -------------------------------------------------------------------------------- /check_printer_health/check_printer_health-1.1.0.2/GLPlugin/lib/Monitoring/GLPlugin/SNMP/SysDescPrettify.pm: -------------------------------------------------------------------------------- 1 | package Monitoring::GLPlugin::SNMP::SysDescPrettify; 2 | our @ISA = qw(Monitoring::GLPlugin::SNMP); 3 | 4 | { 5 | no warnings qw(once); 6 | $Monitoring::GLPlugin::SNMP::SysDescPrettify::vendor_rules = { 7 | Cisco => { 8 | vendor_pattern => '.*cisco.*', 9 | prettifier_funcs => [ 10 | sub { 11 | my ($sysdescr, $session) = @_; 12 | if ($sysdescr =~ /(Cisco NX-OS.*? n\d+),.*(Version .*), RELEASE SOFTWARE/) { 13 | return $1.' '.$2; 14 | } 15 | return undef; 16 | }, 17 | ], 18 | }, 19 | Netgear => { 20 | vendor_pattern => '.*(netgear|GS\d+TP).*', 21 | prettifier_funcs => [ 22 | sub { 23 | my ($sysdescr, $session) = @_; 24 | if ($sysdescr =~ /GS\d+TP/) { 25 | return 'Netgear '.$sysdescr; 26 | } 27 | return undef; 28 | }, 29 | ], 30 | }, 31 | }; 32 | } 33 | 34 | 1; 35 | 36 | __END__ 37 | 38 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to produce Makefile.in 2 | 3 | ## Copyright (c) 2014-2016 Davide Madrisan 4 | ## 5 | ## This program is free software: you can redistribute it and/or modify 6 | ## it under the terms of the GNU General Public License as published by 7 | ## the Free Software Foundation, either version 3 of the License, or 8 | ## (at your option) any later version. 9 | ## 10 | ## This program is distributed in the hope that it will be useful, 11 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | ## GNU General Public License for more details. 14 | ## 15 | ## You should have received a copy of the GNU General Public License 16 | ## along with this program. If not, see . 17 | 18 | AM_MAKEFLAGS = --no-print-directory 19 | ACLOCAL_AMFLAGS = -I m4 20 | 21 | SUBDIRS = debian include lib packages plugins tests 22 | EXTRA_DIST = check_skel.c.sample 23 | 24 | check-local: all tests 25 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/include/url_encode.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | /* url_encode.h -- encode a string representing an URL 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | #ifndef _URL_ENCODE_H_ 18 | #define _URL_ENCODE_H_ 19 | 20 | #ifdef __cplusplus 21 | extern "C" 22 | { 23 | #endif 24 | 25 | char * url_encode (char *str); 26 | 27 | #ifdef __cplusplus 28 | } 29 | #endif 30 | 31 | #endif /* _URL_ENCODE_H_ */ 32 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/include/kernelver.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | /* kernelver.h -- get the version of a running Linux kernel 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | #ifndef _KERNELVER_H_ 18 | #define _KERNELVER_H_ 19 | 20 | #ifdef __cplusplus 21 | extern "C" 22 | { 23 | #endif 24 | 25 | unsigned int linux_version (void); 26 | 27 | #ifdef __cplusplus 28 | } 29 | #endif 30 | 31 | #endif /* _KERNELVER_H_ */ 32 | -------------------------------------------------------------------------------- /check_lm_sensors/check_lm_sensors-4.1.1/NEWS: -------------------------------------------------------------------------------- 1 | 2016-01-08 (Version 4.1.1) 2 | * the plugins falls back to the Nagios:: plugins if the Monitoring:: plugins are not installed 3 | 4 | 2015-11-23 (Version 4.1.0) 5 | * fix for device names on new kernels 6 | 7 | 2011-01-28 (Version 4.0.0) 8 | * code cleanup 9 | * multiple --rename options 10 | 11 | 2008-10-17 (Version 3.1.1) 12 | * added a short pause while reading the output of 'sensors' to cope 13 | with some systems where a delay caused the plugin to fail 14 | 15 | 2007-10-03 (Version 3.0.0) 16 | * the plugin is now compatible with embedded perl 17 | 18 | 2007-07-10 (Version 2.0.0) 19 | * added --low, --high and --range options 20 | * deprecated the --check option 21 | * added the sensor(s) output to the status string 22 | 23 | 2007-06-20 24 | * automatic detection of the path for hddtemp and sensors 25 | * --nosensors and --nodrives to disable sensors or drive temperature checks 26 | * --rename option to rename sensors 27 | * only the checked sensors are included in the performace output 28 | * --sanitaze option to remove spaces from sensor names 29 | 30 | 2007-06-18 31 | * Initial release 32 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/include/progversion.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | /* progversion.h -- version number of the nagios-plugins-linux 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation, either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | #ifndef _PROGVERSION_H 18 | #define _PROGVERSION_H 19 | 20 | #ifdef __cplusplus 21 | extern "C" { 22 | #endif 23 | 24 | static const char *program_version = PACKAGE_VERSION; 25 | 26 | #ifdef __cplusplus 27 | } 28 | #endif 29 | 30 | #endif /* _PROGVERSION_H */ 31 | -------------------------------------------------------------------------------- /check_rbl/check_rbl-1.7.2/COPYRIGHT: -------------------------------------------------------------------------------- 1 | Copyright (c) 2009-2023 Matteo Corti 2 | Copyright (c) 2010 Elan Ruusamae 3 | Copyright (c) 2009 ETH Zurich 4 | 5 | with the following individuals added to the list of Contributing Authors 6 | 7 | Victor V Kudlak 8 | Jan Kantert 9 | Nick Nicholas 10 | Michael Orlitzky 11 | Celevra https://github.com/celevra 12 | Claudio Kuenzler 13 | Oliver Rahner 14 | Nikolas Obser 15 | 16 | This program is free software; you can redistribute it and/or modify 17 | it under the terms of the GNU General Public License as published by 18 | the Free Software Foundation; either version 3 of the License, or (at 19 | your option) any later version. 20 | 21 | This program is distributed in the hope that it will be useful, but 22 | WITHOUT ANY WARRANTY; without even the implied warranty of 23 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 24 | General Public License for more details. 25 | 26 | You should have received a copy of the GNU General Public License 27 | along with this program; if not, write to the Free Software 28 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 29 | -------------------------------------------------------------------------------- /check_chrony/copyright: -------------------------------------------------------------------------------- 1 | Copyright 2019 Bernd Zeimetz 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | -------------------------------------------------------------------------------- /debian/patches/dsa/status_directory: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/dsa/sbin/dsa-update-apt-status 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/dsa/sbin/dsa-update-apt-status 4 | +++ pkg-nagios-plugins-contrib/dsa/sbin/dsa-update-apt-status 5 | @@ -22,7 +22,7 @@ 6 | # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 7 | 8 | UPDATE_RUNS=3 9 | -STATUSDIR=/var/cache/dsa/nagios 10 | +STATUSDIR=/var/cache/nagios_status 11 | STATUS="${STATUSDIR}"/apt 12 | SLEEP_MAX=$(( 15 * 60 )) 13 | MAX_AGE=$(( 23 * 60 * 60 )) 14 | Index: pkg-nagios-plugins-contrib/dsa/sbin/dsa-update-unowned-file-status 15 | =================================================================== 16 | --- pkg-nagios-plugins-contrib.orig/dsa/sbin/dsa-update-unowned-file-status 17 | +++ pkg-nagios-plugins-contrib/dsa/sbin/dsa-update-unowned-file-status 18 | @@ -22,7 +22,7 @@ 19 | # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | CUTOFF=40 22 | -STATUSDIR=/var/cache/dsa/nagios 23 | +STATUSDIR=/var/cache/nagios_status 24 | STATUS="${STATUSDIR}"/nouser 25 | 26 | mkdir -p "${STATUSDIR}" 27 | -------------------------------------------------------------------------------- /debian/patches/check_printer/use_nagios_plugin: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_printer/check_printer 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_printer/check_printer 4 | +++ pkg-nagios-plugins-contrib/check_printer/check_printer 5 | @@ -33,11 +33,27 @@ 6 | use strict; 7 | use warnings; 8 | 9 | -my $OS = `uname`; 10 | -if ($OS =~ m/^\wBSD/){ 11 | - use lib "/usr/local/libexec/nagios"; 12 | -} elsif ($OS =~ m/Linux/){ 13 | - use lib "/usr/local/nagios/libexec"; 14 | +sub load_module { 15 | + my @names = @_; 16 | + my $module; 17 | + for my $name (@names) { 18 | + my $file = $name; 19 | + # requires need either a bare word or a file name 20 | + $file =~ s{::}{/}gsxm; 21 | + $file .= '.pm'; 22 | + eval { 23 | + require $file; 24 | + $name->import(qw(%ERRORS)); 25 | + $module = $name; 26 | + }; 27 | + last if $module; 28 | + } 29 | + return $module; 30 | +} 31 | + 32 | +my $plugin_module; 33 | +BEGIN { 34 | + $plugin_module = load_module( 'Monitoring::Plugin', 'Nagios::Plugin' ); 35 | } 36 | 37 | use Getopt::Long; 38 | -------------------------------------------------------------------------------- /check_libs_ng/copyright: -------------------------------------------------------------------------------- 1 | 2 | check_libs_ng: 3 | 4 | Copyright (c) 2017 Leo Antunes 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining 7 | a copy of this software and associated documentation files (the 8 | "Software"), to deal in the Software without restriction, including 9 | without limitation the rights to use, copy, modify, merge, publish, 10 | distribute, sublicense, and/or sell copies of the Software, and to 11 | permit persons to whom the Software is furnished to do so, subject to 12 | the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be 15 | included in all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 20 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 21 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 22 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 23 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /debian/patches/check_backuppc/fix_filter: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_backuppc/src/check_backuppc 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_backuppc/src/check_backuppc 4 | +++ pkg-nagios-plugins-contrib/check_backuppc/src/check_backuppc 5 | @@ -171,7 +171,7 @@ my @notTooOld; 6 | 7 | foreach my $host (@hostsDesired, @hostsExcluded) 8 | { 9 | - if (not grep {/$host/} keys(%Status)) 10 | + if (not grep {$_ eq $host} keys(%Status)) 11 | { 12 | print("BACKUPPC UNKNOWN - Unknown host ($host)\n"); 13 | exit $ERRORS{'UNKNOWN'}; 14 | @@ -182,8 +182,8 @@ foreach my $host (@hostsDesired, @hostsE 15 | foreach my $host (sort(keys(%Status))) 16 | { 17 | next if $host =~ /^ /; 18 | - next if (@hostsDesired and not grep {/$host/} @hostsDesired); 19 | - next if (@hostsExcluded and grep {/$host/} @hostsExcluded); 20 | + next if (@hostsDesired and not grep {$_ eq $host} @hostsDesired); 21 | + next if (@hostsExcluded and grep {$_ eq $host} @hostsExcluded); 22 | next if ($backupOnly and $Status{$host}{'type'} eq 'archive'); 23 | next if ($archiveOnly and $Status{$host}{'type'} ne 'archive'); 24 | $hostCount++; 25 | -------------------------------------------------------------------------------- /debian/patches/check_backuppc/use_nagios_plugins: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_backuppc/check_backuppc-1.1.0/check_backuppc 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_backuppc/check_backuppc-1.1.0/check_backuppc 4 | +++ pkg-nagios-plugins-contrib/check_backuppc/check_backuppc-1.1.0/check_backuppc 5 | @@ -32,7 +32,28 @@ no utf8; 6 | 7 | # Nagios 8 | use lib "NAGIOS_LIB"; 9 | -use utils qw(%ERRORS $TIMEOUT); 10 | +sub load_module { 11 | + my @names = @_; 12 | + my $module; 13 | + for my $name (@names) { 14 | + my $file = $name; 15 | + # requires need either a bare word or a file name 16 | + $file =~ s{::}{/}gsxm; 17 | + $file .= '.pm'; 18 | + eval { 19 | + require $file; 20 | + $name->import(qw(%ERRORS)); 21 | + $module = $name; 22 | + }; 23 | + last if $module; 24 | + } 25 | + return $module; 26 | +} 27 | + 28 | +my $plugin_module; 29 | +BEGIN { 30 | + $plugin_module = load_module( 'Monitoring::Plugin', 'Nagios::Plugin' ); 31 | +} 32 | use POSIX qw(strftime difftime); 33 | use Getopt::Long; 34 | Getopt::Long::Configure('bundling'); 35 | -------------------------------------------------------------------------------- /debian/patches/check_printer/debian_bts: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_printer/check_printer 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_printer/check_printer 4 | +++ pkg-nagios-plugins-contrib/check_printer/check_printer 5 | @@ -267,10 +267,10 @@ while (my($key, $value) = each(%status)) 6 | if ($debug){ 7 | print Dumper(\%status); 8 | print "\n\n############ ATTENTION ############\n"; 9 | - print "You have debug enabled. If asked to enable debug by the developer,\n"; 10 | - print "please send all of the output, including your command line to\n"; 11 | - print "ecrist\@secure-computing.net with the subject line 'check_printer DEBUG' along\n"; 12 | - print "with a description of the problem you're experiencing.\n###################################\n"; 13 | + print "You have debug enabled. If asked to enable debug by the Debian Maintainer,\n"; 14 | + print "please send all of the output to the Debian Bug Tracking System, either by \n"; 15 | + print "replying to an existing bug or by opening a new bug.\n"; 16 | + 17 | print '$Id: check_printer 363 2014-07-23 14:37:59Z ecrist $'."\n\n"; 18 | } 19 | if ($is_crit){ 20 | -------------------------------------------------------------------------------- /check_hpasm/check_hpasm-4.8.0.2/plugins-scripts/HP/Proliant/Component/AsrSubsystem.pm: -------------------------------------------------------------------------------- 1 | package HP::Proliant::Component::AsrSubsystem; 2 | our @ISA = qw(HP::Proliant::Component); 3 | 4 | use strict; 5 | use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; 6 | 7 | sub new { 8 | my $class = shift; 9 | my %params = @_; 10 | my $self = { 11 | runtime => $params{runtime}, 12 | rawdata => $params{rawdata}, 13 | method => $params{method}, 14 | condition => $params{condition}, 15 | status => $params{status}, 16 | temperatures => [], 17 | blacklisted => 0, 18 | info => undef, 19 | extendedinfo => undef, 20 | }; 21 | bless $self, $class; 22 | if ($self->{method} eq 'snmp') { 23 | return HP::Proliant::Component::AsrSubsystem::SNMP->new(%params); 24 | } elsif ($self->{method} eq 'cli') { 25 | return HP::Proliant::Component::AsrSubsystem::CLI->new(%params); 26 | } else { 27 | die "unknown method"; 28 | } 29 | return $self; 30 | } 31 | 32 | sub check { 33 | my $self = shift; 34 | my $errorfound = 0; 35 | $self->add_info('checking ASR'); 36 | $self->overall_check(); 37 | } 38 | 39 | sub dump { 40 | my $self = shift; 41 | } 42 | 43 | 44 | 1; 45 | 46 | -------------------------------------------------------------------------------- /debian/patches/dsa/check_running_kernel_focal_fix: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/dsa/checks/dsa-check-running-kernel 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/dsa/checks/dsa-check-running-kernel 4 | +++ pkg-nagios-plugins-contrib/dsa/checks/dsa-check-running-kernel 5 | @@ -132,7 +132,7 @@ cat_vmlinux() { 6 | filter="$3" 7 | hdroff="$4" 8 | 9 | - if ! which $filter >/dev/null; then 10 | + if ! which ${filter%% *} >/dev/null; then 11 | echo "UNKNOWN: filter command '$filter' missing, perhaps install xz-utils, lz4 or lzop?" >&2 12 | exit $UNKNOWN 13 | fi 14 | @@ -157,7 +157,11 @@ get_image_linux() { 15 | cat_vmlinux "$image" "\x00\x00\x00\x02\xff" "xzcat" -1 16 | cat_vmlinux "$image" "\x00\x00\x00\x04\xff" "xzcat" -1 17 | # xz compressed image 18 | - cat_vmlinux "$image" "\xfd\x37\x7a\x58\x5a " "xzcat" 0 19 | + cat_vmlinux "$image" "\xfd\x37\x7a\x58\x5a" "xzcat" 0 20 | + # lz4 compressed image 21 | + cat_vmlinux "$image" "\x02\x21\x4c\x18" "lz4 -dc" 0 22 | + # lzo compressed image 23 | + cat_vmlinux "$image" "\x89\x4c\x5a\x4f\x00\x0d\x0a\x1a" "lzop -dc" 0 24 | 25 | echo "ERROR: Unable to extract kernel image." 2>&1 26 | exit 1 27 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/include/getenv.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | /* getenv.h -- this header file just provides an alias for getenv_secure () 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation, either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | #ifndef _GETENV_H 18 | #define _GETENV_H 19 | 20 | #include "common.h" 21 | 22 | #ifndef HAVE_SECURE_GETENV 23 | # ifdef HAVE___SECURE_GETENV 24 | # define secure_getenv __secure_getenv 25 | # else 26 | # error neither secure_getenv nor __secure_getenv is available 27 | # endif 28 | #endif 29 | 30 | #endif /* _GETENV_H */ 31 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/debian/copyright: -------------------------------------------------------------------------------- 1 | This package was debianized by Davide Madrisan on 2 | Sat, 19 Nov 2016 21:44:49 +0000 3 | 4 | It was downloaded from https://github.com/madrisan/nagios-plugins-linux/ 5 | 6 | Upstream Authors: Davide Madrisan 7 | 8 | Copyright: 9 | 10 | Copyright (C) 2014-2021 Davide Madrisan 11 | 12 | This program is free software: you can redistribute it and/or modify 13 | it under the terms of the GNU General Public License as published by 14 | the Free Software Foundation, either version 3 of the License, or 15 | (at your option) any later version. 16 | 17 | This package is distributed in the hope that it will be useful, 18 | but WITHOUT ANY WARRANTY; without even the implied warranty of 19 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 | GNU General Public License for more details. 21 | 22 | You should have received a copy of the GNU General Public License 23 | along with this program. If not, see . 24 | 25 | On Debian systems, the complete text of the GNU General 26 | Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". 27 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/include/system.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | /* system.h -- system and compiler specific stuff 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation, either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | #ifndef _NPL_SYSTEM_H_ 18 | #define _NPL_SYSTEM_H_ 19 | 20 | #include "common.h" 21 | 22 | #ifdef HAVE_STDBOOL_H 23 | # include 24 | #else 25 | # ifndef HAVE__BOOL 26 | # define _Bool signed char 27 | # endif 28 | # define bool _Bool 29 | # define false 0 30 | # define true 1 31 | # define __bool_true_false_are_defined 1 32 | #endif 33 | 34 | #endif /* _NPL_SYSTEM_H_ */ 35 | -------------------------------------------------------------------------------- /check_hp_bladechassis/check_hp_bladechassis-1.0.1/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ "`uname -m`" = "x86_64" ]; then 4 | def_install_dir=/usr/lib64/nagios/plugins 5 | else 6 | def_install_dir=/usr/lib/nagios/plugins 7 | fi 8 | def_mandir=/usr/share/man/man8 9 | 10 | if [ "$1" = "-q" ]; then 11 | install_dir=$def_install_dir 12 | mandir=$def_mandir 13 | else 14 | echo -n "Plugin dir [$def_install_dir]: " 15 | read install_dir 16 | if [ "$install_dir" = "" ]; then 17 | install_dir=$def_install_dir 18 | fi 19 | echo -n "Man page dir [$def_mandir]: " 20 | read mandir 21 | if [ "$mandir" = "" ]; then 22 | mandir=$def_mandir 23 | fi 24 | fi 25 | 26 | if [ -d $install_dir ]; then 27 | : 28 | else 29 | echo "ERROR: Plugin directory $install_dir doesn't exist," 30 | echo "ERROR: or is not a directory" 31 | exit 1 32 | fi 33 | 34 | if [ -d $mandir ]; then 35 | : 36 | else 37 | echo "ERROR: Man page directory $mandir doesn't exist," 38 | echo "ERROR: or is not a directory" 39 | exit 1 40 | fi 41 | 42 | # The script and symlinks 43 | cp check_hp_bladechassis $install_dir 44 | 45 | # The man page 46 | cp check_hp_bladechassis.8 $mandir 47 | 48 | # Done 49 | echo "done." 50 | exit 0 51 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/packages/specs/APKBUILD.in: -------------------------------------------------------------------------------- 1 | # Contributor: 2 | # Maintainer: Davide Madrisan 3 | pkgname=@package@ 4 | pkgver=@version@ 5 | pkgrel=@release@ 6 | pkgdesc="Nagios Plugins for Linux" 7 | url="https://github.com/madrisan/nagios-plugins-linux" 8 | arch="all" 9 | license="GPL-3.0-or-later" 10 | depends="" 11 | makedepends="autoconf automake bzip2 curl-dev file gcc libtool linux-headers make m4 musl-dev tar xz" 12 | install="" 13 | subpackages="" 14 | source="$pkgname-$pkgver.tar.xz" 15 | builddir="$srcdir/$pkgname-$pkgver" 16 | 17 | prepare() { 18 | cd "$builddir" 19 | autoreconf -vif || return 1 20 | } 21 | 22 | build() { 23 | cd "$builddir" 24 | ./configure \ 25 | --build=$CBUILD \ 26 | --host=$CHOST \ 27 | --prefix=/usr \ 28 | --libexecdir=/usr/lib/nagios/plugins \ 29 | --sysconfdir=/etc \ 30 | --mandir=/usr/share/man \ 31 | --localstatedir=/var 32 | make 33 | } 34 | 35 | check() { 36 | cd "$builddir" 37 | make check 38 | } 39 | 40 | package() { 41 | make DESTDIR="$pkgdir" install 42 | } 43 | 44 | sha512sums="@sha512sum@ @package@-@version@.tar.xz" 45 | -------------------------------------------------------------------------------- /check_mongodb/mongodb.cfg: -------------------------------------------------------------------------------- 1 | # 'check_mongodb' command definition 2 | define command { 3 | command_name check_mongodb 4 | command_line /usr/lib/nagios/plugins/check_mongodb -H $HOSTADDRESS$ -A $ARG1$ -P $ARG2$ -W $ARG3$ -C $ARG4$ 5 | } 6 | 7 | # 'check_mongodb_database' command definition 8 | define command { 9 | command_name check_mongodb_database 10 | command_line /usr/lib/nagios/plugins/check_mongodb -H $HOSTADDRESS$ -A $ARG1$ -P $ARG2$ -W $ARG3$ -C $ARG4$ -d $ARG5$ 11 | } 12 | 13 | # 'check_mongodb_collection' command definition 14 | define command { 15 | command_name check_mongodb_collection 16 | command_line /usr/lib/nagios/plugins/check_mongodb -H $HOSTADDRESS$ -A $ARG1$ -P $ARG2$ -W $ARG3$ -C $ARG4$ -d $ARG5$ -c $ARG6$ 17 | } 18 | 19 | # 'check_mongodb_replicaset' command definition 20 | define command { 21 | command_name check_mongodb_replicaset 22 | command_line /usr/lib/nagios/plugins/check_mongodb -H $HOSTADDRESS$ -A $ARG1$ -P $ARG2$ -W $ARG3$ -C $ARG4$ -r $ARG5$ 23 | } 24 | 25 | # 'check_mongodb_query' command definition 26 | define command { 27 | command_name check_mongodb_query 28 | command_line /usr/lib/nagios/plugins/check_mongodb -H $HOSTADDRESS$ -A $ARG1$ -P $ARG2$ -W $ARG3$ -C $ARG4$ -q $ARG5$ 29 | } 30 | -------------------------------------------------------------------------------- /check_printer_health/check_printer_health-1.1.0.2/plugins-scripts/Classes/Lexmark/Component/ConsumablesSubsystem.pm: -------------------------------------------------------------------------------- 1 | package Classes::Lexmark::Component::ConsumablesSubsystem; 2 | our @ISA = qw(Monitoring::GLPlugin::SNMP::Item); 3 | use strict; 4 | 5 | sub init { 6 | my ($self) = @_; 7 | $self->get_snmp_tables('LEXMARK-MPS-MIB', [ 8 | ['supplies', 'currentSuppliesTable', 'Classes::Lexmark::Component::ConsumablesSubsystem::Supply'], 9 | ]); 10 | } 11 | 12 | package Classes::Lexmark::Component::ConsumablesSubsystem::Supply; 13 | our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem); 14 | use strict; 15 | 16 | sub check { 17 | my ($self) = @_; 18 | if ($self->{currentSupplyCurrentStatus} eq "low") { 19 | $self->add_warning_mitigation(sprintf "%s is %s", 20 | $self->{currentSupplyDescription}, 21 | $self->{currentSupplyCurrentStatus}); 22 | } elsif ($self->{currentSupplyCurrentStatus} eq "empty") { 23 | $self->add_critical(sprintf "%s is %s", 24 | $self->{currentSupplyDescription}, 25 | $self->{currentSupplyCurrentStatus}); 26 | } elsif ($self->{currentSupplyCurrentStatus} eq "invalid") { 27 | $self->add_critical(sprintf "%s is %s", 28 | $self->{currentSupplyDescription}, 29 | $self->{currentSupplyCurrentStatus}); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /debian/patches/check_nfsmounts/perl_module: -------------------------------------------------------------------------------- 1 | Index: pkg-nagios-plugins-contrib/check_nfsmounts/check_nfsmounts 2 | =================================================================== 3 | --- pkg-nagios-plugins-contrib.orig/check_nfsmounts/check_nfsmounts 4 | +++ pkg-nagios-plugins-contrib/check_nfsmounts/check_nfsmounts 5 | @@ -21,14 +21,36 @@ 6 | # along with this program. If not, see . 7 | # 8 | 9 | -use utils qw{$TIMEOUT %ERRORS}; 10 | +sub load_module { 11 | + my @names = @_; 12 | + my $module; 13 | + for my $name (@names) { 14 | + my $file = $name; 15 | + # requires need either a bare word or a file name 16 | + $file =~ s{::}{/}gsxm; 17 | + $file .= '.pm'; 18 | + eval { 19 | + require $file; 20 | + $name->import(qw(%ERRORS)); 21 | + $module = $name; 22 | + }; 23 | + last if $module; 24 | + } 25 | + return $module; 26 | +} 27 | + 28 | +my $plugin_module; 29 | +BEGIN { 30 | + $plugin_module = load_module( 'Monitoring::Plugin', 'Nagios::Plugin' ); 31 | +} 32 | + 33 | use Time::HiRes qw{time alarm}; 34 | use Getopt::Long; 35 | use strict; 36 | 37 | my $version="1.0"; 38 | 39 | -my $nfs_timeout=$TIMEOUT; 40 | +my $nfs_timeout=15; 41 | my $nfs_warn=-1; 42 | my $writemode=0; 43 | my $help=0; 44 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/include/xasprintf.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | /* xasprintf.h -- asprintf with out-of-memory checking. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | #ifndef _XASPRINTF_H 18 | #define _XASPRINTF_H 1 19 | 20 | #ifdef __cplusplus 21 | extern "C" { 22 | #endif 23 | 24 | /* Write formatted output to a string dynamically allocated with malloc(), 25 | and return it. On error exit with the STATE_UNKNOWN status */ 26 | char *xasprintf (const char *format, ...) 27 | _attribute_format_printf_(1, 2); 28 | 29 | #ifdef __cplusplus 30 | } 31 | #endif 32 | 33 | #endif /* _XASPRINTF_H */ 34 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/include/xstrton.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | /* xstrton.h -- string to double and long conversion with error checking 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | #ifndef XSTRTON_H_ 18 | #define XSTRTON_H_ 19 | 20 | #include 21 | 22 | #ifdef __cplusplus 23 | extern "C" 24 | { 25 | #endif 26 | 27 | int agetoint64 (const char *str, int64_t *age, char **errmesg); 28 | int sizetoint64 (const char *str, int64_t *size, char **errmesg); 29 | long strtol_or_err (const char *str, const char *errmesg); 30 | 31 | #ifdef __cplusplus 32 | } 33 | #endif 34 | 35 | #endif /* XSTRTON_H_ */ 36 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/include/logging.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | /* logging.h -- logging facilities 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | #ifndef _LOGGING_H_ 18 | #define _LOGGING_H_ 19 | 20 | #include 21 | 22 | void logging (const char *format, ...); 23 | 24 | static inline void __attribute__ ((always_inline, format (printf, 1, 2))) 25 | logging_null (const char *format, ...) {} 26 | 27 | #ifdef ENABLE_DEBUG 28 | # define dbg(format, ...) fprintf (stdout, "DEBUG: " format, ##__VA_ARGS__) 29 | #else 30 | # define dbg(args...) logging_null(args) 31 | #endif 32 | 33 | #endif /* _LOGGING_H */ 34 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/include/units.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | /* units.h -- a library for converting between memory units 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | #ifndef _UNITS_H_ 18 | #define _UNITS_H_ 19 | 20 | #ifdef __cplusplus 21 | extern "C" 22 | { 23 | #endif 24 | 25 | typedef enum unit_shift 26 | { 27 | b_shift = 0, k_shift = 10, m_shift = 20, g_shift = 30 28 | } unit_shift; 29 | 30 | #define UNIT_CONVERT(X, shift) (((unsigned long long)(X) << k_shift) >> shift) 31 | #define UNIT_STR(X) UNIT_CONVERT(X, shift), units 32 | 33 | #ifdef __cplusplus 34 | } 35 | #endif 36 | 37 | #endif /* _UNITS_H_ */ 38 | -------------------------------------------------------------------------------- /debian/copyright.in: -------------------------------------------------------------------------------- 1 | 2 | The Debian packaging is Copyright © 2012 Bernd Zeimetz and 3 | is licensed under der GPL, either version 3 of the License, or 4 | (at your option) any later version. 5 | 6 | 7 | This program is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | . 12 | This package is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | . 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see . 19 | . 20 | On Debian systems, the complete text of the GNU General 21 | Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". 22 | 23 | 24 | Part of the Debian packaging is the content of the debian directory, 25 | and the following files: 26 | common*.mk 27 | */control 28 | */copyright 29 | */Makefile 30 | 31 | 32 | The copyright information for the included plugins is listed below: 33 | 34 | 35 | #AUTO_UPDATE_Copyright# 36 | -------------------------------------------------------------------------------- /debian/patches/check_smstools/operator_siglvl: -------------------------------------------------------------------------------- 1 | From 75a6f801a18961b1abd169046a105813da6c3424 Mon Sep 17 00:00:00 2001 2 | From: ZyanKLee 3 | Date: Thu, 28 Apr 2016 12:51:42 +0200 4 | Subject: [PATCH] operator string, siglvl 5 | 6 | operator string has a " at the end, too - removing it 7 | siglvl at our modem is 31.99 - but still works 8 | --- 9 | check_smstools/bin/check_smstools | 3 ++- 10 | 1 file changed, 2 insertions(+), 1 deletion(-) 11 | 12 | Index: pkg-nagios-plugins-contrib/check_smstools/bin/check_smstools 13 | =================================================================== 14 | --- pkg-nagios-plugins-contrib.orig/check_smstools/bin/check_smstools 15 | +++ pkg-nagios-plugins-contrib/check_smstools/bin/check_smstools 16 | @@ -191,6 +191,7 @@ sub process_statusfile { 17 | if ($result{'cmd'} =~ /$operator_command/) { 18 | $operator = $result{'answer'}; 19 | $operator =~ s/0,0,"//g; 20 | + $operator =~ s/"$//g; 21 | } 22 | } 23 | # No need to parse the rest of the file, if signal 24 | @@ -218,7 +219,7 @@ sub check_signal { 25 | $np->nagios_die("Unable to determine the modem signal strength."); 26 | } 27 | 28 | - if (($siglvl < 0) or ($siglvl > 31)) { 29 | + if (($siglvl < 0) or ($siglvl > 32)) { 30 | $np->nagios_die("Unable to determine the modem signal strength."); 31 | } 32 | 33 | -------------------------------------------------------------------------------- /madrisan-nagios-plugins-linux/nagios-plugins-linux/include/json_helpers.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0-or-later 2 | /* json_helpers.h -- Helper function for parsing data in JSON format 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation, either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | #ifndef JSON_HELPERS_H_ 18 | #define JSON_HELPERS_H_ 19 | 20 | #define JSMN_HEADER 21 | #include "jsmn.h" 22 | 23 | #ifdef __cplusplus 24 | extern "C" 25 | { 26 | #endif 27 | 28 | int json_token_streq (const char *json, jsmntok_t * tok, const char *s); 29 | char *json_token_tostr (char *json, jsmntok_t * t); 30 | jsmntok_t *json_tokenise (const char *json, size_t *ntoken); 31 | 32 | #ifdef __cplusplus 33 | } 34 | #endif 35 | 36 | #endif /* JSON_HELPERS_H_ */ 37 | --------------------------------------------------------------------------------