Changeset 1012
- Timestamp:
- 29/05/06 15:33:39 (6 years ago)
- Files:
-
- people/ilmari/modularisation-branch/ChangeLog (modified) (3 diffs)
- people/ilmari/modularisation-branch/Makefile (modified) (6 diffs)
- people/ilmari/modularisation-branch/Makefile.config (modified) (1 diff)
- people/ilmari/modularisation-branch/RELEASE (modified) (1 diff)
- people/ilmari/modularisation-branch/dists/debian/Makefile.config (modified) (1 diff)
- people/ilmari/modularisation-branch/dists/debian/NEWS (added)
- people/ilmari/modularisation-branch/dists/debian/changelog (modified) (1 diff)
- people/ilmari/modularisation-branch/dists/debian/control (modified) (3 diffs)
- people/ilmari/modularisation-branch/dists/debian/munin-node.cron.d (modified) (1 diff)
- people/ilmari/modularisation-branch/dists/debian/munin-node.init (modified) (1 diff)
- people/ilmari/modularisation-branch/dists/debian/munin-node.manpages (modified) (1 diff)
- people/ilmari/modularisation-branch/dists/debian/munin-node.postinst (modified) (1 diff)
- people/ilmari/modularisation-branch/dists/debian/munin-node.postrm (modified) (1 diff)
- people/ilmari/modularisation-branch/dists/debian/munin-node.preinst (deleted)
- people/ilmari/modularisation-branch/dists/debian/munin.cron.d (modified) (1 diff)
- people/ilmari/modularisation-branch/dists/debian/munin.docs (modified) (1 diff)
- people/ilmari/modularisation-branch/dists/debian/munin.logrotate (modified) (1 diff)
- people/ilmari/modularisation-branch/dists/debian/munin.manpages (modified) (1 diff)
- people/ilmari/modularisation-branch/dists/debian/munin.postinst (modified) (2 diffs)
- people/ilmari/modularisation-branch/dists/debian/munin.postrm (modified) (2 diffs)
- people/ilmari/modularisation-branch/dists/debian/munin.preinst (deleted)
- people/ilmari/modularisation-branch/dists/debian/plugins.conf (modified) (1 diff)
- people/ilmari/modularisation-branch/dists/debian/rules (modified) (2 diffs)
- people/ilmari/modularisation-branch/dists/freebsd/munin-main/Makefile (modified) (4 diffs)
- people/ilmari/modularisation-branch/dists/freebsd/munin-main/distinfo (modified) (1 diff)
- people/ilmari/modularisation-branch/dists/freebsd/munin-main/files/patch-munin-limits.in (added)
- people/ilmari/modularisation-branch/dists/freebsd/munin-main/files/pkg-message (deleted)
- people/ilmari/modularisation-branch/dists/freebsd/munin-main/files/pkg-message.in (added)
- people/ilmari/modularisation-branch/dists/freebsd/munin-main/pkg-deinstall (modified) (1 diff)
- people/ilmari/modularisation-branch/dists/freebsd/munin-main/pkg-install (modified) (3 diffs)
- people/ilmari/modularisation-branch/dists/freebsd/munin-main/pkg-plist (modified) (4 diffs)
- people/ilmari/modularisation-branch/dists/freebsd/munin-node/Makefile (modified) (4 diffs)
- people/ilmari/modularisation-branch/dists/freebsd/munin-node/distinfo (modified) (1 diff)
- people/ilmari/modularisation-branch/dists/freebsd/munin-node/files/munin-node-revive.sh.in (added)
- people/ilmari/modularisation-branch/dists/freebsd/munin-node/files/munin-node.sh (deleted)
- people/ilmari/modularisation-branch/dists/freebsd/munin-node/files/munin-node.sh.in (added)
- people/ilmari/modularisation-branch/dists/freebsd/munin-node/files/pkg-message (deleted)
- people/ilmari/modularisation-branch/dists/freebsd/munin-node/files/pkg-message.in (added)
- people/ilmari/modularisation-branch/dists/freebsd/munin-node/pkg-install (modified) (1 diff)
- people/ilmari/modularisation-branch/dists/freebsd/munin-node/pkg-plist (modified) (7 diffs)
- people/ilmari/modularisation-branch/dists/redhat/Makefile.config (modified) (1 diff)
- people/ilmari/modularisation-branch/dists/redhat/munin-node.rc (modified) (1 diff)
- people/ilmari/modularisation-branch/dists/redhat/munin.spec.in (modified) (13 diffs)
- people/ilmari/modularisation-branch/dists/suse/munin.spec.in (modified) (3 diffs)
- people/ilmari/modularisation-branch/dists/suse/patch-002 (added)
- people/ilmari/modularisation-branch/logo-horizontal.svg (added)
- people/ilmari/modularisation-branch/logo.svg (added)
- people/ilmari/modularisation-branch/munin-doc-base.html (modified) (2 diffs, 1 prop)
- people/ilmari/modularisation-branch/munin-faq-base.html (modified) (3 props)
- people/ilmari/modularisation-branch/node/munin-node-configure-snmp.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/munin-node-configure.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/munin-node-simple.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/munin-node.in (modified) (22 diffs)
- people/ilmari/modularisation-branch/node/munin-run.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d.aix/cpu.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.aix/df.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.aix/iostat.hd_only.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.aix/iostat.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.aix/iostat.vp_only.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.aix/memory.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.aix/netstat.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.aix/processes.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.aix/swap.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.freebsd/cpu.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.freebsd/df.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.freebsd/df_inode.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.freebsd/if_.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d.freebsd/if_errcoll_.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d.freebsd/load.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.freebsd/memory.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.freebsd/netstat.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.freebsd/open_files.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.freebsd/processes.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.freebsd/swap.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.freebsd/vmstat.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/apt.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/apt_all.in (modified) (4 diffs)
- people/ilmari/modularisation-branch/node/node.d.linux/cps_.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/cpu.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/df.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/df_abs.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/df_inode.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/entropy.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/files_.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/forks.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/fw_conntrack.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/fw_forwarded_local.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/fw_packets.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/i2c.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/i2c_fan.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/if_.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d.linux/if_err_.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/interrupts.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/iostat.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d.linux/iostat_ios.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/ip_.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/irqstats.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/load.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/memory.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/netopia.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/netstat.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/nfs_client.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/nfsd.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/open_files.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/open_inodes.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/port_.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/processes.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/sensors_.in (modified) (7 diffs)
- people/ilmari/modularisation-branch/node/node.d.linux/swap.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/uptime.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/users.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/vlan_.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/vlan_inetuse_.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.linux/vlan_linkuse_.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.sunos/cpu.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.sunos/fs_df.in (modified) (3 diffs)
- people/ilmari/modularisation-branch/node/node.d.sunos/fs_inodes.in (modified) (3 diffs)
- people/ilmari/modularisation-branch/node/node.d.sunos/if_.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.sunos/if_errcoll_.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.sunos/io_busy_.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.sunos/io_bytes_.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.sunos/io_ops_.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.sunos/load.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.sunos/memory.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d.sunos/netstat.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d.sunos/paging_in.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.sunos/paging_out.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d.sunos/processes.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d.sunos/temperature.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/acpi.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/amavis.in (modified) (3 diffs)
- people/ilmari/modularisation-branch/node/node.d/apache_accesses.in (modified) (3 diffs)
- people/ilmari/modularisation-branch/node/node.d/apache_processes.in (modified) (3 diffs)
- people/ilmari/modularisation-branch/node/node.d/apache_volume.in (modified) (3 diffs)
- people/ilmari/modularisation-branch/node/node.d/apc_nis.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d/bind9.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/bind9_rndc.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/courier_.in (modified) (3 diffs)
- people/ilmari/modularisation-branch/node/node.d/courier_mta_mailqueue.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/courier_mta_mailstats.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/courier_mta_mailvolume.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/cupsys_pages.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/df.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/df_inode.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/dhcpd3.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/exim_mailqueue.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/exim_mailqueue_alt.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/exim_mailstats.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/foldingathome.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/hddtemp.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/hddtemp2.in (modified) (3 diffs)
- people/ilmari/modularisation-branch/node/node.d/hddtemp_smartctl.in (modified) (6 diffs)
- people/ilmari/modularisation-branch/node/node.d/ipac-ng.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/ircu.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/loggrep.in (modified) (6 diffs)
- people/ilmari/modularisation-branch/node/node.d/mailman.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/mailscanner.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/mhttping.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/multips.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/munin_graph.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/munin_update.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/mysql_bytes.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/mysql_isam_space_.in (modified) (3 diffs)
- people/ilmari/modularisation-branch/node/node.d/mysql_queries.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/mysql_slowqueries.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/mysql_threads.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/named.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/ntp_.in (modified) (5 diffs)
- people/ilmari/modularisation-branch/node/node.d/ntp_states.in (modified) (3 diffs)
- people/ilmari/modularisation-branch/node/node.d/nut_misc.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d/nut_volts.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/perdition.in (modified) (5 diffs)
- people/ilmari/modularisation-branch/node/node.d/pm3users_.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/pop_stats.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/postfix_mailqueue.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/postfix_mailstats.in (modified) (4 diffs)
- people/ilmari/modularisation-branch/node/node.d/postfix_mailvolume.in (modified) (3 diffs)
- people/ilmari/modularisation-branch/node/node.d/ps_.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/psu_.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/samba.in (modified) (3 diffs)
- people/ilmari/modularisation-branch/node/node.d/sendmail_mailqueue.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/sendmail_mailstats.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/sendmail_mailtraffic.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/smart_.in (modified) (13 diffs)
- people/ilmari/modularisation-branch/node/node.d/snmp__cpuload.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d/snmp__df.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d/snmp__fc_if_.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d/snmp__fc_if_err_.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d/snmp__if_.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d/snmp__if_err_.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d/snmp__load.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d/snmp__processes.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d/snmp__sensors_fsc_bx_fan.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d/snmp__sensors_fsc_bx_temp.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d/snmp__sensors_fsc_fan.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d/snmp__sensors_fsc_temp.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d/snmp__sensors_mbm_fan.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d/snmp__sensors_mbm_temp.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d/snmp__sensors_mbm_volt.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d/snmp__users.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d/spamstats.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/squid_cache.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/squid_icp.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/squid_requests.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d/squid_traffic.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/surfboard.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/node.d/sybase_space.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/node/node.d/vmstat.in (modified) (1 diff)
- people/ilmari/modularisation-branch/node/plugins.history.in (modified) (1 diff)
- people/ilmari/modularisation-branch/server/Munin.pm.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/server/definitions.html (modified) (3 props)
- people/ilmari/modularisation-branch/server/logo.png (modified) (1 prop)
- people/ilmari/modularisation-branch/server/munin-cgi-graph.in (modified) (1 diff)
- people/ilmari/modularisation-branch/server/munin-comparison-day.tmpl.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/server/munin-comparison-month.tmpl.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/server/munin-comparison-week.tmpl.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/server/munin-comparison-year.tmpl.in (modified) (2 diffs)
- people/ilmari/modularisation-branch/server/munin-cron.in (modified) (1 diff)
- people/ilmari/modularisation-branch/server/munin-graph.in (modified) (10 diffs)
- people/ilmari/modularisation-branch/server/munin-html.in (modified) (4 diffs)
- people/ilmari/modularisation-branch/server/munin-limits.in (modified) (6 diffs)
- people/ilmari/modularisation-branch/server/munin-update.in (modified) (21 diffs)
- people/ilmari/modularisation-branch/server/munin.conf.in (modified) (1 diff)
- people/ilmari/modularisation-branch/test-mktemp (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
people/ilmari/modularisation-branch/ChangeLog
r864 r1012 1 munin (CVS) 2 1 munin (repository) 2 3 * Plugins: Add module Munin::Plugin::SNMP and convert plugins to use it. 4 * Server: Display the time period in the title of the comparison pages. 5 * Merge changes from 1.2.3->1.2.4. Some of the following entries may not 6 apply. 7 * Plugins: "exists $ARGV[0]" does not work with perl < 5.6.0. use 8 "defined $ARGV[0]". 9 * Dists: Brought dists.freebsd in line with the FreeBSD ports. 10 * Dists: Merged changes from Debian Etch package. See 11 dists/debian/changelog. 12 * Main: Correct munin-limits pod documentation. 13 * Server: filter a trivial error message from RRDtool (Deb#326061) 14 * Server: A patch from trunk that makes munin-limits eat stdout/err from the 15 contact.foo.command option in munin.conf. (Deb#301196) 16 * Server: make munin-graph deal with RRDtool 1.0.x and 1.2.x. 17 * Server: Fix thinko in category_order in munin-html.in. 18 * Server: Fix handling of 'update no' on services. 19 * Server: Log warning about nodes without addresses. 20 * Node: Prevent list command from polluting the node list. 21 * Plugins: Fix tempfile creation by using the best method available on a given 22 platform. (amavis, courier_, perdition) 23 * Plugins: Fix to support the Linux cciss driver in the iostat plugin. 24 * Plugins: squid_requests: Put the CDEF back that computes misses. 25 * Plugins: postfix_mailvolume: Fix bad exit code test for `which postconf`. 26 * Plugins: hddtemp_smartctl: Fix bugs on Solaris. Revert back to using -A 27 (attributes) rather than -a (all). That can be specified through the 28 args_$dev mechanism. THIS CAN BREAK EXISTING SETUPS! 29 * Plugins: samba: Make location of smbstatus program configurable. 30 Streamline computation of foo.value. Correct typos and a thinko. Add 31 configurable "ignoreipcshare". Make awk program a lot more complicated to 32 deal with variations of smbstatus output. Quote error message with 33 parentheseis. 34 * Plugins: smart_: Allow to query several drives on the same 3ware card. 35 Correct a bug when '-i' was not listed in smartargs. Don't fail if 36 no value was obtained for hard drive model. Minor enhancements and 37 minor bug fixes from Nicolas STRANSKY <Nico@neo-lan.net>. smartctl exit 38 code is a value composed of bits. Allow more than one to be turned on 39 simultaneously by using the exit code itself rather than the log2 of it. 40 * Plugins: perdition: Add missing backquote on mktempfile line. Support 41 IMAPS and POP3S protocols. 42 * Plugins (FreeBSD): if_, if_errcoll_: Shift field numbers in awk for 43 interfaces that have no MAC address. 44 * Plugins (Solaris): fs_df, fs_inodes: Allow '-' in mountpoints. 45 * Plugins (Solaris): processes: Replaced numerous calls to various programs 46 with a single awk program. 47 * Plugins (Solaris): netstat: "exists $ARGV[0]" does not work with perl < 48 5.6.0. use "defined $ARGV[0]". 49 * Plugins (Solaris): memory: Rewrite the value computation as a single nawk 50 program. Support scale factor "K" (gives values < 1). 51 * Plugins (Linux): port_: Correct offset error in TCP6 code. 52 * Plugins (Linux): if_: Simplify awk program greatly, suggested by 53 Nicolai Langfeldt <janl@linpro.no> 54 55 munin (1.3.2) 56 57 * Main/node: Implemented TLS support. 58 * Main: fix the file vs. pipe check in munin-limits. 59 * Main: place the munin-limits lock file in rundir, not dbdir. 3 60 * Main: Yet another rewrite of munin-limits open call (SF#1115434). 4 61 * Main: Make sure all rrd-tunes are correct after an upgrade (Deb#296454, … … 9 66 * Main: Escape regexps more properly (Deb#296575). 10 67 * Main: Correct expires-headers in CGI output (SF#1159742). 68 * Main: Redirect stdout/stderr from munin-limits contact commands, to the 69 munin-limits log file (Deb#301196). 11 70 * Node: munin-node didn't treat default_plugin_user properly (Deb#295366). 12 71 * Node: munin-node-configure now properly respect user plugins. 13 * Plugins: Add module Munin::Plugin::SNMP and convert plugins to use it.72 * Plugins: sort drives in generic/hddtemp_smartcl (SF#1174847). 14 73 * Plugins: linux/if* now treats ra* interfaces as wireless. 15 74 * Plugins: minor bugfix in generic/bind9. … … 38 97 * Plugins: Only run 'exim -bpr' once in generic/exim_mailqueue_alt, 39 98 and use only awk to process the data. 99 * Plugins: Make linux/sensors_ handle multiline output better (Deb#300690). 100 * Plugins: generic/postfix_mailstats now treats reject-lines better 101 (Deb#302220). 40 102 * Docs: Added man page for munin-node-configure-snmp. 41 103 * Docs: Brushed up the comments in the default munin.conf a bit (Deb#294060). people/ilmari/modularisation-branch/Makefile
r864 r1012 10 10 INSTALL_PLUGINS ?= "auto manual contrib snmpauto" 11 11 INSTALL = ./install-sh 12 DIR = $(shell /bin/pwd | sed 's/^.*\///') 12 13 13 14 default: build … … 118 119 $(INSTALL) -m 0644 README.* $(DOCDIR)/ 119 120 $(INSTALL) -m 0644 COPYING $(DOCDIR)/ 121 $(INSTALL) -m 0644 build/README-apache-cgi $(DOCDIR)/ 120 122 $(INSTALL) -m 0644 node/node.d/README $(DOCDIR)/README.plugins 121 123 … … 143 145 -e 's|@@OSTYPE@@|$(OSTYPE)|g' \ 144 146 -e 's|@@HOSTNAME@@|$(HOSTNAME)|g' \ 147 -e 's|@@MKTEMP@@|$(MKTEMP)|g' \ 145 148 -e 's|@@VERSION@@|$(VERSION)|g' \ 146 149 -e 's|@@PLUGSTATE@@|$(PLUGSTATE)|g' \ … … 212 215 213 216 rpm: rpm-pre 214 tar -C .. --dereference --exclude CVS-cvzf ../munin-$(RELEASE).tar.gz munin-$(VERSION)/217 tar -C .. --dereference --exclude .svn -cvzf ../munin-$(RELEASE).tar.gz munin-$(VERSION)/ 215 218 (cd ..; rpmbuild -tb munin-$(RELEASE).tar.gz) 216 219 217 220 rpm-src: rpm-pre 218 tar -C .. --dereference --exclude CVS-cvzf ../munin-$(RELEASE).tar.gz munin-$(VERSION)/221 tar -C .. --dereference --exclude .svn -cvzf ../munin-$(RELEASE).tar.gz munin-$(VERSION)/ 219 222 (cd ..; rpmbuild -ts munin-$(RELEASE).tar.gz) 220 223 … … 230 233 231 234 suse: suse-pre 232 tar -C .. --dereference --exclude CVS -cvzf ../munin-$(RELEASE).tar.gz munin-$(VERSION)/235 tar -C .. --dereference --exclude .svn -cvzf ../munin_$(RELEASE).tar.gz munin-$(VERSION)/ 233 236 (cd ..; rpmbuild -tb munin-$(RELEASE).tar.gz) 234 237 235 238 suse-src: suse-pre 236 tar -C .. --dereference --exclude CVS -cvzf ../munin-$(RELEASE).tar.gz munin-$(VERSION)/239 tar -C .. --dereference --exclude .svn -cvzf ../munin_$(RELEASE).tar.gz munin-$(VERSION)/ 237 240 (cd ..; rpmbuild -ts munin-$(RELEASE).tar.gz) 238 241 … … 249 252 -rm -f build-man-stamp 250 253 254 -rm -f dists/redhat/munin.spec 255 251 256 source_dist: clean 252 (cd ..; ln -s muninmunin-$(VERSION))253 tar -C .. --dereference --exclude CVS-cvzf ../munin_$(RELEASE).tar.gz munin-$(VERSION)/257 (cd ..; ln -s $(DIR) munin-$(VERSION)) 258 tar -C .. --dereference --exclude .svn -cvzf ../munin_$(RELEASE).tar.gz munin-$(VERSION)/ 254 259 255 260 .PHONY: install install-main install-node install-doc install-man build build-doc deb clean source_dist people/ilmari/modularisation-branch/Makefile.config
r864 r1012 62 62 HOSTNAME = $(shell hostname) 63 63 64 # What is the safest way to create a tempfile. 65 # Default is to figure it out by testing various methods. 66 # Replace this with a known platform-specific method 67 MKTEMP = $(shell ./test-mktemp) 68 64 69 # Munin version number. 65 70 VERSION = $(shell cat RELEASE) people/ilmari/modularisation-branch/RELEASE
r864 r1012 1 1.3. 11 1.3.2 people/ilmari/modularisation-branch/dists/debian/Makefile.config
r864 r1012 6 6 HTMLDIR = $(DESTDIR)/var/www/munin 7 7 DBDIR = $(DESTDIR)/var/lib/munin 8 9 CGIDIR = $(DESTDIR)/usr/lib/cgi-bin 8 10 9 11 LIBDIR = $(PREFIX)/share/munin people/ilmari/modularisation-branch/dists/debian/changelog
r864 r1012 1 munin (1.2.3-3) unstable; urgency=medium 2 3 * debian/munin.preinst (removed), debian/munin.postinst, debian/munin.postrm, 4 debian/munin-node.preinst (removed), debian/munin-node.postinst: 5 - Remove all code that handled upgrades from versions earlier than 6 1.2.3-1. In a way this closes: #308008. 7 8 * debian/munin.postrm, debian/munin-node.postrm: 9 - Replace "test -o" bashism with "||". 10 11 * debian/munin-node.cron.d: 12 - Update APT's package index files periodically if the apt_all plugin 13 enabled, too. Patch by Tommi Virtanen, thanks! Closes: #317278. 14 15 * debian/control: 16 - Remove conflict declarations on the old LRRD packages. 17 - Make munin-node suggest ethtool, closes: #311603. 18 - Make Munin depend on rrdtool instead of merely suggesting it. This is 19 a workaround for bug #323975 and its duplicates. 20 - Add a dependency on adduser for both packages. 21 - Increment standards-version to 3.6.2.1, no changes required. 22 23 * debian/munin-node.init, debian/control: 24 - Reimplemented Munin-Node's init script using LSB functions. 25 Closes: #326912, #326913. 26 - Add a dependency on lsb-base for Munin-Node. 27 28 * server/munin-graph.in, debian/control: 29 - Replaced the patch from 1.2.3-2 with the upstream one from SVN revision 30 954. This re-enables support for RRDtool 1.0, so the versioned 31 dependency on librrds-perl is dropped. 32 33 * server/munin-cron.in: 34 - Swallow bogus output from RRDtool, closes: #326061. This is a 35 (hopefully temporary) workaround for bug #325353. 36 37 -- Tore Anderson <tore@debian.org> Sat, 10 Sep 2005 10:58:08 +0200 38 39 munin (1.2.3-2) unstable; urgency=low 40 41 * server/munin-graph.in: 42 - Gave up waiting for the new upstream release, and applied Robert 43 Loomans' patch to make Munin support RRDtool 1.2, closes: #324605, 44 closes: #325280. Thanks, Robert! Note that this breaks compability 45 with RRDtool 1.0. Sarge users should wait for the new upstream release 46 which will support both RRDtool 1.0 and 1.2. 47 48 * debian/control: 49 - Made the munin package depend on librrds-perl in versions 1.2 or above. 50 51 -- Tore Anderson <tore@debian.org> Wed, 31 Aug 2005 09:11:47 +0200 52 53 munin (1.2.3-1) unstable; urgency=medium 54 55 * New upstream release, targeted at Sarge. 56 - Plugin linux/sensors_ now handles yet another form of output from the 57 sensors(1) utility, closes: #300690. 58 - Plugin generic/postfix_mailstats now shouldn't include rejects from 59 the cleanup daemon in the total count, closes: #302220. 60 - Munin-update no longer emits Perl warnings to stdout, closes: #302502. 61 62 * server/munin-limits.in, debian/NEWS: 63 - Apply patch from trunk which redirects all stdout and stderr from the 64 program being run to the log, closes: #301196. The references to this 65 functionality has been corrected in the NEWS file, and also in the 66 example config file. 67 68 * debian/control: 69 - Increment standards-version to 3.6.1.1, no changes required. 70 71 * debian/munin.docs: 72 - Include README-apache-cgi. 73 74 -- Tore Anderson <tore@debian.org> Sun, 03 Apr 2005 02:33:26 +0200 75 76 munin (1.2.2-3) unstable; urgency=high 77 78 * node/munin-node.in: 79 - Fix mis-merge of the optional user patch, restoring per-plugin 80 group setting. Thanks to Andras Korn for reporting and 81 Robert Loomans for patch (Closes: #299589). 82 83 * node/munin-node.in, node/munin-run.in: 84 - Allow root for the per-plugin group directive. 85 86 * Fix autoconf for the linux/nfs* plugins. 87 88 -- Dagfinn Ilmari Mannsaker <ilmari@ilmari.org> Wed, 16 Mar 2005 20:45:15 +0100 89 90 munin (1.2.2-2) unstable; urgency=low 91 92 * node/munin-node.in, node/munin-run.in: 93 - Allow plugins to specify users to run as if present, while falling 94 gracefully back on the default user if the specified user doesn't 95 exists. Patch grabbed from upstream CVS. 96 97 * debian/plugins.conf: 98 - Run the postfix_mailqueue plugin as the postfix user only if it exists. 99 100 -- Tore Anderson <tore@debian.org> Sun, 13 Mar 2005 13:55:36 +0100 101 102 munin (1.2.2-1) unstable; urgency=low 103 104 * New upstream release. 105 - Plugin linux/irqstats now handles blank lines in /proc/interrupts, 106 closes: #296452. 107 - Plugins generic/apache_* could in some cases cause spurious spikes, 108 this has now been fixed. Closes: #296454, #296645. 109 - Plugin linux/df_inode now handles devices with hyphens in their names 110 correctly, closes: #298442. 111 - Plugin generic/exim_mailstats now graphs rejects, closes: #295799. 112 - Earlier versions of munin-update could in some cases complain about 113 "nested quantifiers in regex", now fixed. Closes: #296575. 114 - Fixes some broken HTML in the templates, closes: #296676. 115 - Updates over very slow connections are now handled more gracefully, 116 closes: #298108. 117 118 * debian/rules, debian/plugins.conf, debian/NEWS: 119 - Do not include contrib plugins in the munin-node package anymore. 120 Sort-of closes: #296533, #297451, #297628, #297904, #298895. 121 122 * debian/rules, debian/munin-node.postinst: 123 - Delay startup of the node significantly, as it may require other 124 monitored services (e.g. ntpd) to be already running. Also change the 125 startup time if the package is being upgraded, if the current init 126 configuration is the old package's defaults. Closes: #298793, thanks 127 to Stephen Gran for noticing. 128 129 * debian/plugins.conf: 130 - Run the Courier-MTA and Postfix plugins with necessary additional 131 privileges so they work out of the box, closes: #297654, #296985. 132 Thanks to Charles Fry and Juraj Bednar for pointing this out. 133 - The smart_ plugin is now run as root (which is necessary). 134 135 * debian/control: 136 - Suggest acpi over lm-sensors, and not the other way around as it was 137 earlier. Both the acpi and sensors_ plugins achieve the same thing, 138 but the former is auto while the latter is manual. 139 - Remove the hddtemp suggestion and replace it with smartmontools, 140 closes: #296361. The hddtemp* plugins was replaced with 141 hddtemp_smartctl in 1.2.0. 142 - Suggest python (>= 2.2), used by the smart_ plugin. 143 - A few minor rewrites in the descriptions. 144 145 * debian/munin-node.manpages: 146 - Include munin-node-configure-snmp(8). 147 148 * server/munin-limits.in: 149 - Reverted to upstream version, as the patched required in 1.2.0-1 have 150 been merged. 151 152 -- Tore Anderson <tore@debian.org> Sun, 13 Mar 2005 00:28:49 +0100 153 154 munin (1.2.0-1) unstable; urgency=low 155 156 * New upstream release, closes: #264878, #293499, #290099: 157 - Many plugins have changed type from COUNTER to DERIVE, to avoid 158 spurious spikes when the counters are mistakenly assumed to have 159 wrapped. This change may cause empty graphs to occur, take care to 160 read NEWS.Debian before upgrading the "munin-node" package! 161 Closes: #225623, #233762. 162 - Munin-update no longer truncates long field names, closes: #256370. 163 This may in some cases cause empty graphs, please read NEWS.Debian for 164 more information before upgrading the "munin" package. 165 - Replaces the old Nagios-specific integration with a much more generic 166 framework for sending alerts to wherever you want. As a side effect, 167 this closes: #291168. 168 - Corrects an erroneous commented example in munin.conf, closes: #294060. 169 - The munin-node.conf setting default_plugin_user now actually works as 170 advertised, closes: #295366, #295367. 171 - Plugin generic/bind9 now source its configuration from %ENV, 172 closes: #268142, #272049. 173 - Plugin generic/amavis now autodetects how to correctly invoke logtail, 174 closes: #284638, #288395. 175 - Plugin generic/squid_cache now correctly calculates cache size when 176 using multiple cache directories, closes: #288579. 177 - Plugin generic/postfix_mailstats now defaults to reading from a more 178 correct log file, closes: #291720. 179 - Plugin generic/postfix_mailstats now correctly identifies the reject 180 code as newer Postfix versions logs them, closes: #292110. 181 - Plugin generic/postfix_mailvolume now has a improved graph_title (that 182 is not the same as the title of generic/postfix_mailstats). 183 Closes: #292083. 184 - Plugin generic/named now defaults to reading from a more correct log 185 file, closes: #291849. 186 - Plugin linux/fw_forwarded_local now correctly reports 0 instead of 187 NaN in some situations, closes: #284673. 188 - Plugin linux/iostat now ingores devices that have had no I/O operations 189 whatsoever and thus are assumed to be unused, closes: #267195. 190 - New plugin: linux/forks. Closes: #225638. 191 - New plugin: linux/uptime. Closes: #283622. 192 - New plugin: linux/irqstats. Closes: #224990. 193 - New plugin: generic/courier_. Closes: #291854. 194 - New plugin: generic/perdition. Closes: #291855. 195 196 * debian/NEWS: 197 - Document the changes that may lead to data loss when upgrading from 198 Munin 1.0.x, and also write a bit about the new munin-limits framework. 199 200 * debian/control: 201 - Add dependency on perl-modules (>= 5.8.0) | libparse-recdescent-perl 202 for the main munin package, as munin-limits requires Text::Balanced. 203 - Add libdate-manip-perl as a recommended package for the munin package, 204 as the new CGI functionality depends on it. 205 - Change libnet-snmp-perl to be a recommended package for munin-node 206 instead of only suggested, as the new munin-node-configure-snmp 207 requires it. 208 209 * debian/Makefile.config: 210 - Install the new CGI in /usr/lib/cgi-bin/, as mandated by the Debian 211 Policy Manual. 212 213 * debian/munin.cron.d, debian/munin.manpages, debian/munin.logrotate, 214 debian/munin.postrm: 215 - The new upstream release includes "munin-limits", which supersede 216 "munin-nagios". Update the installed manual pages, cron jobs, 217 logrotate configuration, and purge script accordingly. 218 219 * debian/plugins.conf: 220 - Plugin linux/fw_conntrack is now run as root as this file recently has 221 changed to not be world readable, closes: #291226. 222 - Plugin linux/if_ is now run as root in order to probe the speed of the 223 network interface. 224 225 * debian/munin.postinst, debian/munin-node.postinst, debian/munin.postrm, 226 debian/munin-node.postrm: 227 - Use dpkg-statoverride to handle the permissions on the data and log 228 directories. 229 230 * server/munin-limits.in: 231 - Change lock file directory to match that of munin-update, munin-graph, 232 and munin-html (grabbed from upstream CVS). 233 - Fix a string comparsions where the "==" operator was used instead of 234 "eq" (grabbed from upstream CVS). 235 236 * debian/munin.postinst: 237 - Only change user and group ownership on the data files from "lrrd" to 238 "munin" when the package is first installed, not on every upgrade. 239 240 -- Tore Anderson <tore@debian.org> Mon, 21 Feb 2005 00:16:25 +0100 241 242 munin (1.0.5-1) unstable; urgency=low 243 244 * New upstream release: 245 - Expands @@ macros in man pages, closes: #286399. 246 - Fixes bug in munin-run %ENV untainting, closes: #285173. 247 - Fixes template variable escaping and other XHTML errors, closes: #287435 248 (based on patch by Tommi Virtanen <tv@debian.org>). 249 - hddtemp plugin calls hddtemp -n to avoid having to parse its output, 250 closes: #282021. 251 * Add Suggests: for programs and perl modules needed by plugins but not 252 the services they monitor, closes: #272148, #270090. 253 254 -- Dagfinn Ilmari Mannsaker <ilmari@ilmari.org> Wed, 5 Jan 2005 23:47:16 +0100 255 256 munin (1.0.4-1) unstable; urgency=low 257 258 * New upstream release. 259 260 -- Tore Anderson <tore@debian.org> Sun, 5 Dec 2004 16:54:19 +0100 261 262 munin (1.0.3-1) unstable; urgency=low 263 264 * New upstream release: 265 - Fixes typo in linux/fw_forwarded_local, closes: #275535. 266 - Fixes typo in linux/fw_packets, closes: #275537. 267 - Plugin generic/acpi now autodetects correctly even if the acpi version 268 does not contain the acpi_available program, closes: #275538. 269 270 * debian/plugins.conf: 271 - Run the spamstats plugin with the group adm, closes: #278765. 272 - Sorted the entries alphabetically. 273 274 -- Tore Anderson <tore@debian.org> Mon, 1 Nov 2004 21:56:41 +0100 275 276 munin (1.0.2-1) unstable; urgency=low 277 278 * New upstream release, fixing the follwing: 279 - munin-graph spews uninitialized value in concatenation [precedence 280 error], thanks to Don Armstrong (Closes: #267185). 281 * Run the hddtemp plugins as root, write access to the device isn't 282 enough. 283 284 -- Dagfinn Ilmari Mannsaker <ilmari@ilmari.org> Wed, 1 Sep 2004 09:32:42 +0200 285 286 munin (1.0.1-1) unstable; urgency=low 287 288 * New upstream release, fixing the following: 289 - [munin-graph/1.0] multiple .negative options is broken, 290 thanks to Andre TOmt (Closes: #250982). 291 - [plugin:hddtemp2/1.0] Must run under "C" locale (Closes: #253497). 292 - munin-node: LANG-dependant behaviour changes (Closes: #255312). 293 - [plugin:sensors_temp/1.0] Omits temperature values without 294 max and/or hysteresis value(s), thanks to Elmar Hoffmann 295 (Closes: #256380). 296 - [plugin:sensors_volt/1.0] Omits negative voltages, thanks to Elmar 297 Hoffmann (Closes: #256734). 298 - [plugin:ipac_ng/1.0] Syntax error, thanks to Stefani 299 Banerian (Closes: #264714). 300 - [plugin:hddtemp2/1.0] Ignores env.ignore (it's not supposed 301 to, really! :), thanks to Michel Meyers (Closes: #265022). 302 - munin-node: plugin iostat_ios has improper magic file 303 marker, thanks to Micah Anderson (Closes: #262708). 304 * Set Maintainer: to the Munin team address. 305 * Add Tore Anderson and myself to Uploaders: 306 * Make the hddtemp plugins run as group "disk" to ensure access to the 307 disks. 308 309 -- Dagfinn Ilmari Mannsaker <ilmari@ilmari.org> Wed, 18 Aug 2004 20:55:27 +0200 310 311 munin (1.0.0-1) unstable; urgency=low 312 313 * New upstream release. 314 315 -- Tore Anderson <tore@debian.org> Sun, 18 Jul 2004 13:19:31 +0200 316 1 317 munin (0+1.0.0pre5-1) unstable; urgency=low 2 318 people/ilmari/modularisation-branch/dists/debian/control
r864 r1012 2 2 Section: net 3 3 Priority: optional 4 Maintainer: Tore Anderson <tore@debian.org> 4 Maintainer: Munin Debian Maintainers <munin-deb-maint@linpro.no> 5 Uploaders: Tore Anderson <tore@debian.org>, Dagfinn Ilmari Mannsaker <ilmari@ilmari.org> 5 6 Build-Depends-Indep: debhelper (>> 4.0.0), perl, htmldoc, html2text 6 Standards-Version: 3.6. 1.07 Standards-Version: 3.6.2.1 7 8 8 9 Package: munin-node 9 10 Architecture: all 10 Depends: ${perl:Depends}, libnet-server-perl, procps 11 Suggests: munin 12 Conflicts: lrrd-client (<= 0.9.9r5-1) 13 Description: Network-wide graphing framework (node)11 Depends: ${perl:Depends}, libnet-server-perl, procps, adduser, lsb-base 12 Recommends: libnet-snmp-perl 13 Suggests: munin, libwww-perl, libnet-irc-perl, mysql-client, smartmontools, acpi | lm-sensors, python (>= 2.2), ethtool 14 Description: network-wide graphing framework (node) 14 15 Munin is a highly flexible and powerful solution used to create graphs of 15 16 virtually everything imaginable throughout your network, while still 16 17 maintaining a rattling ease of installation and configuration. 17 18 . 18 This package contains node software. You should install it on all the nodes19 in your network. It will know how to extract all sorts of data from the20 node it runs on, and will wait for the gatherer to request this data for21 further processing.19 This package contains the daemon for the nodes being monitored. You should 20 install it on all the nodes in your network. It will know how to extract all 21 sorts of data from the node it runs on, and will wait for the gatherer to 22 request this data for further processing. 22 23 . 23 It includes a range of plugins capable of extracting common values such as 24 cpu usage, network usage, load average, and so on. Creating your own plugins25 which are capable of extracting other system-specific values is very easy,26 and is often done in a matter of minutes. You can also create plugins which27 relay information from other devices in your network that can't run Munin,28 s uch as a switch or a server running another operating system, by using29 SNMP or similartechnology.24 It includes a range of plugins capable of extracting common values such as cpu 25 usage, network usage, load average, and so on. Creating your own plugins which 26 are capable of extracting other system-specific values is very easy, and is 27 often done in a matter of minutes. You can also create plugins which relay 28 information from other devices in your network that can't run Munin, such as a 29 switch or a server running another operating system, by using SNMP or similar 30 technology. 30 31 . 31 32 Munin is written in Perl, and relies heavily on Tobi Oetiker's excellent … … 35 36 Package: munin 36 37 Architecture: all 37 Depends: ${perl:Depends}, librrds-perl, libhtml-template-perl, libdigest-md5-perl, libtime-hires-perl, libstorable-perl 38 Recommends: munin-node 39 Suggests: rrdtool, www-browser, httpd 40 Conflicts: lrrd-server (<= 0.9.9r5-1) 41 Description: Network-wide graphing framework (grapher/gatherer) 38 Depends: ${perl:Depends}, perl-modules (>= 5.8.0) | libparse-recdescent-perl, librrds-perl, libhtml-template-perl, libdigest-md5-perl, libtime-hires-perl, libstorable-perl, rrdtool, adduser 39 Recommends: munin-node, libdate-manip-perl 40 Suggests: www-browser, httpd 41 Description: network-wide graphing framework (grapher/gatherer) 42 42 Munin is a highly flexible and powerful solution used to create graphs of 43 43 virtually everything imaginable throughout your network, while still … … 51 51 It is also able to alert you if any value is outside of a preset boundary, 52 52 useful if you want to be alerted if a filesystem is about to grow full, for 53 instance. Currently you can only do this by letting Munin send messages to54 a Nagios server.53 instance. You can do this by making Munin run an arbitrary command when you 54 need to be alert it, or make use of the intrinsic Nagios support. 55 55 . 56 56 Munin is written in Perl, and relies heavily on Tobi Oetiker's excellent people/ilmari/modularisation-branch/dists/debian/munin-node.cron.d
r864 r1012 9 9 # happen), but ensure that there will never be more than two hour (7200 10 10 # seconds) interval between updates.. 11 */5 * * * * root [ -x /etc/munin/plugins/apt ] && /etc/munin/plugins/apt update 7200 12 >/dev/null 12 */5 * * * * root [ -x /etc/munin/plugins/apt_all ] && /etc/munin/plugins/apt_all update 7200 12 >/dev/null 2>&1 11 */5 * * * * root if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi 13 12 people/ilmari/modularisation-branch/dists/debian/munin-node.init
r864 r1012 1 #! /bin/ sh1 #! /bin/bash 2 2 3 3 PATH=/sbin:/bin:/usr/sbin:/usr/bin 4 4 DAEMON=/usr/sbin/munin-node 5 NAME=munin-node6 5 PIDFILE=/var/run/munin/munin-node.pid 6 CONFFILE=/etc/munin/munin-node.conf 7 7 8 test -f $DAEMON || exit 0 8 # log_daemon_msg() and log_progress_msg() isn't present in present in Sarge. 9 # Below is a copy of them from lsb-base 3.0-5, for the convenience of back- 10 # porters. If the installed version of lsb-base provides these functions, 11 # they will be used instead. 9 12 10 set -e 13 log_daemon_msg () { 14 if [ -z "$1" ]; then 15 return 1 16 fi 11 17 12 is_running() { 13 if [ -e $PIDFILE ]; then 14 if kill -0 $(cat $PIDFILE) &>/dev/null; then 15 return 0 16 fi 17 elif pgrep -f "^$DAEMON\$" >/dev/null; then 18 return 0 18 if [ -z "$2" ]; then 19 echo -n "$1:" 20 return 21 fi 22 23 echo -n "$1: $2" 24 } 25 26 log_progress_msg () { 27 if [ -z "$1" ]; then 28 return 1 29 fi 30 echo -n " $@" 31 } 32 33 . /lib/lsb/init-functions 34 35 if [ ! -x $DAEMON ]; then 36 log_failure_msg "Munin-Node appears to be uninstalled." 37 exit 5 38 elif [ ! -e $CONFFILE ]; then 39 log_failure_msg "Munin-Node appears to be unconfigured." 40 exit 6 41 fi 42 43 # Figure out if the pid file is in a non-standard location 44 while read line; do 45 line=${line%%\#*} # get rid of comments 46 set -f 47 line=$(echo $line) # get rid of extraneous blanks 48 set +f 49 if [ "$line" != "${line#pid_file }" ]; then 50 PIDFILE=${line#pid_file } 19 51 fi 20 return 1 52 done < $CONFFILE 53 54 verify_superuser() { 55 action=$1 56 # dash/ash do not provide $EUID, set it explicitly if not 57 # I can't find any way of avoiding a fork in these 58 # shells - drop me an email if you've got any suggestions 59 [ -z "$EUID" ] && EUID=$(id -u) 60 [ $EUID -eq 0 ] && return 61 log_failure_msg "Superuser privileges required for the" \ 62 "\"$action\" action." 63 exit 4 64 } 65 66 start() { 67 log_daemon_msg "Starting Munin-Node" 68 if pidofproc -p $PIDFILE $DAEMON >/dev/null; then 69 log_progress_msg "started beforehand" 70 log_end_msg 0 71 exit 0 72 fi 73 start_daemon -p $PIDFILE $DAEMON 74 ret=$? 75 # start_daemon() isn't thorough enough, ensure the daemon has been 76 # started manually 77 attempts=0 78 until pidofproc -p $PIDFILE $DAEMON >/dev/null; do 79 attempts=$(( $attempts + 1 )) 80 sleep 0.05 81 [ $attempts -lt 20 ] && continue 82 log_end_msg 1 83 return 1 84 done 85 [ $ret -eq 0 ] && log_progress_msg "done" 86 log_end_msg $ret 87 return $ret 21 88 } 22 89 23 90 stop() { 24 echo -n "Stopping munin-node: " 25 if ! is_running; then 26 echo "not running." 27 return 0 28 fi 29 start-stop-daemon --stop --oknodo --pidfile $PIDFILE 30 sleep 1 31 if is_running; then 32 echo -n "waiting.." 33 if ! (sleep 2; is_running); then 34 echo "done." 91 log_daemon_msg "Stopping Munin-Node" 92 # killproc() doesn't try hard enough if the pid file is missing, 93 # so create it is gone and the daemon is still running 94 if [ ! -r $PIDFILE ]; then 95 pid=$(pidofproc -p $PIDFILE $DAEMON) 96 if [ -z "$pid" ]; then 97 log_progress_msg "stopped beforehand" 98 log_end_msg 0 35 99 return 0 36 100 fi 37 echo -n "failed, trying with signals.." 38 pkill -15 -f "^$DAEMON\$" 39 echo -n "SIGTERM.." 40 sleep 1 41 if ! is_running; then 42 echo "done." 43 return 0 101 echo $pid 2>/dev/null > $PIDFILE 102 if [ $? -ne 0 ]; then 103 log_end_msg 1 104 return 1 44 105 fi 45 WAIT=546 echo -n "SIGKILL.."47 pkill -9 -f "^$DAEMON\$"48 while [ $WAIT -ge 0 ] && sleep 1; do49 if ! is_running; then50 echo "done."51 return 052 fi53 WAIT=$(( WAIT - 1 ))54 echo -n "."55 done56 echo "FAILED!"57 exit 158 106 fi 59 echo "done." 107 # This may look strange, but because start-stop-daemon looks at 108 # /proc/pid/exe I need to specify /usr/bin/perl as the "daemon" 109 killproc -p $PIDFILE /usr/bin/perl 110 ret=$? 111 # killproc() isn't thorough enough, ensure the daemon has been 112 # stopped manually 113 attempts=0 114 until ! pidofproc -p $PIDFILE $DAEMON >/dev/null; do 115 attempts=$(( $attempts + 1 )) 116 sleep 0.05 117 [ $attempts -lt 20 ] && continue 118 log_end_msg 1 119 return 1 120 done 121 [ $ret -eq 0 ] && log_progress_msg "done" 122 log_end_msg $ret 123 return $ret 60 124 } 61 125 62 start() { 63 echo -n "Starting munin-node: " 64 if is_running; then 65 echo "already running." 66 exit 0 67 fi 68 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON 69 if is_running; then 70 echo "done." 71 return 0 72 fi 73 if ! (sleep 2; is_running); then 74 echo "FAILED!" 75 exit 1 76 fi 77 } 78 126 if [ "$#" -ne 1 ]; then 127 log_failure_msg "Usage: /etc/init.d/munin-node" \ 128 "{start|stop|restart|force-reload|try-restart}" 129 exit 2 130 fi 131 79 132 case "$1" in 80 133 start) 134 verify_superuser $1 81 135 start 136 exit $? 82 137 ;; 83 138 stop) 139 verify_superuser $1 84 140 stop 141 exit $? 85 142 ;; 86 143 restart|force-reload) 87 stop 144 verify_superuser $1 145 stop || exit $? 88 146 start 147 exit $? 89 148 ;; 149 try-restart) 150 verify_superuser $1 151 pidofproc -p $PIDFILE $DAEMON >/dev/null 152 if [ $? -eq 0 ]; then 153 stop || exit $? 154 start 155 exit $? 156 fi 157 log_success_msg "Munin-Node was stopped beforehand and thus not" \ 158 "restarted." 159 exit 0 160 ;; 161 reload) 162 log_failure_msg "The \"reload\" action is not implemented." 163 exit 3 164 ;; 165 status) 166 pid=$(pidofproc -p $PIDFILE $DAEMON) 167 ret=$? 168 pid=${pid% } # pidofproc() supplies a trailing space, strip it 169 if [ $ret -eq 0 ]; then 170 log_success_msg "Munin-Node is running (PID: $pid)" 171 exit 0 172 # the LSB specifies that I in this case (daemon dead + pid file exist) 173 # should return 1, so why init-functions use 2 I don't know. whatever. 174 elif [ $ret -eq 2 ]; then 175 log_failure_msg "Munin-Node is dead, although $PIDFILE exists." 176 exit 1 177 elif [ $ret -eq 3 ]; then 178 log_warning_msg "Munin-Node is not running." 179 exit 3 180 fi 181 log_warning_msg "Munin-Node status unknown." 182 exit 4 183 ;; 90 184 *) 91 N=/etc/init.d/$NAME92 echo "Usage: $N {start|stop|restart|force-reload}" >&293 exit 1185 log_failure_msg "Usage: /etc/init.d/munin-node" \ 186 "{start|stop|restart|force-reload|try-restart}" 187 exit 2 94 188 ;; 95 189 esac 96 190 97 exit 0 191 log_failure_msg "Unexpected failure, please file a bug." 192 exit 1 people/ilmari/modularisation-branch/dists/debian/munin-node.manpages
r864 r1012 2 2 build/doc/munin-node.8 3 3 build/doc/munin-node-configure.8 4 build/doc/munin-node-configure-snmp.8 4 5 build/doc/munin-run.8 people/ilmari/modularisation-branch/dists/debian/munin-node.postinst
r864 r1012 12 12 13 13 fixperms() { 14 chown munin:adm /var/log/munin 15 chmod 0750 /var/log/munin 16 17 chown munin:root /var/run/munin 18 chmod 0755 /var/run/munin 19 20 chown munin:munin /var/lib/munin 21 chmod 0755 /var/lib/munin 22 23 chown munin:munin /var/lib/munin/plugin-state 24 chmod 0775 /var/lib/munin/plugin-state 14 dpkg-statoverride --list /var/log/munin >/dev/null || \ 15 dpkg-statoverride --update --add munin adm 0750 /var/log/munin 16 dpkg-statoverride --list /var/run/munin >/dev/null || \ 17 dpkg-statoverride --update --add munin root 0755 /var/run/munin 18 dpkg-statoverride --list /var/lib/munin >/dev/null || \ 19 dpkg-statoverride --update --add munin munin 0755 /var/lib/munin 20 dpkg-statoverride --list /var/lib/munin/plugin-state >/dev/null || \ 21 dpkg-statoverride --update --add munin munin 0775 /var/lib/munin/plugin-state 25 22 } 26 23 people/ilmari/modularisation-branch/dists/debian/munin-node.postrm
r864 r1012 22 22 rm -f /var/log/munin/munin-node.log* 23 23 24 dpkg-statoverride --remove /var/lib/munin/plugin-state 25 26 # These are shared with munin, so only remove them if munin 27 # isn't installed (or already purged). 28 status=$(dpkg --get-selections munin) 29 if [ -z "$status" ] || [ "${status%purge}" != "$status" ]; then 30 dpkg-statoverride --remove /var/log/munin 31 dpkg-statoverride --remove /var/run/munin 32 dpkg-statoverride --remove /var/lib/munin 33 fi 34 24 35 delete_dir_if_empty /var/lib/munin/plugin-state 25 36 delete_dir_if_empty /var/lib/munin people/ilmari/modularisation-branch/dists/debian/munin.cron.d
r864 r1012 6 6 7 7 */5 * * * * munin if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi 8 10 10 * * * munin if [ -x /usr/share/munin/munin- nagios ]; then /usr/share/munin/munin-nagios --removeok; fi8 10 10 * * * munin if [ -x /usr/share/munin/munin-limits ]; then /usr/share/munin/munin-limits --force --contact nagios --contact old-nagios; fi people/ilmari/modularisation-branch/dists/debian/munin.docs
r864 r1012 1 1 build/doc/munin-faq.* 2 2 build/doc/munin-doc.* 3 build/README-apache-cgi people/ilmari/modularisation-branch/dists/debian/munin.logrotate
r864 r1012 26 26 } 27 27 28 /var/log/munin/munin- nagios.log {28 /var/log/munin/munin-limits.log { 29 29 daily 30 30 missingok people/ilmari/modularisation-branch/dists/debian/munin.manpages
r864 r1012 2 2 build/doc/munin-graph.8 3 3 build/doc/munin-html.8 4 build/doc/munin- nagios.84 build/doc/munin-limits.8 5 5 build/doc/munin-update.8 6 6 build/doc/munin.conf.5 people/ilmari/modularisation-branch/dists/debian/munin.postinst
r864 r1012 2 2 3 3 set -e 4 5 prevver="$2" 4 6 5 7 add_munin_system_user() { … … 11 13 12 14 fixperms() { 13 chown munin:adm /var/log/munin 14 chmod 0750 /var/log/munin 15 16 chown munin:root /var/run/munin 17 chmod 0755 /var/run/munin 18 19 chown munin:munin /var/www/munin 20 chmod 0755 /var/www/munin 21 22 chown munin:munin /var/lib/munin 23 chmod 0755 /var/lib/munin 24 25 # Upgrading from LRRD, yes? 26 # This'll generate a lot of chmod/grp's on 27 # the dirs, but what the hell.. 28 if getent passwd lrrd >/dev/null; then 29 for f in $(find /var/lib/munin -user lrrd); do 30 chown munin $f ${f%/*} 31 done 32 fi 33 if getent group lrrd >/dev/null; then 34 for f in $(find /var/lib/munin -group lrrd); do 35 chgrp munin $f ${f%/*} 36 done 37 fi 15 dpkg-statoverride --list /var/log/munin >/dev/null || \ 16 dpkg-statoverride --update --add munin adm 0750 /var/log/munin 17 dpkg-statoverride --list /var/run/munin >/dev/null || \ 18 dpkg-statoverride --update --add munin root 0755 /var/run/munin 19 dpkg-statoverride --list /var/www/munin >/dev/null || \ 20 dpkg-statoverride --update --add munin munin 0755 /var/www/munin 21 dpkg-statoverride --list /var/lib/munin >/dev/null || \ 22 dpkg-statoverride --update --add munin munin 0755 /var/lib/munin 38 23 } 39 24 people/ilmari/modularisation-branch/dists/debian/munin.postrm
r864 r1012 16 16 17 17 rm -f /var/lib/munin/datafile 18 rm -f /var/lib/munin/limits 18 19 rm -f /var/lib/munin/*.stats 19 20 rm -f /var/lib/munin/*/*.ok … … 23 24 rm -f /var/log/munin/munin-graph.log* 24 25 rm -f /var/log/munin/munin-html.log* 25 rm -f /var/log/munin/munin-nagios.log* 26 rm -f /var/log/munin/munin-limits.log* 27 28 dpkg-statoverride --remove /var/www/munin 29 30 # These are shared with munin-node, so only remove them if munin-node 31 # isn't installed (or already purged). 32 status=$(dpkg --get-selections munin-node) 33 if [ -z "$status" ] || [ "${status%purge}" != "$status" ]; then 34 dpkg-statoverride --remove /var/log/munin 35 dpkg-statoverride --remove /var/run/munin 36 dpkg-statoverride --remove /var/lib/munin 37 fi 26 38 27 39 delete_dir_if_empty /var/www/munin people/ilmari/modularisation-branch/dists/debian/plugins.conf
r864 r1012 9 9 # care about. 10 10 11 [apt] 12 user root 13 14 [courier_mta_mailqueue] 15 group daemon 16 17 [courier_mta_mailstats] 18 group adm 19 20 [courier_mta_mailvolume] 21 group adm 22 23 [cps*] 24 user root 25 26 [exim_mailqueue] 27 group mail, (Debian-exim) 28 29 [exim_mailstats] 30 group mail, adm 31 32 [fw_conntrack] 33 user root 34 35 [hddtemp_smartctl] 36 user root 37 38 [if_*] 39 user root 40 41 [if_err_*] 42 user nobody 43 11 44 [mysql*] 12 45 user root 13 46 env.mysqlopts --defaults-extra-file=/etc/mysql/debian.cnf 14 47 15 [ exim_mailstats]16 group mail, adm 48 [postfix_mailqueue] 49 user (postfix) 17 50 18 [ exim_mailqueue]19 group mail, (Debian-exim)51 [postfix_mailstats] 52 group adm 20 53 21 [ cps*]22 user root 54 [postfix_mailvolume] 55 group adm 23 56 24 [ apt]57 [smart_*] 25 58 user root 26 59 people/ilmari/modularisation-branch/dists/debian/rules
r864 r1012 3 3 export DH_VERBOSE= 4 4 5 MAKEOPTS = CONFIG=debian/Makefile.config 5 MAKEOPTS = CONFIG=debian/Makefile.config INSTALL_PLUGINS="auto manual snmpauto" 6 6 7 7 build: build-stamp … … 40 40 dh_installchangelogs ChangeLog 41 41 dh_installman 42 dh_installinit 42 dh_installinit -- "defaults 98 20" 43 43 dh_installcron 44 44 dh_installlogrotate people/ilmari/modularisation-branch/dists/freebsd/munin-main/Makefile
r864 r1012 3 3 # Whom: Lupe Christoph <lupe@lupe-christoph.de> 4 4 # 5 # $FreeBSD: ports/sysutils/munin-main/Makefile,v 1. 6 2004/11/16 13:39:54 vsExp $5 # $FreeBSD: ports/sysutils/munin-main/Makefile,v 1.7 2004/12/14 01:43:10 sem Exp $ 6 6 # 7 7 8 8 PORTNAME= munin 9 PORTVERSION= 1. 1.79 PORTVERSION= 1.2.2 10 10 CATEGORIES= sysutils perl5 11 11 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} 12 12 MASTER_SITE_SUBDIR= munin 13 13 PKGNAMESUFFIX= -main 14 DISTNAME= ${PORTNAME}_${PORTVERSION:S/. p/pre/}14 DISTNAME= ${PORTNAME}_${PORTVERSION:S/.r/rc/} 15 15 16 16 MAINTAINER= lupe@lupe-christoph.de … … 34 34 USE_GMAKE= yes 35 35 PATCH_STRIP= -p1 36 WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/. p/pre/}36 WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.r/rc/} 37 37 PKGMESSAGE= ${WRKDIR}/pkg-message 38 38 ALL_TARGET= DATADIR=${DATADIR} PERL=${PERL} build build-man … … 42 42 MAN8= munin-cron.8 munin-graph.8 munin-html.8 munin-limits.8 munin-update.8 43 43 44 SUB_FILES=pkg-message 45 44 46 pre-install: 45 @${SED} 's@%%PREFIX%%@${PREFIX}@g' ${FILESDIR}/pkg-message > ${PKGMESSAGE}46 47 @PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL 47 @mkdir -p ${PREFIX}/www/cgi-bin48 48 49 49 post-install: … … 56 56 done 57 57 @DATADIR=${DATADIR} PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} POST-INSTALL 58 @${CHOWN} munin /var/log/munin-main 59 @${CHGRP} munin /var/run/munin /var/log/munin-main ${PREFIX}/www/data/munin ${PREFIX}/var/munin 58 60 @${CAT} ${PKGMESSAGE} 59 61 people/ilmari/modularisation-branch/dists/freebsd/munin-main/distinfo
r864 r1012 1 MD5 (munin_1. 1.7.tar.gz) = b9dbe4da7ed0e7613e896b51a22b79332 SIZE (munin_1. 1.7.tar.gz) = 2883681 MD5 (munin_1.2.2.tar.gz) = e55ff3cc8d506558f32598f639952cca 2 SIZE (munin_1.2.2.tar.gz) = 325356 people/ilmari/modularisation-branch/dists/freebsd/munin-main/pkg-deinstall
r864 r1012 1 1 #! /bin/sh 2 #3 # $Log$4 # Revision 1.5 2004/11/28 12:50:41 lupe5 # Update to 1.1.7.6 # Put distributed config in *.sample.7 # Remove unchanged configs on deinstall.8 # Add FreeBSD-specific plugins.conf.9 # Move munin-main logfiles to /var/log/munin-main.10 # Update /etc/newsyslog.conf to automatically rotate logfiles.11 # Pass system-wide Perl path to Munin Makefile.12 # Patch default path for Python.13 # Patch ping_ to get it to work on FreeBSD.14 # Patch sendmail_mailtraffic to get it to autoconfigure.15 #16 #17 2 18 3 ask() { people/ilmari/modularisation-branch/dists/freebsd/munin-main/pkg-install
r864 r1012 1 1 #! /bin/sh 2 #3 # $Log$4 # Revision 1.6 2004/11/28 12:50:41 lupe5 # Update to 1.1.7.6 # Put distributed config in *.sample.7 # Remove unchanged configs on deinstall.8 # Add FreeBSD-specific plugins.conf.9 # Move munin-main logfiles to /var/log/munin-main.10 # Update /etc/newsyslog.conf to automatically rotate logfiles.11 # Pass system-wide Perl path to Munin Makefile.12 # Patch default path for Python.13 # Patch ping_ to get it to work on FreeBSD.14 # Patch sendmail_mailtraffic to get it to autoconfigure.15 #16 #17 2 18 3 ask() { … … 84 69 } 85 70 86 make_directories() {87 for dir in ${PKG_PREFIX}/www/data/munin \88 ${PKG_PREFIX}/var/munin \89 /var/run/munin /var/log/munin-main; do90 mkdir -p $dir91 chown munin:munin $dir92 done93 }94 95 71 create_crontab_entries() { 96 72 local b e … … 128 104 PRE-INSTALL) 129 105 make_account munin munin "Munin owner" 130 make_directories131 106 ;; 132 107 POST-INSTALL) people/ilmari/modularisation-branch/dists/freebsd/munin-main/pkg-plist
r864 r1012 1 @exec mkdir -p /var/run/munin && chown munin:munin /var/run/munin 2 @exec mkdir -p /var/log/munin-main && chown munin:munin /var/log/munin-main 3 @exec mkdir -p %D/www/data/munin && chown munin:munin %D/www/data/munin 4 @exec mkdir -p %D/var/munin && chown munin:munin %D/var/munin 1 5 bin/munin-cron 2 6 @unexec if cmp -s %D/etc/munin/templates/style.css %D/www/data/munin/style.css; then rm -f %D/www/data/munin/style.css; fi … … 15 19 etc/munin/templates/munin-serviceview.tmpl 16 20 etc/munin/templates/style.css 17 @comment PREFIX trouble when testing 18 @unexec rm -f `perl -V:sitelib | cut -d= -f2 | sed "s/[\';]//g"`/Munin.pm 21 %%SITE_PERL%%/Munin.pm 19 22 share/munin/munin-graph 20 23 share/munin/munin-html … … 24 27 @unexec rm -f /var/run/munin/munin-*.lock 25 28 @unexec rmdir /var/run/munin 2>/dev/null || true 29 @unexec rmdir /var/log/munin-main 2>/dev/null || true 26 30 @unexec rmdir %D/www/data/munin 2>/dev/null || true 27 31 @unexec rmdir %D/www/data 2>/dev/null || true … … 35 39 @unexec echo "If you want to *completely* remove munin-main, you have to" 36 40 @unexec echo 37 @unexec echo " rm -rf %D/www/data/munin \\"38 @unexec ls -d /usr/local/var/munin/* | grep -v plugin-state | fmt -40 | sed -e 's/^/ /' -e 's/$/ \\/'41 @unexec if [ -d %D/www/data/munin ]; then echo " rm -rf %D/www/data/munin \\"; fi 42 @unexec if [ -d %D/var/munin ]; then ls -d %D/var/munin/* | grep -v plugin-state | fmt -40 | sed -e 's/^/ /' -e 's/$/ \\/'; fi 39 43 @unexec if [ -f %D/etc/munin/munin.conf ]; then echo " %D/etc/munin/munin.conf \\"; fi 40 44 @unexec if [ -d %D/etc/munin/templates ]; then echo " %D/etc/munin/templates \\"; fi people/ilmari/modularisation-branch/dists/freebsd/munin-node/Makefile
r864 r1012 3 3 # Whom: Lupe Christoph <lupe@lupe-christoph.de> 4 4 # 5 # $FreeBSD: ports/sysutils/munin-node/Makefile,v 1.1 0 2004/11/16 15:16:37 leeym Exp $5 # $FreeBSD: ports/sysutils/munin-node/Makefile,v 1.12 2004/12/14 01:43:10 sem Exp $ 6 6 # 7 7 8 8 PORTNAME= munin 9 PORTVERSION= 1. 1.79 PORTVERSION= 1.2.2 10 10 CATEGORIES= sysutils perl5 11 11 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} 12 12 MASTER_SITE_SUBDIR= munin 13 13 PKGNAMESUFFIX= -node 14 DISTNAME= ${PORTNAME}_${PORTVERSION:S/. p/pre/}14 DISTNAME= ${PORTNAME}_${PORTVERSION:S/.r/rc/} 15 15 16 16 MAINTAINER= lupe@lupe-christoph.de … … 22 22 .include <bsd.port.pre.mk> 23 23 24 .if ${OSVERSION} < 500000 25 RUN_DEPENDS= ${LOCALBASE}/etc/rc.subr:${PORTSDIR}/sysutils/rc_subr 26 .endif 27 24 28 .if ${PERL_LEVEL} < 500800 25 29 RUN_DEPENDS+= ${SITE_PERL}/Net/Domain.pm:${PORTSDIR}/net/p5-Net … … 28 32 USE_GMAKE= yes 29 33 PATCH_STRIP= -p1 30 WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/. p/pre/}34 WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.r/rc/} 31 35 PKGMESSAGE= ${WRKDIR}/pkg-message 32 36 ALL_TARGET= DATADIR=${DATADIR} PERL=${PERL} build build-man 33 INSTALL_TARGET= DATADIR=${DATADIR} PERL=${PERL} install-node install-node-plugins37 INSTALL_TARGET= DATADIR=${DATADIR} PERL=${PERL} INSTALL_PLUGINS="auto manual snmpauto" install-node install-node-plugins 34 38 MAKE_ENV= LANG=C 35 39 … … 37 41 MAN8= munin-node-configure.8 munin-node.8 munin-run.8 38 42 39 .if ${OSVERSION} < 500000 40 PKGMSG=${FILESDIR}/pkg-message.4 41 STARTSTOP_SRC=${FILESDIR}/munin-node.sh 42 STARTSTOP_DST=${PREFIX}/etc/rc.d/munin-node.sh 43 .else 44 PKGMSG=${FILESDIR}/pkg-message 45 STARTSTOP_SRC=${FILESDIR}/munin_node.sh 46 STARTSTOP_DST=/etc/rc.d/munin_node 47 .endif 43 SUB_FILES= pkg-message munin-node.sh munin-node-revive.sh 44 SUB_LIST= RC_SUBR=${RC_SUBR} 45 USE_RC_SUBR= YES 48 46 49 47 pre-install: 50 @${SED} 's@%%PREFIX%%@${PREFIX}@g' ${PKGMSG} > ${PKGMESSAGE}51 48 @PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL 52 49 53 50 post-install: 54 @${SED} 's@%PREFIX%@${LOCALBASE}@g' ${STARTSTOP_SRC} > ${STARTSTOP_DST} 55 @${CHMOD} +x ${STARTSTOP_DST} 56 @${INSTALL_DATA} ${WRKSRC}/build/node/munin-node.conf ${PREFIX}/etc/munin/munin-node.conf.sample 57 @${INSTALL_DATA} files/plugins.conf ${PREFIX}/etc/munin/plugin-conf.d/plugins.conf.sample 51 ${INSTALL_SCRIPT} ${WRKDIR}/munin-node.sh ${PREFIX}/etc/rc.d/munin-node.sh 52 .if ${PERL_LEVEL} < 500800 53 ${INSTALL_SCRIPT} ${WRKDIR}/munin-node-revive.sh ${PREFIX}/bin/munin-node-revive 54 .endif 55 ${INSTALL_DATA} ${WRKSRC}/build/node/munin-node.conf ${PREFIX}/etc/munin/munin-node.conf.sample 56 ${INSTALL_DATA} files/plugins.conf ${PREFIX}/etc/munin/plugin-conf.d/plugins.conf.sample 58 57 @if [ ! -f ${PREFIX}/etc/munin/plugin-conf.d/plugins.conf ]; then \ 59 58 ${INSTALL_DATA} ${PREFIX}/etc/munin/plugin-conf.d/plugins.conf.sample ${PREFIX}/etc/munin/plugin-conf.d/plugins.conf; \ people/ilmari/modularisation-branch/dists/freebsd/munin-node/distinfo
r864 r1012 1 MD5 (munin_1. 1.7.tar.gz) = b9dbe4da7ed0e7613e896b51a22b79332 SIZE (munin_1. 1.7.tar.gz) = 2883681 MD5 (munin_1.2.2.tar.gz) = e55ff3cc8d506558f32598f639952cca 2 SIZE (munin_1.2.2.tar.gz) = 325356 people/ilmari/modularisation-branch/dists/freebsd/munin-node/pkg-install
r864 r1012 58 58 fi 59 59 60 mkdir -p ${PKG_PREFIX}/etc/munin/plugins ${PKG_PREFIX}/var/munin/plugin-state61 62 60 if [ -n "$prevver" ]; then 63 61 echo -n "Initializing new plugins.." people/ilmari/modularisation-branch/dists/freebsd/munin-node/pkg-plist
r864 r1012 1 @exec mkdir -p %D/etc/munin/plugins 2 @exec mkdir -p %D/etc/munin/plugin-conf.d && chmod 755 %D/etc/munin/plugin-conf.d 3 @exec mkdir -p %D/var/munin/plugin-state && chgrp munin %D/var/munin/plugin-state && chmod 775 %D/var/munin/plugin-state 4 @unexec rm %D/bin/munin-node-revive 2>/dev/null || true 1 5 @comment etc/munin/VERSION.node must remain for upgrade version check 2 6 @unexec if cmp -s %D/etc/munin/munin-node.conf %D/etc/munin/munin-node.conf.sample; then rm -f %D/etc/munin/munin-node.conf; fi 3 7 etc/munin/munin-node.conf.sample 4 8 @unexec if cmp -s %D/etc/munin/plugin-conf.d/plugins.conf %D/etc/munin/plugin-conf.d/plugins.conf.sample; then rm -f %D/etc/munin/plugin-conf.d/plugins.conf; fi 5 etc/munin/munin-node.conf.sample6 9 etc/munin/plugin-conf.d/plugins.conf.sample 7 10 @unexec rm %D/etc/rc.d/munin-node.sh 2>/dev/null || true 8 @unexec rm /etc/rc.d/munin_node 2>/dev/null || true9 11 sbin/munin-node 10 12 sbin/munin-node-configure … … 19 21 %%DATADIR%%/plugins/apc_nis 20 22 %%DATADIR%%/plugins/bind9 23 %%DATADIR%%/plugins/bind9_rndc 24 %%DATADIR%%/plugins/courier_ 21 25 %%DATADIR%%/plugins/courier_mta_mailqueue 22 26 %%DATADIR%%/plugins/courier_mta_mailstats … … 26 30 %%DATADIR%%/plugins/df 27 31 %%DATADIR%%/plugins/df_inode 32 %%DATADIR%%/plugins/dhcpd3 28 33 %%DATADIR%%/plugins/exim_mailqueue 34 %%DATADIR%%/plugins/exim_mailqueue_alt 29 35 %%DATADIR%%/plugins/exim_mailstats 30 %%DATADIR%%/plugins/folding@home 36 %%DATADIR%%/plugins/foldingathome 37 %%DATADIR%%/plugins/foldingathome_rank 38 %%DATADIR%%/plugins/foldingathome_wu 31 39 %%DATADIR%%/plugins/hddtemp 32 40 %%DATADIR%%/plugins/hddtemp2 41 %%DATADIR%%/plugins/hddtemp_smartctl 33 42 %%DATADIR%%/plugins/hddtempd 34 43 %%DATADIR%%/plugins/if_ … … 39 48 %%DATADIR%%/plugins/loggrep 40 49 %%DATADIR%%/plugins/mailman 50 %%DATADIR%%/plugins/mailscanner 51 %%DATADIR%%/plugins/mbmon_ 41 52 %%DATADIR%%/plugins/memory 53 %%DATADIR%%/plugins/mhttping 42 54 %%DATADIR%%/plugins/multips 43 55 %%DATADIR%%/plugins/munin_graph … … 52 64 %%DATADIR%%/plugins/ntp_ 53 65 %%DATADIR%%/plugins/ntp_states 66 %%DATADIR%%/plugins/nut_misc 67 %%DATADIR%%/plugins/nut_volts 54 68 %%DATADIR%%/plugins/open_files 69 %%DATADIR%%/plugins/perdition 55 70 %%DATADIR%%/plugins/ping_ 56 71 %%DATADIR%%/plugins/plugins.history 57 %%DATADIR%%/plugins/pm3users 72 %%DATADIR%%/plugins/pm3users_ 58 73 %%DATADIR%%/plugins/pop_stats 59 74 %%DATADIR%%/plugins/postfix_mailqueue … … 91 106 %%DATADIR%%/plugins/swap 92 107 %%DATADIR%%/plugins/sybase_space 93 %%DATADIR%%/plugins/uptime94 108 %%DATADIR%%/plugins/vmstat 95 109 @unexec rm -f /var/run/munin/munin-node.pid … … 101 115 @unexec rmdir %D/etc/munin/plugin-conf.d 2>/dev/null || true 102 116 @unexec rmdir %D/etc/munin 2>/dev/null || true 117 @unexec rmdir %%LOCALBASE%%/%%SITE_PERL%%/Munin/Plugin 2>/dev/null || true 118 @unexec rmdir %%LOCALBASE%%/%%SITE_PERL%%/Munin 2>/dev/null || true 103 119 @unexec echo 104 120 @unexec echo '********************************************************************' 105 121 @unexec echo "If you want to *completely* remove munin-node, you have to" 106 122 @unexec echo 107 @unexec echo " rm -rf %D/var/munin/plugin-state %D/etc/munin/VERSION.node \\" 108 @unexec echo " %D/etc/munin/munin-node.conf %D/etc/munin/plugins \\" 123 @unexec echo " rm -rf %D/etc/munin/VERSION.node %D/etc/munin/plugins \\" 124 @unexec if [ -d %D/var/munin/plugin-state ]; then echo " %D/var/munin/plugin-state \\"; fi 125 @unexec if [ -f %D/etc/munin/munin-node.conf ]; then echo " %D/etc/munin/munin-node.conf \\"; fi 126 @unexec if [ -d %D/var/munin/plugin-state ]; then echo " %D/var/munin/plugin-state \\"; fi 127 @unexec if [ -d %%LOCALBASE%%/%%SITE_PERL%%/Munin/Plugin ]; then echo " %%LOCALBASE%%/%%SITE_PERL%%/Munin/Plugin \\"; fi 128 @unexec if [ -d %%LOCALBASE%%/%%SITE_PERL%%/Munin ]; then echo " %%LOCALBASE%%/%%SITE_PERL%%/Munin/Plugin \\"; fi 109 129 @unexec echo " /var/log/munin-node.log*" 110 130 @unexec echo people/ilmari/modularisation-branch/dists/redhat/Makefile.config
r864 r1012 12 12 STATEDIR = $(DESTDIR)/var/run/munin 13 13 PERLLIB = $(DESTDIR)$(shell ( $(PERL) -V:vendorlib | egrep -v "UNKNOWN|=''" || $(PERL) -V:sitelib) | cut -d\' -f 2) 14 CGIDIR = $(DESTDIR)/var/www/html/munin/cgi 14 15 15 16 # Handled in the munin.spec people/ilmari/modularisation-branch/dists/redhat/munin-node.rc
r864 r1012 7 7 # processname: munin-node 8 8 # config: /etc/munin/munin-node.conf 9 # pidfile: /var/run/mu in-node.pid9 # pidfile: /var/run/munin/munin-node.pid 10 10 11 11 # Source function library. people/ilmari/modularisation-branch/dists/redhat/munin.spec.in
r864 r1012 1 1 Name: munin 2 2 Version: @@VERSION@@ 3 Release: 2 3 Release: 4 4 Summary: Network-wide graphing framework (grapher/gatherer) 4 5 Copyright: GPL 6 Group: System Environment/Daemons 7 URL: http://www.linpro.no/ 8 Packager: Ingvar Hagelund <ingvar@linpro.no> 9 Vendor: Linpro AS 10 Distribution: Linpro AS RHEL Software Archives 11 5 12 BuildRoot: %{_tmppath}/%{name}-%{version}-root 6 URL: http://www.linpro.no/7 13 Source: %{name}-%{version}.tar.gz 8 Group: System Environment/Daemons9 Summary: Munin is the Linpro RRD data agent10 14 BuildArchitectures: noarch 11 15 Provides: perl(RRDs) … … 13 17 Requires: perl-Net-Server 14 18 Requires: rrdtool 19 Requires: logrotate 15 20 Obsoletes: lrrd-server 16 21 17 22 %description 18 Munin, formerly known as The Linpro RRD server, queries a number of 19 nodes, and processes the data using RRDtool and presents it on web 20 pages. 23 Munin is a highly flexible and powerful solution used to create graphs of 24 virtually everything imaginable throughout your network, while still 25 maintaining a rattling ease of installation and configuration. 26 27 This package contains the grapher/gatherer. You will only need one instance of 28 it in your network. It will periodically poll all the nodes in your network 29 it's aware of for data, which it in turn will use to create graphs and HTML 30 pages, suitable for viewing with your graphical web browser of choice. 31 32 Munin is written in Perl, and relies heavily on Tobi Oetiker's excellent 33 RRDtool. To see a real example of Munin in action, take a peek at 34 <http://www.linpro.no/projects/munin/example/>. 21 35 22 36 %package node 23 37 Group: System Environment/Daemons 24 Summary: Linpro RRD data agent38 Summary: Network-wide graphing framework (node) 25 39 BuildArchitectures: noarch 26 40 Requires: perl-Net-Server … … 31 45 32 46 %description node 33 The Munin node package returns statistical data on the request of a 34 Munin server. 47 Munin is a highly flexible and powerful solution used to create graphs of 48 virtually everything imaginable throughout your network, while still 49 maintaining a rattling ease of installation and configuration. 50 51 This package contains node software. You should install it on all the nodes 52 in your network. It will know how to extract all sorts of data from the 53 node it runs on, and will wait for the gatherer to request this data for 54 further processing. 55 56 It includes a range of plugins capable of extracting common values such as 57 cpu usage, network usage, load average, and so on. Creating your own plugins 58 which are capable of extracting other system-specific values is very easy, 59 and is often done in a matter of minutes. You can also create plugins which 60 relay information from other devices in your network that can't run Munin, 61 such as a switch or a server running another operating system, by using 62 SNMP or similar technology. 63 64 Munin is written in Perl, and relies heavily on Tobi Oetiker's excellent 65 RRDtool. To see a real example of Munin in action, take a peek at 66 <http://www.linpro.no/projects/munin/example/>. 67 35 68 36 69 %prep 37 70 %setup -q 71 rm -rf %{buildroot} 38 72 mkdir -p %{buildroot} 39 73 … … 55 89 MANDIR=%{buildroot}%{_mandir} \ 56 90 DESTDIR=%{buildroot} \ 57 install- node install-node-plugins install-doc install-man58 59 mkdir -p %{buildroot}/etc/ init.d91 install-main install-node install-node-plugins install-doc install-man 92 93 mkdir -p %{buildroot}/etc/rc.d/init.d 60 94 mkdir -p %{buildroot}/etc/munin/plugins 61 95 mkdir -p %{buildroot}/etc/munin/plugin-conf.d 96 mkdir -p %{buildroot}/etc/logrotate.d 62 97 mkdir -p %{buildroot}/var/lib/munin 63 98 mkdir -p %{buildroot}/var/log/munin 64 99 65 #install -m 0755 node/redhat/munin-node %{buildroot}/etc/init.d/ 66 install -m0755 dists/redhat/munin-node.rc %{buildroot}/etc/init.d/munin-node 67 install -m 0644 dists/tarball/plugins.conf %{buildroot}/etc/munin/ 100 install -m0755 dists/redhat/munin-node.rc %{buildroot}/etc/rc.d/init.d/munin-node 101 install -m0644 dists/tarball/plugins.conf %{buildroot}/etc/munin/ 68 102 install -m0644 dists/tarball/plugins.conf %{buildroot}/etc/munin/plugin-conf.d/munin-node 69 70 chmod -x %{buildroot}%{_datadir}/munin/plugins/sybase_space 103 install -m0644 dists/debian/munin.logrotate %{buildroot}/etc/logrotate.d/munin 104 install -m0644 dists/debian/munin-node.logrotate %{buildroot}/etc/logrotate.d/munin-node 105 106 # Prevent rpmbuild from adding a lot of perl dependencies 107 chmod -x %{buildroot}%{_datadir}/munin/plugins/* 108 chmod -x %{buildroot}%{_sbindir}/munin-node-configure-snmp 109 chmod -x %{buildroot}%{_sbindir}/munin-node-configure 110 chmod -x %{buildroot}%{_sbindir}/munin-run 111 71 112 ## Server 72 73 113 make CONFIG=dists/redhat/Makefile.config \ 74 114 DESTDIR=%{buildroot} \ 75 115 install-main 76 116 77 # cf=%{buildroot}/etc/munin/munin.conf; sed 's,/var/www/munin,/var/www/html/munin,g' < $cf > $cf.patch && mv $cf.patch$cf117 # cf=%{buildroot}/etc/munin/munin.conf; sed 's,/var/www/munin,/var/www/html/munin,g' < $cf > $cf.patched && mv $cf.patched $cf 78 118 79 119 mkdir -p %{buildroot}/var/www/html/munin … … 86 126 install -m 0644 server/munin-htaccess %{buildroot}/var/www/html/munin/.htaccess 87 127 install -m 0755 server/style.css %{buildroot}/var/www/html/munin 88 89 128 install -m 0644 ChangeLog %{buildroot}%{_docdir}/munin/ChangeLog 90 91 129 92 130 %clean … … 99 137 %post node 100 138 chmod -R g+w /var/lib/munin/ 139 chmod +x %{_datadir}/munin/plugins/* 140 chmod +x %{_sbindir}/munin* 141 101 142 if [ $1 = 1 ] 102 143 then … … 119 160 120 161 %post 162 mkdir -p /var/run/munin 163 chown -R munin /var/run/munin 121 164 chown -R munin /var/www/html/munin 122 165 chown -R munin /var/log/munin … … 136 179 %doc %{_docdir}/munin/COPYING 137 180 %doc %{_docdir}/munin/ChangeLog 181 %doc %{_docdir}/munin/README-apache-cgi 138 182 %{_bindir}/munin-cron 139 183 %{_datadir}/munin/munin-graph … … 142 186 %{_datadir}/munin/munin-update 143 187 %{_libdir}/perl5/*perl/5.*/Munin.pm 188 /var/www/html/munin/cgi/munin-cgi-graph 144 189 %dir /etc/munin/templates 145 190 %dir /etc/munin … … 147 192 /etc/cron.d/munin 148 193 %config(noreplace) /etc/munin/munin.conf 194 %config(noreplace) /etc/logrotate.d/munin 195 149 196 %attr(-, munin, root) %dir /var/lib/munin 150 197 %attr(-, munin, root) %dir /var/log/munin 151 198 %attr(-, munin, root) %dir /var/www/html/munin 152 %attr(-, munin, root) %dir /var/www/html/munin/cgi /cgi199 %attr(-, munin, root) %dir /var/www/html/munin/cgi 153 200 %attr(-, munin, root) /var/www/html/munin/style.css 154 201 %config /var/www/html/munin/.htaccess … … 164 211 %config(noreplace) /etc/munin/munin-node.conf 165 212 %config(noreplace) /etc/munin/plugin-conf.d/munin-node 166 %config /etc/init.d/munin-node 213 %config(noreplace) /etc/logrotate.d/munin-node 214 %config /etc/rc.d/init.d/munin-node 167 215 %config(noreplace) /etc/munin/plugins.conf 168 216 %{_sbindir}/munin-run … … 183 231 %doc %{_mandir}/man8/munin-node* 184 232 %doc %{_mandir}/man5/munin-node* 185 #%doc %{_mandir}/man5/node.conf*186 233 187 234 %changelog 235 * Thu Apr 21 2005 Ingvar Hagelund <ingvar@linpro.no> 1.2.3-4 236 - Fixed a bug in the iostat plugin 237 * Wed Apr 20 2005 Ingvar Hagelund <ingvar@linpro.no> 1.2.3-3 238 - Added the missing /var/run/munin 239 * Tue Apr 19 2005 Ingvar Hagelund <ingvar@linpro.no> 1.2.3-2 240 - Removed a lot of unecessary perl dependencies 241 * Mon Apr 18 2005 Ingvar Hagelund <ingvar@linpro.no> 1.2.3-1 242 - Sync with svn 243 * Tue Mar 22 2005 Ingvar Hagelund <ingvar@linpro.no> 1.2.2-5 244 - Sync with release of 1.2.2 245 - Add some nice text from the suse specfile 246 - Minimal changes in the header 247 - Some cosmetic changes 248 - Added logrotate scripts (stolen from debian package) 188 249 * Sun Feb 01 2004 Ingvar Hagelund <ingvar@linpro.no> 189 250 - Sync with CVS. Version 1.0.0pre2 … … 207 268 * Tue Jun 18 2002 Kjetil Torgrim Homme <kjetilho@linpro.no> 208 269 - new package 209 210 people/ilmari/modularisation-branch/dists/suse/munin.spec.in
r864 r1012 1 Name: munin 2 Version: @@VERSION@@ 3 Release: 1 4 Copyright: GPL 5 BuildRoot: %{_tmppath}/%{name}-%{version}-root 6 URL: http://www.linpro.no/ 7 Source: %{name}-%{version}.tar.gz 8 Group: System Environment/Daemons 9 Summary: Munin is the Linpro RRD data agent 10 BuildArchitectures: noarch 11 Provides: perl(RRDs) 12 Requires: perl-Config-General 13 Requires: perl-HTML-Template 14 Requires: perl-Net-Server 15 Requires: rrdtool 16 Obsoletes: lrrd-server 1 Name: munin 2 Version: @@VERSION@@ 3 Release: 1 4 5 Summary: Network-wide graphing framework (grapher/gatherer) 6 License: GPL 7 Group: System Environment/Daemons 8 URL: http://munin.sourceforge.net 9 Packager: Rune Nordbøe Skillingstad <runesk@linpro.no> 10 Vendor: Linpro AS 11 Distribution: Linpro AS SuSE Linux Software Archives 12 Source0: %{name}_%{version}.tar.gz 13 Source1: Makefile.config 14 Source2: munin-node.rc 15 Source3: munin.cron.d 16 Source4: munin.logrotate 17 Source5: munin-node.logrotate 18 Source6: munin-node.cron.d 19 Source7: plugins.conf 20 Patch0: patch-001 21 Patch1: patch-002 22 Requires: perl-HTML-Template 23 Requires: rrdtool 24 Obsoletes: lrrd-server 25 BuildArch: noarch 26 BuildRoot: %{_tmppath}/%{name}-%{version}-root 27 28 %define confdir /etc/munin 29 %define libdir /usr/share/munin 30 %define htmldir /srv/www/htdocs/munin 31 %define cgidir /srv/www/cgi-bin 32 %define dbdir /var/lib/munin 33 %define logdir /var/log/munin 34 %define statedir /var/run/munin 17 35 18 36 %description 19 Munin, formerly known as The Linpro RRD server, queries a number of 20 nodes, and processes the data using RRDtool and presents it on web 21 pages. 37 Munin is a highly flexible and powerful solution used to create graphs of 38 virtually everything imaginable throughout your network, while still 39 maintaining a rattling ease of installation and configuration. 40 41 This package contains the grapher/gatherer. You will only need one instance of 42 it in your network. It will periodically poll all the nodes in your network 43 it's aware of for data, which it in turn will use to create graphs and HTML 44 pages, suitable for viewing with your graphical web browser of choice. 45 46 Munin is written in Perl, and relies heavily on Tobi Oetiker's excellent 47 RRDtool. To see a real example of Munin in action, take a peek at 48 <http://www.linpro.no/projects/munin/example/>. 22 49 23 50 %package node 24 Group: System Environment/Daemons 25 Summary: Linpro RRD data agent 26 BuildArchitectures: noarch 27 Requires: perl-Net-Server 28 #Requires: perl-Config-General 29 Requires: procps >= 2.0.7 30 Requires: sysstat 31 Obsoletes: lrrd-client 51 Group: System Environment/Daemons 52 Summary: Network-wide graphing framework (node) 53 BuildArch: noarch 54 Requires: perl-Net-Server 55 Requires: ps 56 Requires: sysstat 57 Obsoletes: lrrd-client 32 58 33 59 %description node 34 The Munin node package returns statistical data on the request of a 35 Munin server. 60 Munin is a highly flexible and powerful solution used to create graphs of 61 virtually everything imaginable throughout your network, while still 62 maintaining a rattling ease of installation and configuration. 63 64 This package contains node software. You should install it on all the nodes 65 in your network. It will know how to extract all sorts of data from the 66 node it runs on, and will wait for the gatherer to request this data for 67 further processing. 68 69 It includes a range of plugins capable of extracting common values such as 70 cpu usage, network usage, load average, and so on. Creating your own plugins 71 which are capable of extracting other system-specific values is very easy, 72 and is often done in a matter of minutes. You can also create plugins which 73 relay information from other devices in your network that can't run Munin, 74 such as a switch or a server running another operating system, by using 75 SNMP or similar technology. 76 77 Munin is written in Perl, and relies heavily on Tobi Oetiker's excellent 78 RRDtool. To see a real example of Munin in action, take a peek at 79 <http://www.linpro.no/projects/munin/example/>. 36 80 37 81 %prep 38 82 %setup -q 83 %patch0 84 %patch1 -p1 39 85 mkdir -p %{buildroot} 40 86 … … 45 91 perl -pi -e 's,htmldoc munin,cat munin, or s,html(2text|doc),# $&,' Makefile 46 92 perl -pi -e 's,\$\(INSTALL.+\.(pdf|txt) \$\(DOCDIR,# $&,' Makefile 93 47 94 make clean 48 make CONFIG=dists/suse/Makefile.config \ 49 build 95 make CONFIG=%{SOURCE1} \ 96 DOCDIR=%{_docdir}/munin \ 97 MANDIR=%{_mandir} \ 98 HTMLDIR=%{htmldir} \ 99 CGIDIR=%{cgidir} \ 100 LIBDIR=%{libdir} \ 101 CONFDIR=%{confdir} \ 102 DESTDIR=%{buildroot} \ 103 DBDIR=%{dbdir} \ 104 SBINDIR=%{_sbindir} \ 105 LOGDIR=%{logdir} \ 106 STATEDIR=%{statedir} \ 107 build 108 109 mkdir -p %{buildroot}%{dbdir}/plugin-state 110 mkdir -p %{buildroot}%{logdir} 111 mkdir -p %{buildroot}%{statedir} 112 mkdir -p %{buildroot}/etc/init.d 113 mkdir -p %{buildroot}/etc/cron.d 114 mkdir -p %{buildroot}/etc/logrotate.d 115 mkdir -p %{buildroot}%{htmldir} 50 116 51 117 %install 52 53 #rm -rf ${buildroot}/var/www/html/munin/cgi/cgi 54 ## Node 55 make CONFIG=dists/suse/Makefile.config \ 56 DOCDIR=%{buildroot}%{_docdir}/munin \ 57 MANDIR=%{buildroot}%{_mandir} \ 58 DESTDIR=%{buildroot} \ 59 install-node install-node-plugins install-doc install-man 60 61 mkdir -p %{buildroot}/etc/init.d 62 mkdir -p %{buildroot}/etc/munin/plugins 63 mkdir -p %{buildroot}/etc/munin/plugin-conf.d 64 mkdir -p %{buildroot}/var/lib/munin 65 mkdir -p %{buildroot}/var/log/munin 66 67 install -m0755 dists/suse/munin-node.rc %{buildroot}/etc/init.d/munin-node 68 install -m0644 dists/tarball/plugins.conf %{buildroot}/etc/munin/ 69 install -m0644 dists/tarball/plugins.conf %{buildroot}/etc/munin/plugin-conf.d/munin-node 70 71 chmod -x %{buildroot}%{_datadir}/munin/plugins/sybase_space 72 ## Server 73 74 make CONFIG=dists/suse/Makefile.config \ 75 DESTDIR=%{buildroot} \ 76 install-main 77 78 # cf=%{buildroot}/etc/munin/munin.conf; sed 's,/var/www/munin,/var/www/html/munin,g' < $cf > $cf.patch && mv $cf.patch $cf 79 80 mkdir -p %{buildroot}/var/www/html/munin 81 mkdir -p %{buildroot}/var/www/html/munin/cgi 82 mkdir -p %{buildroot}/var/log/munin 83 mkdir -p %{buildroot}/etc/cron.d 84 # silly RPM triggers want to make debug enabled libraries. let it try. 85 mkdir -p %{buildroot}/usr/lib/debug 86 87 install -m 0755 dists/suse/munin.cron.d %{buildroot}/etc/cron.d/munin 88 install -m 0644 server/munin-htaccess %{buildroot}/var/www/html/munin/.htaccess 89 install -m 0755 server/style.css %{buildroot}/var/www/html/munin 90 #install -m 0755 server/munin-cgi-graph %{buildroot}/var/www/html/munin/cgi 91 install -m 0644 ChangeLog %{buildroot}%{_docdir}/munin/ChangeLog 92 118 make CONFIG=%{SOURCE1} \ 119 DOCDIR=%{buildroot}%{_docdir}/munin \ 120 MANDIR=%{buildroot}%{_mandir} \ 121 HTMLDIR=%{buildroot}%{htmldir} \ 122 LIBDIR=%{buildroot}%{libdir} \ 123 CGIDIR=%{buildroot}%{cgidir} \ 124 CONFDIR=%{buildroot}%{confdir} \ 125 DESTDIR=%{buildroot} \ 126 DBDIR=%{buildroot}%{dbdir} \ 127 SBINDIR=%{buildroot}%{_sbindir} \ 128 LOGDIR=%{buildroot}%{logdir} \ 129 STATEDIR=%{buildroot}%{statedir} \ 130 install-main install-node install-node-plugins install-doc install-man 131 132 install -m0755 %{SOURCE2} %{buildroot}/etc/init.d/munin-node 133 install -m0644 %{SOURCE3} %{buildroot}/etc/cron.d/munin 134 install -m0644 %{SOURCE4} %{buildroot}/etc/logrotate.d/munin 135 install -m0644 %{SOURCE5} %{buildroot}/etc/logrotate.d/munin-node 136 install -m0644 %{SOURCE6} %{buildroot}/etc/cron.d/munin-node 137 install -m0644 %{SOURCE7} %{buildroot}%{confdir}/plugin-conf.d/munin-node 138 install -m0644 ChangeLog %{buildroot}%{_docdir}/munin/ChangeLog 93 139 94 140 %clean 95 141 [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot} 96 142 143 144 ## Server 145 146 %pre 147 148 getent group munin >/dev/null || groupadd -r munin 149 getent passwd munin > /dev/null || useradd -r -d %{dbdir} -g munin munin 150 151 %post 152 mkdir -p %{htmldir} 153 mkdir -p %{logdir} 154 mkdir -p %{dbdir} 155 chown -R munin:munin %{htmldir} 156 chown -R munin:munin %{logdir} 157 chown -R munin:munin %{statedir} 158 chown -R munin:munin %{dbdir} 159 160 ## Node 97 161 %pre node 98 162 getent group munin >/dev/null || groupadd -r munin 99 getent passwd munin > /dev/null || useradd -r -d /var/lib/munin-g munin munin163 getent passwd munin > /dev/null || useradd -r -d %{dbdir} -g munin munin 100 164 101 165 %post node 102 chmod -R g+w /var/lib/munin/103 166 if [ $1 = 1 ] 104 167 then 105 /sbin/chkconfig --add munin-node168 /sbin/chkconfig --add munin-node 106 169 /usr/sbin/munin-node-configure --shell | sh 107 170 fi 108 chown -R munin /var/lib/munin 109 171 %{fillup_and_insserv -n -s -y munin munin-node START_MUNIN_NODE} 172 mkdir -p %{logdir} 173 mkdir -p %{dbdir}/plugin-state 174 chown -R munin:munin %{logdir} 175 chown -R munin:munin %{dbdir} 176 chmod g+w %{dbdir}/plugin-state 177 /etc/init.d/munin-node status >/dev/null 2>&1 || /etc/init.d/munin-node start 110 178 111 179 %preun node 112 180 if [ $1 = 0 ] 113 181 then 114 /sbin/chkconfig --del munin-node 115 rmdir /var/log/munin 2>/dev/null || echo " " 182 /sbin/service munin-node stop > /dev/null 2>&1 183 /sbin/chkconfig --del munin-node 184 rmdir %{logdir} 2>/dev/null || true 116 185 fi 117 118 %pre 119 getent group munin >/dev/null || groupadd -r munin 120 getent passwd munin > /dev/null || useradd -r -d /var/lib/munin -g munin munin 121 122 %post 123 chown -R munin /var/www/html/munin 124 chown -R munin /var/log/munin 125 chown -R munin /var/lib/munin 126 127 %postun 128 if [ $1 = 0 ] 129 then 130 userdel munin 131 fi 186 %stop_on_removal munin-node 187 188 %postun node 189 %restart_on_update munin-node 190 %{insserv_cleanup} 191 132 192 133 193 %files 134 194 %defattr(-, root, root) 135 195 %doc %{_docdir}/munin/README.api 136 #%doc %{_docdir}/munin/README.config137 196 %doc %{_docdir}/munin/README.plugins 138 197 %doc %{_docdir}/munin/COPYING 139 198 %doc %{_docdir}/munin/ChangeLog 199 %doc %{_mandir}/man8/munin-graph* 200 %doc %{_mandir}/man8/munin-update* 201 %doc %{_mandir}/man8/munin-html* 202 %doc %{_mandir}/man8/munin-cron* 203 %doc %{_mandir}/man5/munin.conf* 204 %doc %{_mandir}/man8/munin-limits.8.gz 140 205 %{_bindir}/munin-cron 141 206 %{_datadir}/munin/munin-graph 142 207 %{_datadir}/munin/munin-html 143 %{_datadir}/munin/munin-nagios144 208 %{_datadir}/munin/munin-update 145 209 %{_libdir}/perl5/*perl/5.*/Munin.pm 146 %dir /etc/munin/templates 147 %dir /etc/munin 148 /etc/munin/templates/* 149 /etc/cron.d/munin 150 /var/www/html/munin/cgi/* 151 %config /etc/munin/munin.conf 152 %attr(-, munin, root) %dir /var/lib/munin 153 %attr(-, munin, root) %dir /var/log/munin 154 %attr(-, munin, root) %dir /var/www/html/munin 155 %attr(-, munin, root) %dir /var/www/html/munin/cgi 156 %attr(-, munin, root) /var/www/html/munin/style.css 157 %config /var/www/html/munin/.htaccess 158 %doc %{_mandir}/man8/munin-graph* 159 %doc %{_mandir}/man8/munin-update* 160 %doc %{_mandir}/man8/munin-nagios* 161 %doc %{_mandir}/man8/munin-html* 162 %doc %{_mandir}/man8/munin-cron* 163 %doc %{_mandir}/man5/munin.conf* 164 210 %{_usr}/share/munin/munin-limits 211 %{cgidir}/munin-cgi-graph 212 %config %{confdir}/templates/* 213 %config /etc/cron.d/munin 214 %config(noreplace) %{confdir}/munin.conf 215 %config /etc/logrotate.d/munin 216 %dir %{statedir} 217 218 165 219 %files node 166 220 %defattr(-, root, root) 167 %config /etc/munin/munin-node.conf168 %config /etc/munin/plugin-conf.d/munin-node169 %config /etc/init.d/munin-node170 %config /etc/munin/plugins.conf171 %{_sbindir}/munin-run172 %{_sbindir}/munin-node173 %{_sbindir}/munin-node-configure174 %dir /var/log/munin175 %dir %{_datadir}/munin176 %dir /etc/munin/plugins177 %dir /etc/munin178 %dir /var/lib/munin179 %dir %attr(-, root, munin) /var/lib/munin/plugin-state180 %{_datadir}/munin/plugins/*181 221 %doc %{_docdir}/munin/COPYING 182 222 %doc %{_docdir}/munin/munin-doc.html … … 185 225 %doc %{_mandir}/man8/munin-node* 186 226 %doc %{_mandir}/man5/munin-node* 187 #%doc %{_mandir}/man5/node.conf* 227 %{_sbindir}/munin-run 228 %{_sbindir}/munin-node 229 %{_sbindir}/munin-node-configure 230 %{_sbindir}/munin-node-configure-snmp 231 %{_datadir}/munin/plugins/* 232 %config(noreplace) %{confdir}/munin-node.conf 233 %config(noreplace) %{confdir}/plugin-conf.d/munin-node 234 %config /etc/init.d/munin-node 235 %config /etc/cron.d/munin-node 236 %config /etc/logrotate.d/munin-node 237 %dir %{confdir}/plugins 188 238 189 239 %changelog 240 * Mon Apr 3 2005 Rune Nordbøe Skillingstad <runesk@linpro.no> 241 - 1.2.3 release 242 * Fri Apr 1 2005 Rune Nordbøe Skillingstad <runesk@linpro.no> 243 - 1.2.2 release 244 - Fixed SF bug 1164481 (missing /srv/www/htdocs/munin) 245 - Fixed SF bug 1164477 (patch for Net::Domain on PPC64) 246 * Fri Mar 11 2005 Rune Nordbøe Skillingstad <runesk@linpro.no> 247 - 1.2.1 release 248 * Wed Mar 9 2005 Rune Nordbøe Skillingstad <runesk@linpro.no> 249 - Fixed erronumous path to web directory 250 - Added start of node if not running 251 * Thu Mar 8 2005 Rune Nordbøe Skillingstad <runesk@linpro.no> 252 - Fixed some build path problems 253 * Thu Feb 24 2005 Rune Nordbøe Skillingstad <runesk@linpro.no> 254 - New major release 255 * Wed Feb 9 2005 Rune Nordbøe Skillingstad <runesk@linpro.no> 256 - Updated to version 1.2.0rc2. 257 - Removed Nagios stuff 258 - Added noreplace for some central configuration files 259 * Thu Nov 18 2004 Rune Nordbøe Skillingstad <runesk@linpro.no> 260 - Updated to version 1.0.4 261 * Mon Nov 08 2004 Rune Nordbøe Skillingstad <runesk@linpro.no> 262 - Updated version 1.0.3 / sync with redhat-build 190 263 * Wed Aug 04 2004 Rune Nordbøe Skillingstad <runesk@linpro.no> 191 264 - Initial SuSE build people/ilmari/modularisation-branch/munin-doc-base.html
- Property svn:mime-type set to text/html
r864 r1012 109 109 -u root %c</code>". Nice to avoid running munin-node as root. 110 110 <dt><code>allow <regex></code><dd>Allow hosts matching regex to run this plugin. 111 <dt><code>allow tls</code><dd>Allow hosts which use TLS with verified certificates to run this plugin. 111 112 <dt><code>deny <regex></code><dd>Deny hosts matching regex from running this plugin. 113 <dt><code>deny tls</code><dd>Deny hosts which use TLS with verified certificates to run this plugin. 112 114 <dt><code>timeout <seconds></code><dd>Use a timeout of <seconds> seconds instead of the default timeout 113 115 of 10 seconds, when running this plugin. … … 234 236 (e.g. laptops). NOTE: Deprecated. Use use_node_name instaed. 235 237 <dt>contacts<dd>Set which contact entries to use for this node. Default is all contact entries existing under "contact" tree. 236 <dt>tls<dd>Set to force use of TLS when communicating with the node. (Default off.) 238 <dt>tls<dd>Configure TLS support when communicating with the node. Set to "enabled" to force TLS support, "disabled" to not use it, "paranoid" to force node certificate validation against a local CA file, and "auto" to try to get the most secure level of communication, but accept anything (including no TLS) if the node does not support it. (Default: "auto") 239 <dt>tls_private_key<dd>Set path to private key file. (Default "@@CONFDIR@@/munin.pem") 240 <dt>tls_certificate<dd>Set path to certificate file. (Default "@@CONFDIR@@/munin.pem") 241 <dt>tls_pem<dd>Set path to pem file (if you have both private key and certificate in the same file). (Default "@@CONFDIR@@/munin.pem") 237 242 </dl> 238 243 </tt> people/ilmari/modularisation-branch/munin-faq-base.html
- Property svn:mime-type set to text/html
- Property svn:eol-style deleted
- Property svn:keywords deleted
people/ilmari/modularisation-branch/node/munin-node-configure-snmp.in
r864 r1012 18 18 # 19 19 # 20 # $Log$21 # Revision 1.9 2005/02/16 20:14:21 jimmyo22 # Added man page for munin-node-configure-snmp.23 #24 # Revision 1.8 2004/11/16 20:00:42 jimmyo25 # License cleanups.26 #27 20 28 21 use strict; … … 103 96 if ($do_version) 104 97 { 105 print "munin-node-configure-snmp (munin-node) version $version.\n"; 106 print "Written by Jimmy Olsen\n"; 107 print "\n"; 108 print "Copyright (C) 2004 Jimmy Olsen\n"; 109 print "This is free software released under the GNU Public License. There is NO\n"; 110 print "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"; 98 print <<"EOT"; 99 munin-node-configure-snmp (munin-node) version $version. 100 Written by Jimmy Olsen 101 102 Copyright (C) 2004-2005 Jimmy Olsen 103 104 This is free software released under the GNU General Public License. There 105 is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 106 PURPOSE. For details, please refer to the file COPYING that is included 107 with this software or refer to 108 http://www.fsf.org/licensing/licenses/gpl.txt 109 EOT 111 110 exit 0; 112 111 } people/ilmari/modularisation-branch/node/munin-node-configure.in
r864 r1012 18 18 # 19 19 # Program to suggest configurations and configuration changes. 20 #21 # $Log$22 # Revision 1.12 2005/03/09 21:50:26 jimmyo23 # munin-node-configure now properly respect user plugins.24 #25 # Revision 1.11 2004/12/10 10:40:12 jimmyo26 # Fix bug with underscore in wildcard plugins.27 #28 # Revision 1.10 2004/11/16 20:00:42 jimmyo29 # License cleanups.30 #31 # Revision 1.9 2004/09/07 19:33:32 jimmyo32 # Documented the SNMP options a bit better.33 #34 # Revision 1.8 2004/09/05 12:00:18 jimmyo35 # Set family and capabilities.36 #37 # Revision 1.7 2004/09/03 23:25:16 jimmyo38 # Brushed up the SNMP probe functionality.39 #40 # Revision 1.6 2004/09/03 22:59:03 jimmyo41 # Support comma-formatted snmp-options.42 #43 # Revision 1.5 2004/09/03 22:56:51 jimmyo44 # Added support for SNMP probing.45 #46 # Revision 1.4 2004/01/29 19:25:52 jimmyo47 # Fixed bad debug output (forgotten linebreaks) in munin-node-configure (SF#882385).48 #49 # Revision 1.3 2004/01/29 17:36:19 jimmyo50 # Updated copyright information51 #52 # Revision 1.2 2004/01/15 15:20:00 jimmyo53 # Making things workable after name change. Upping for test verwion.54 #55 # Revision 1.1 2004/01/02 18:50:00 jimmyo56 # Renamed occurrances of lrrd -> munin57 #58 # Revision 1.1.1.1 2004/01/02 15:18:06 jimmyo59 # Import of LRRD CVS tree after renaming to Munin60 #61 # Revision 1.11 2003/12/18 16:46:59 jimmyo62 # now prints the reason for suggesting to not use a plugin, as long as the plugins gives one.63 #64 # Revision 1.10 2003/12/17 21:29:26 jimmyo65 # Don\'t try to change uid/gid if not running as root. (Deb#224300)66 #67 # Revision 1.9 2003/11/10 22:05:42 toreanderson68 # bugfux69 #70 # Revision 1.8 2003/11/10 17:52:33 jimmyo71 # Small briainer-typo72 #73 # Revision 1.7 2003/11/10 17:32:18 jimmyo74 # Check what to do with new plugins when upgrading.75 #76 # Revision 1.6 2003/11/07 17:43:16 jimmyo77 # Cleanups and log entries78 #79 20 # 80 21 … … 152 93 if ($do_version) 153 94 { 154 print "munin-node-configure (munin-node) version $version.\n"; 155 print "Written by Jimmy Olsen\n"; 156 print "\n"; 157 print "Copyright (C) 2003-2004 Jimmy Olsen\n"; 158 print "This is free software released under the GNU Public License. There is NO\n"; 159 print "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"; 95 print <<"EOT"; 96 munin-node-configure (munin-node) version $version. 97 Written by Jimmy Olsen 98 99 Copyright (C) 2003-2005 Jimmy Olsen 100 101 This is free software released under the GNU General Public License. There 102 is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 103 PURPOSE. For details, please refer to the file COPYING that is included 104 with this software or refer to 105 http://www.fsf.org/licensing/licenses/gpl.txt 106 EOT 160 107 exit 0; 161 108 } people/ilmari/modularisation-branch/node/munin-node-simple.in
r864 r1012 23 23 # reviewing by sysadmins that want to do simple munin-stuff in high 24 24 # security environments. 25 #26 # $Log$27 # Revision 1.3 2004/11/16 20:00:42 jimmyo28 # License cleanups.29 #30 # Revision 1.2 2004/01/15 15:20:01 jimmyo31 # Making things workable after name change. Upping for test verwion.32 #33 # Revision 1.1 2004/01/02 18:50:00 jimmyo34 # Renamed occurrances of lrrd -> munin35 #36 # Revision 1.1.1.1 2004/01/02 15:18:06 jimmyo37 # Import of LRRD CVS tree after renaming to Munin38 #39 # Revision 1.3 2003/11/24 10:15:56 jimmyo40 # Ready for 0.9.9 release41 #42 # Revision 1.2 2003/11/19 17:26:30 jimmyo43 # Now works with netcat44 #45 # Revision 1.1 2003/11/19 17:09:46 jimmyo46 # New mini-client. Not finished yet (only talks on stdout right now).47 #48 25 # 49 26 people/ilmari/modularisation-branch/node/munin-node.in
r864 r1012 20 20 # $Id$ 21 21 # 22 # $Log$23 # Revision 1.23 2005/02/16 17:11:33 jimmyo24 # munin-node didn't treat default_plugin_user properly (Deb#295366).25 #26 # Revision 1.22 2005/01/24 17:25:37 jimmyo27 # Made TLS mode work.28 #29 # Revision 1.21 2005/01/10 20:48:58 jimmyo30 # Main/Node: Added support for TLS.31 #32 # Revision 1.20 2004/12/22 21:33:48 jimmyo33 # Remove hardcoding of default user/group to run the plugin (SF#1083251).34 #35 # Revision 1.19 2004/12/09 20:03:25 jimmyo36 # Added two new plugins contributed by Jacques Caruso, generic/exim_mailqueue_alt and generic/mailscanner.37 #38 # Revision 1.18 2004/12/09 19:34:54 jimmyo39 # host_name in plugin-conf.d now overrides plugin output.40 #41 # Revision 1.17 2004/11/20 23:17:47 jimmyo42 # Added per-plugin timeouts, contributed by Chan Wilson (SF#881044).43 #44 # Revision 1.16 2004/11/16 20:00:42 jimmyo45 # License cleanups.46 #47 # Revision 1.15 2004/11/10 15:34:18 jimmyo48 # Added new plugin generic/apc_nis to monitor APC UPS, contributed by xavier.49 #50 # Revision 1.14 2004/05/12 20:33:28 jimmyo51 # Made the allow/deny syntax more flexible.52 #53 # Revision 1.13 2004/05/10 21:16:11 jimmyo54 # Allow/deny in munin-node can now be configured per plugin, in addition to "globally" for the whole node.55 #56 # Revision 1.12 2004/04/27 21:18:33 jimmyo57 # Fixed a problem in the node when running as a non-root user and using sudo to run the plugins (Deb#236694).58 #59 # Revision 1.11 2004/02/05 18:05:59 jimmyo60 # Improved timeout-handling in node (Deb#224480).61 #62 # Revision 1.10 2004/02/05 17:35:41 jimmyo63 # Made client timeouts configurable (not per plugin).64 #65 # Revision 1.9 2004/02/01 21:34:59 jimmyo66 # Remove dependency on pgrep (use process groups instead). (SF#881049)67 #68 # Revision 1.8 2004/02/01 20:46:29 jimmyo69 # Added better logging of plugin failures in the node. (SF#881045)70 #71 # Revision 1.7 2004/01/29 19:39:00 jimmyo72 # Generic plugins now use printf instead of echo -n, as this is more portable (SF#885564)73 #74 # Revision 1.6 2004/01/29 18:07:52 jimmyo75 # Bugfix from bug introduced 30 minutes ago76 #77 # Revision 1.5 2004/01/29 17:36:19 jimmyo78 # Updated copyright information79 #80 # Revision 1.4 2004/01/29 16:56:54 jimmyo81 # Fixed "group" bug. Added support for multiple and optional groups82 #83 # Revision 1.3 2004/01/17 22:04:29 toreanderson84 # Change the name in process listing to contain only the path to the munin-node85 # executable, without '/usr/bin/perl -wT' prepending it.86 #87 # Revision 1.2 2004/01/15 15:20:01 jimmyo88 # Making things workable after name change. Upping for test verwion.89 #90 # Revision 1.1 2004/01/02 18:50:00 jimmyo91 # Renamed occurrances of lrrd -> munin92 #93 # Revision 1.1.1.1 2004/01/02 15:18:06 jimmyo94 # Import of LRRD CVS tree after renaming to Munin95 #96 # Revision 1.28 2003/12/18 18:51:37 jimmyo97 # added configuration option "ignore_file", which takes regex for files to ignore (e.g. rpmnew/save) (Deb#224265).98 #99 # Revision 1.27 2003/12/18 17:58:18 jimmyo100 # Do a fake clean of the environment because of the taint checking.101 #102 # Revision 1.26 2003/12/17 21:29:26 jimmyo103 # Don\'t try to change uid/gid if not running as root. (Deb#224300)104 #105 # Revision 1.25 2003/12/10 15:30:02 jimmyo106 # Set path before trying to get hostname107 #108 # Revision 1.24 2003/12/10 15:11:40 jimmyo109 # A couple of bugfixes.110 #111 # Revision 1.23 2003/11/17 09:23:08 jimmyo112 # Fix taint checking for getting hostname113 #114 # Revision 1.22 2003/11/17 09:20:09 jimmyo115 # Fix for machines which don't have "host".116 #117 # Revision 1.21 2003/11/07 17:43:16 jimmyo118 # Cleanups and log entries119 #120 #121 22 122 23 package MyPackage; … … 126 27 use Getopt::Long; 127 28 use Net::Server::Fork; # any personality will do 128 use Net::SSLeay qw(die_now die_if_ssl_error); 129 130 # TLS init 131 Net::SSLeay::load_error_strings(); 132 Net::SSLeay::SSLeay_add_ssl_algorithms(); 133 Net::SSLeay::randomize(); 134 my $ctx; 29 135 30 my $tls; 31 my %tls_verified = ( "level" => 0, "cert" => "", "verified" => 0, "required_depth" => 5 ); 136 32 137 33 chdir ("/"); … … 197 93 Written by Audun Ytterdal, Jimmy Olsen, Tore Anderson / Linpro AS 198 94 199 Copyright (C) 2002-2004 200 This is free software released under the GNU Public License. There is NO 201 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 95 Copyright (C) 2002-2005 96 97 This is free software released under the GNU General Public License. There 98 is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 99 PURPOSE. For details, please refer to the file COPYING that is included 100 with this software or refer to 101 http://www.fsf.org/licensing/licenses/gpl.txt 202 102 "; 203 103 exit 0; … … 269 169 $sconf{'timeout'} = $2; 270 170 } 171 elsif (defined $1 and defined $2 and not defined $sconf{$1}) 172 { 173 $sconf{$1} = $2; 174 } 271 175 } 272 176 … … 297 201 sub show_nodes { 298 202 for my $node (keys %nodes) { 299 print "$node\n";203 net_write ("$node\n"); 300 204 } 301 print ".\n";205 net_write (".\n"); 302 206 } 303 207 … … 377 281 sub list_services { 378 282 my $node = $_[0] || $FQDN; 379 net_write (join " ", grep { &has_access ($_); } keys %{$nodes{$node}});283 net_write join " ", grep { &has_access ($_); } keys %{$nodes{$node}} if exists $nodes{$node}; 380 284 #print join " ", keys %{$nodes{$node}}; 381 285 net_write ("\n"); … … 396 300 foreach my $rule (@{$ruleset}) 397 301 { 398 print STDERR "DEBUG: Checking access: $host;$serv;", $rule->[0], $rule->[1], ";\n" if $DEBUG; 399 # if ($rule->[1] =~ /\//) 302 logger ("DEBUG: Checking access: $host;$serv;". $rule->[0].";".$rule->[1]) if $DEBUG; 303 if ($rule->[1] eq "tls" and $tls_verified{"verified"}) 304 { # tls 305 if ($rule->[0] eq "allow") 306 { 307 return 1; 308 } 309 else 310 { 311 return 0; 312 } 313 } 314 # elsif ($rule->[1] =~ /\//) 400 315 # { # CIDR 401 316 # print "DEBUG: CIDR $host;$serv;$rule->[1];\n"; 402 317 # return 1; 403 318 # } 404 #else405 #{ # regex319 else 320 { # regex 406 321 if ($host =~ m($rule->[1])) 407 322 { … … 415 330 } 416 331 } 417 #}332 } 418 333 } 419 334 } … … 424 339 my $text = shift; 425 340 my @date = localtime (time); 341 342 chomp ($text); 343 $text =~ s/\n/\\n/g; 426 344 427 345 printf STDERR ("%d/%02d/%02d-%02d:%02d:%02d [$$] %s\n", $date[5]+1900, $date[4]+1, … … 504 422 ($sconf{$service}{'group'}?" $sconf{$service}{group}":""); 505 423 506 net_write ("# Want to run as euid/egid $u/$g\n") if $DEBUG;424 # net_write ("# Want to run as euid/egid $u/$g\n") if $DEBUG; 507 425 508 426 $( = $g unless $g == 0; … … 513 431 if ($> != $u or $g != (split (' ', $)))[0]) 514 432 { 515 net_write ("# Can't drop privileges. Bailing out. (wanted uid=",516 ($sconf{$service}{'user'} || $defuser), " gid=\"",517 $gs, "\"($g), got uid=$> gid=\"$)\"(",518 (split (' ', $)))[0], ").\n");433 # net_write ("# Can't drop privileges. Bailing out. (wanted uid=", 434 # ($sconf{$service}{'user'} || $defuser), " gid=\"", 435 # $gs, "\"($g), got uid=$> gid=\"$)\"(", 436 # (split (' ', $)))[0], ").\n"); 519 437 logger ("Plugin \"$service\" Can't drop privileges. ". 520 438 "Bailing out. (wanted uid=". … … 525 443 } 526 444 } 527 net_write ("# Running as uid/gid/euid/egid $</$(/$>/$)\n") if $DEBUG;445 # net_write ("# Running as uid/gid/euid/egid $</$(/$>/$)\n") if $DEBUG; 528 446 if (!&check_perms ("$servicedir/$service")) 529 447 { 530 net_write ("# Error: unsafe permissions. Bailing out.");448 # net_write ("# Error: unsafe permissions. Bailing out."); 531 449 logger ("Error: unsafe permissions. Bailing out."); 532 450 exit 2; … … 539 457 foreach my $key (keys %{$sconf{$service}{'env'}}) 540 458 { 541 net_write ("# Setting environment $key=$sconf{$service}{env}{$key}\n") if $DEBUG;459 # net_write ("# Setting environment $key=$sconf{$service}{env}{$key}\n") if $DEBUG; 542 460 $ENV{"$key"} = $sconf{$service}{'env'}{$key}; 543 461 } … … 559 477 } 560 478 print STDERR "# About to run \"", join (' ', @run), "\"\n" if $DEBUG; 561 net_write ("# About to run \"", join (' ', @run), "\"\n") if $DEBUG;479 # net_write ("# About to run \"", join (' ', @run), "\"\n") if $DEBUG; 562 480 exec (@run) if @run; 563 481 } 564 482 else 565 483 { 566 net_write ("# Execing...\n") if $DEBUG;484 # net_write ("# Execing...\n") if $DEBUG; 567 485 exec ("$servicedir/$service", $command); 568 486 } 569 487 } 570 488 else { 571 net_write ("# Unable to fork.\n");489 # net_write ("# Unable to fork.\n"); 572 490 logger ("Unable to fork."); 573 491 } … … 613 531 } 614 532 elsif (/^starttls\s*$/i) { 615 start_tls (); 533 my $mode; 534 my $key; 535 my $cert; 536 my $depth; 537 $key = $cert = &get_var (\%sconf, "tls_pem"); 538 $key = &get_var (\%sconf, "tls_private_key") 539 unless defined $key; 540 $key = "@@CONFDIR@@/munin-node.pem" unless defined $key; 541 $cert = &get_var (\%sconf, "tls_certificate") 542 unless defined $cert; 543 $cert = "@@CONFDIR@@/munin-node.pem" unless defined $cert; 544 $mode = &get_var (\%sconf, 'tls'); 545 $mode = "auto" unless defined $mode and length $mode; 546 $depth = &get_var (\%sconf, 'tls_verify_depth'); 547 $depth = 5 unless defined $depth; 548 start_tls ($mode, $cert, $key, 549 &get_var (\%sconf, 'tls_verify_certificate'), 550 $depth 551 ); 616 552 logger ("DEBUG: Returned from starttls.") if $DEBUG; 617 553 } … … 622 558 } 623 559 624 sub net_read 560 sub net_read 625 561 { 626 562 if (defined $tls) 627 563 { 628 eval { $_ = Net::SSLeay::read($tls); } 564 eval { $_ = Net::SSLeay::read($tls); }; 565 my $err = &Net::SSLeay::print_errs(); 566 if (defined $err and length $err) 567 { 568 logger ("TLS Warning in net_read: $err"); 569 } 629 570 } 630 571 else … … 636 577 } 637 578 638 sub net_write 579 sub net_write 639 580 { 640 581 my $text = shift; … … 642 583 if (defined $tls) 643 584 { 644 eval { Net::SSLeay::write ($tls, $text); } 585 eval { Net::SSLeay::write ($tls, $text); }; 586 my $err = &Net::SSLeay::print_errs(); 587 if (defined $err and length $err) 588 { 589 logger ("TLS Warning in net_write: $err"); 590 } 645 591 } 646 592 else … … 650 596 } 651 597 652 sub start_tls 653 { 654 $ctx = Net::SSLeay::CTX_new() or die_now "CTX_new ($ctx) ($!)"; 655 $tls = Net::SSLeay::new($ctx) or die_now "new ($tls) ($!)"; 656 Net::SSLeay::set_options($tls, &Net::SSLeay::OP_ALL) 657 and die_if_ssl_error("ssl set options"); 658 659 Net::SSLeay::use_RSAPrivateKey_file ($tls, '/etc/munin/munin.pem', 660 &Net::SSLeay::FILETYPE_PEM); 661 die_if_ssl_error("Fatal TLS error with private key."); 662 Net::SSLeay::use_certificate_file ($tls, '/etc/munin/munin.pem', 663 &Net::SSLeay::FILETYPE_PEM); 664 die_if_ssl_error("Fatal TLS error with certificate."); 665 666 print "200 TLS OK\n"; 667 668 open(TLSSTDIN, "<&".fileno(STDIN)) or die $!; 669 open(TLSSTDOUT, "<&".fileno(STDIN)) or die $!; 670 logger ("DEBUG: Encrypted filehandles (fileno = ".fileno(TLSSTDIN).", ".fileno(TLSSTDOUT).").") if $DEBUG; 671 close (STDIN); 672 close (STDOUT); 673 Net::SSLeay::set_rfd($tls, fileno(TLSSTDIN)); 674 Net::SSLeay::set_wfd($tls, fileno(TLSSTDOUT)); 675 Net::SSLeay::accept($tls) and die_if_ssl_error("Fatal error in TLS accept."); 676 logger ("Cipher `" . Net::SSLeay::get_cipher($tls) . "'\n"); 598 sub tls_verify_callback 599 { 600 my ($ok, $subj_cert, $issuer_cert, $depth, 601 $errorcode, $arg, $chain) = @_; 602 603 $tls_verified{"level"}++; 604 605 if ($ok and $tls_verified{"level"} <= $tls_verified{"required_depth"}) 606 { 607 $tls_verified{"verified"} = 1; 608 logger ("TLS Notice: Verified certificate.") if $DEBUG; 609 return 1; # accept 610 } 611 612 return 1; # accept anyway 613 } 614 615 sub start_tls 616 { 617 my $tls_paranoia = shift; 618 my $tls_cert = shift; 619 my $tls_priv = shift; 620 my $tls_verify = shift; 621 my $tls_vdepth = shift; 622 623 my $err; 624 my $ctx; 625 my $local_key = 0; 626 627 %tls_verified = ( "level" => 0, "cert" => "", "verified" => 0, "required_depth" => $tls_vdepth ); 628 629 if ($tls_paranoia eq "disabled") 630 { 631 logger ("TLS Notice: Refusing TLS request from peer."); 632 net_write ("TLS NOT AVAILABLE\n"); 633 return 0 634 } 635 636 logger("Enabling TLS.") if $DEBUG; 637 if (! eval "require Net::SSLeay;") 638 { 639 if ($tls_paranoia eq "auto") 640 { 641 logger ("Notice: TLS requested by peer, but Net::SSLeay unavailable."); 642 return 0; 643 } 644 else # tls really required 645 { 646 logger ("Fatal: TLS enabled but Net::SSLeay unavailable."); 647 exit 0; 648 } 649 } 650 651 # Init SSLeay 652 Net::SSLeay::load_error_strings(); 653 Net::SSLeay::SSLeay_add_ssl_algorithms(); 654 Net::SSLeay::randomize(); 655 $ctx = Net::SSLeay::CTX_new(); 656 if (!$ctx) 657 { 658 logger ("TLS Error: Could not create SSL_CTX: " . &Net::SSLeay::print_errs()); 659 return 0; 660 } 661 662 # Tune a few things... 663 if (Net::SSLeay::CTX_set_options($ctx, &Net::SSLeay::OP_ALL)) 664 { 665 logger ("TLS Error: Could not set SSL_CTX options: " . &Net::SSLeay::print_errs()); 666 return 0; 667 } 668 669 # Should we use a private key? 670 if (-e $tls_priv or $tls_paranoia eq "paranoid") 671 { 672 if (defined $tls_priv and length $tls_priv) 673 { 674 if (!Net::SSLeay::CTX_use_PrivateKey_file($ctx, $tls_priv, 675 &Net::SSLeay::FILETYPE_PEM)) 676 { 677 logger ("TLS Notice: Problem occured when trying to read file with private key \"$tls_priv\": ".&Net::SSLeay::print_errs().". Continuing without private key."); 678 } 679 else 680 { 681 $local_key = 1; 682 } 683 } 684 } 685 else 686 { 687 logger ("TLS Notice: No key file \"$tls_priv\". Continuing without private key."); 688 } 689 690 # How about a certificate? 691 if (-e $tls_cert) 692 { 693 if (defined $tls_cert and length $tls_cert) 694 { 695 if (!Net::SSLeay::CTX_use_certificate_file($ctx, $tls_cert, 696 &Net::SSLeay::FILETYPE_PEM)) 697 { 698 logger ("TLS Notice: Problem occured when trying to read file with certificate \"$tls_cert\": ".&Net::SSLeay::print_errs().". Continuing without certificate."); 699 } 700 } 701 } 702 else 703 { 704 logger ("TLS Notice: No certificate file \"$tls_cert\". Continuing without certificate."); 705 } 706 707 # Tell the other side that we're able to talk TLS 708 if ($local_key) 709 { 710 print "TLS OK\n"; 711 } 712 else 713 { 714 print "TLS MAYBE\n"; 715 } 716 717 # Now let's define our requirements of the node 718 $tls_vdepth = 5 unless defined $tls_vdepth; 719 Net::SSLeay::CTX_set_verify_depth ($ctx, $tls_vdepth); 720 $err = &Net::SSLeay::print_errs(); 721 if (defined $err and length $err) 722 { 723 logger ("TLS Warning in set_verify_depth: $err"); 724 } 725 Net::SSLeay::CTX_set_verify ($ctx, &Net::SSLeay::VERIFY_PEER, \&tls_verify_callback); 726 $err = &Net::SSLeay::print_errs(); 727 if (defined $err and length $err) 728 { 729 logger ("TLS Warning in set_verify: $err"); 730 } 731 732 # Create the local tls object 733 if (! ($tls = Net::SSLeay::new($ctx))) 734 { 735 logger ("TLS Error: Could not create TLS: " . &Net::SSLeay::print_errs()); 736 return 0; 737 } 738 if ($DEBUG) 739 { 740 my $i = 0; 741 my $p = ''; 742 my $cipher_list = 'Cipher list: '; 743 $p=Net::SSLeay::get_cipher_list($tls,$i); 744 $cipher_list .= $p if $p; 745 do { 746 $i++; 747 $cipher_list .= ', ' . $p if $p; 748 $p=Net::SSLeay::get_cipher_list($tls,$i); 749 } while $p; 750 $cipher_list .= '\n'; 751 logger ("TLS Notice: Available cipher list: $cipher_list."); 752 } 753 754 # Redirect stdout/stdin to the TLS 755 Net::SSLeay::set_rfd($tls, fileno(STDIN)); 756 $err = &Net::SSLeay::print_errs(); 757 if (defined $err and length $err) 758 { 759 logger ("TLS Warning in set_rfd: $err"); 760 } 761 Net::SSLeay::set_wfd($tls, fileno(STDOUT)); 762 $err = &Net::SSLeay::print_errs(); 763 if (defined $err and length $err) 764 { 765 logger ("TLS Warning in set_wfd: $err"); 766 } 767 768 # Try to negotiate the tls connection 769 my $res; 770 if ($local_key) 771 { 772 $res = Net::SSLeay::accept($tls); 773 } 774 else 775 { 776 $res = Net::SSLeay::connect($tls); 777 } 778 $err = &Net::SSLeay::print_errs(); 779 if (defined $err and length $err) 780 { 781 logger ("TLS Error: Could not enable TLS: " . $err); 782 Net::SSLeay::free ($tls); 783 Net::SSLeay::CTX_free ($ctx); 784 $tls = undef; 785 } 786 elsif (!$tls_verified{"verified"} and $tls_paranoia eq "paranoid") 787 { 788 logger ("TLS Error: Could not verify CA: " . Net::SSLeay::dump_peer_certificate($tls)); 789 Net::SSLeay::free ($tls); 790 Net::SSLeay::CTX_free ($ctx); 791 $tls = undef; 792 } 793 else 794 { 795 logger ("TLS Notice: TLS enabled."); 796 logger ("TLS Notice: Cipher `" . Net::SSLeay::get_cipher($tls) . "'."); 797 $tls_verified{"cert"} = Net::SSLeay::dump_peer_certificate($tls); 798 logger ("TLS Notice: client cert: " .$tls_verified{"cert"}); 799 } 800 801 return $tls; 677 802 } 678 803 … … 811 936 $sconf->{$service}{'env'}{"lrrd_$1"} = $2; 812 937 net_write ("Saving $service->env->lrrd_$1 = $2...\n") if $DEBUG; 813 warn "Warning: Deprecated format in \"$dir/$file\" under \"[$service]\" (\"$1 $2\" should be rewritten to \"env lrrd_$1=$2\").";938 warn "Warning: Deprecated format in \"$dir/$file\" under \"[$service]\" (\"$1 $2\" should be rewritten to \"env lrrd_$1=$2\")."; 814 939 } 815 940 elsif (/\S/) … … 890 1015 my $env = shift; 891 1016 1017 if (!defined $var and defined $name) 1018 { 1019 return $sconf{$name}; 1020 } 892 1021 if ($var eq 'env' and !defined $env) 893 1022 { … … 904 1033 (my $tmpservice = $wildservice) =~ s/\*$//; 905 1034 next unless ($name =~ /^$tmpservice/); 906 net_write ("Checking $wildservice...\n") if $DEBUG;1035 # net_write ("# Checking $wildservice...\n") if $DEBUG; 907 1036 908 1037 if ($var eq 'env') people/ilmari/modularisation-branch/node/munin-run.in
r864 r1012 20 20 # $Id$ 21 21 # 22 # $Log$23 # Revision 1.12 2004/12/22 21:33:48 jimmyo24 # Remove hardcoding of default user/group to run the plugin (SF#1083251).25 #26 # Revision 1.11 2004/12/22 20:48:23 jimmyo27 # Fix bug when encountering strange environment.28 #29 # Revision 1.10 2004/12/09 17:13:36 jimmyo30 # Munin-run: Now behaves properly when running invalid plugins (SF#1074242).31 #32 # Revision 1.9 2004/11/20 23:34:35 jimmyo33 # Updated munin-run with extra options already checked into munin-node.34 #35 # Revision 1.8 2004/11/20 00:07:19 jimmyo36 # Handle execution problems better.37 #38 # Revision 1.7 2004/11/16 20:00:42 jimmyo39 # License cleanups.40 #41 # Revision 1.6 2004/04/30 13:14:53 jimmyo42 # Added support for snmpconf option in plugins.43 #44 # Revision 1.5 2004/01/29 19:39:00 jimmyo45 # Generic plugins now use printf instead of echo -n, as this is more portable (SF#885564)46 #47 # Revision 1.4 2004/01/29 17:36:19 jimmyo48 # Updated copyright information49 #50 # Revision 1.3 2004/01/29 16:56:54 jimmyo51 # Fixed "group" bug. Added support for multiple and optional groups52 #53 # Revision 1.2 2004/01/15 15:20:01 jimmyo54 # Making things workable after name change. Upping for test verwion.55 #56 # Revision 1.1 2004/01/02 18:50:00 jimmyo57 # Renamed occurrances of lrrd -> munin58 #59 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo60 # Import of LRRD CVS tree after renaming to Munin61 #62 # Revision 1.16 2003/12/18 18:51:37 jimmyo63 # added configuration option "ignore_file", which takes regex for files to ignore (e.g. rpmnew/save) (Deb#224265).64 #65 # Revision 1.15 2003/12/18 17:58:18 jimmyo66 # Do a fake clean of the environment because of the taint checking.67 #68 # Revision 1.14 2003/12/17 21:29:26 jimmyo69 # Don\'t try to change uid/gid if not running as root. (Deb#224300)70 #71 # Revision 1.13 2003/12/10 15:30:02 jimmyo72 # Set path before trying to get hostname73 #74 # Revision 1.12 2003/12/10 15:11:40 jimmyo75 # A couple of bugfixes.76 #77 # Revision 1.11 2003/11/07 17:43:16 jimmyo78 # Cleanups and log entries79 #80 #81 22 82 23 use strict; … … 187 128 if ($do_version) 188 129 { 189 print "munin-run (munin-node) version $VERSION. 130 print <<"EOT"; 131 munin-run (munin-node) version $VERSION. 190 132 Written by Jimmy Olsen / Linpro AS 191 133 192 Copyright (C) 2002-2004 193 This is free software released under the GNU Public License. There is NO 194 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 195 "; 134 Copyright (C) 2002-2005 135 136 This is free software released under the GNU General Public License. There 137 is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 138 PURPOSE. For details, please refer to the file COPYING that is included 139 with this software or refer to 140 http://www.fsf.org/licensing/licenses/gpl.txt 141 EOT 196 142 exit 0; 197 143 } people/ilmari/modularisation-branch/node/node.d.aix/cpu.in
r864 r1012 3 3 # Developed 05/28/2003 by Mike Discenza 4 4 # mike.discenza@dillards.com 5 #6 # $Log$7 # Revision 1.2 2004/02/18 16:39:35 jimmyo8 # Turned off scaling of values for cpu-graphs (no more nano-percentages).9 #10 # Revision 1.1 2004/01/02 18:50:00 jimmyo11 # Renamed occurrances of lrrd -> munin12 #13 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo14 # Import of LRRD CVS tree after renaming to Munin15 #16 # Revision 1.2 2003/11/07 17:43:16 jimmyo17 # Cleanups and log entries18 #19 5 # 20 6 # Plugin to monitor CPU usage on AIX (4.3.3 and 5.x). people/ilmari/modularisation-branch/node/node.d.aix/df.in
r864 r1012 2 2 # 3 3 # Script to monitor disk usage. 4 #5 # $Log$6 # Revision 1.2 2004/05/18 22:04:29 jimmyo7 # Use "sed 1d" instead of "tail +2" in df plugins (patch by Olivier Delhomme).8 #9 # Revision 1.1 2004/01/02 18:50:00 jimmyo10 # Renamed occurrances of lrrd -> munin11 #12 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo13 # Import of LRRD CVS tree after renaming to Munin14 #15 # Revision 1.2 2003/11/07 17:43:16 jimmyo16 # Cleanups and log entries17 #18 #19 4 # 20 5 # DESCRIPTION people/ilmari/modularisation-branch/node/node.d.aix/iostat.hd_only.in
r864 r1012 1 1 #!@@PERL@@ -w 2 #3 # $Log$4 # Revision 1.4 2004/12/10 18:51:43 jimmyo5 # linux/apt* has been forced to LANG=C, to get predictable output.6 #7 # Revision 1.3 2004/12/10 10:47:48 jimmyo8 # Change name from ${scale} to ${graph_period}, to be more consistent.9 #10 # Revision 1.2 2004/12/09 22:12:55 jimmyo11 # Added "graph_period" option, to make "graph_sums" usable.12 #13 # Revision 1.1 2004/01/02 18:50:00 jimmyo14 # Renamed occurrances of lrrd -> munin15 #16 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo17 # Import of LRRD CVS tree after renaming to Munin18 #19 # Revision 1.2 2003/11/07 17:43:16 jimmyo20 # Cleanups and log entries21 #22 #23 2 # 24 3 # Plugin for watching io-bound traffic (in KiloBytes) on disks. people/ilmari/modularisation-branch/node/node.d.aix/iostat.in
r864 r1012 1 1 #!@@PERL@@ -w 2 #3 # $Log$4 # Revision 1.4 2004/12/10 18:51:43 jimmyo5 # linux/apt* has been forced to LANG=C, to get predictable output.6 #7 # Revision 1.3 2004/12/10 10:47:49 jimmyo8 # Change name from ${scale} to ${graph_period}, to be more consistent.9 #10 # Revision 1.2 2004/12/09 22:12:55 jimmyo11 # Added "graph_period" option, to make "graph_sums" usable.12 #13 # Revision 1.1 2004/01/02 18:50:00 jimmyo14 # Renamed occurrances of lrrd -> munin15 #16 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo17 # Import of LRRD CVS tree after renaming to Munin18 #19 # Revision 1.2 2003/11/07 17:43:16 jimmyo20 # Cleanups and log entries21 #22 #23 2 # 24 3 # Plugin for watching io-bound traffic (in KiloBytes) on disks. people/ilmari/modularisation-branch/node/node.d.aix/iostat.vp_only.in
r864 r1012 1 1 #!@@PERL@@ -w 2 #3 # $Log$4 # Revision 1.4 2004/12/10 18:51:43 jimmyo5 # linux/apt* has been forced to LANG=C, to get predictable output.6 #7 # Revision 1.3 2004/12/10 10:47:49 jimmyo8 # Change name from ${scale} to ${graph_period}, to be more consistent.9 #10 # Revision 1.2 2004/12/09 22:12:55 jimmyo11 # Added "graph_period" option, to make "graph_sums" usable.12 #13 # Revision 1.1 2004/01/02 18:50:00 jimmyo14 # Renamed occurrances of lrrd -> munin15 #16 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo17 # Import of LRRD CVS tree after renaming to Munin18 #19 # Revision 1.2 2003/11/07 17:43:16 jimmyo20 # Cleanups and log entries21 #22 #23 2 # 24 3 # Plugin for watching io-bound traffic (in KiloBytes) on disks. people/ilmari/modularisation-branch/node/node.d.aix/memory.in
r864 r1012 3 3 # Developed 05/28/2003 by Mike Discenza 4 4 # mike.discenza@dillards.com 5 #6 # $Log$7 # Revision 1.1 2004/01/02 18:50:00 jimmyo8 # Renamed occurrances of lrrd -> munin9 #10 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo11 # Import of LRRD CVS tree after renaming to Munin12 #13 # Revision 1.2 2003/11/07 17:43:16 jimmyo14 # Cleanups and log entries15 #16 #17 5 # 18 6 #Important Note: people/ilmari/modularisation-branch/node/node.d.aix/netstat.in
r864 r1012 14 14 # None known. /usr/bin/netstat should be executable by everyone by 15 15 # default. 16 #17 # $Log$18 # Revision 1.4 2004/12/10 18:51:43 jimmyo19 # linux/apt* has been forced to LANG=C, to get predictable output.20 #21 # Revision 1.3 2004/12/10 10:47:49 jimmyo22 # Change name from ${scale} to ${graph_period}, to be more consistent.23 #24 # Revision 1.2 2004/12/09 22:12:55 jimmyo25 # Added "graph_period" option, to make "graph_sums" usable.26 #27 # Revision 1.1 2004/01/02 18:50:00 jimmyo28 # Renamed occurrances of lrrd -> munin29 #30 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo31 # Import of LRRD CVS tree after renaming to Munin32 #33 # Revision 1.2 2003/11/07 17:43:16 jimmyo34 # Cleanups and log entries35 #36 #37 16 # 38 17 # Parameters: people/ilmari/modularisation-branch/node/node.d.aix/processes.in
r864 r1012 19 19 # be graphed as well. This can be useful for watching how many processes 20 20 # of a particular type are running. 21 #22 # $Log$23 # Revision 1.1 2004/01/02 18:50:00 jimmyo24 # Renamed occurrances of lrrd -> munin25 #26 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo27 # Import of LRRD CVS tree after renaming to Munin28 #29 # Revision 1.2 2003/11/07 17:43:16 jimmyo30 # Cleanups and log entries31 #32 #33 21 # 34 22 # Parameters: people/ilmari/modularisation-branch/node/node.d.aix/swap.in
r864 r1012 3 3 # Developed 05/28/2003 by Mike Discenza 4 4 # mike.discenza@dillards.com 5 #6 # $Log$7 # Revision 1.1 2004/01/02 18:50:00 jimmyo8 # Renamed occurrances of lrrd -> munin9 #10 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo11 # Import of LRRD CVS tree after renaming to Munin12 #13 # Revision 1.2 2003/11/07 17:43:16 jimmyo14 # Cleanups and log entries15 #16 #17 #18 5 # 19 6 # Plugin to monitor memory usage on AIX. people/ilmari/modularisation-branch/node/node.d.freebsd/cpu.in
r864 r1012 9 9 # config (required) 10 10 # autoconf (optional - used by munin-config) 11 #12 # $Log$13 # Revision 1.11 2005/01/28 16:34:15 lupe14 # Minor corrections15 #16 # Revision 1.10 2005/01/28 14:47:31 lupe17 # Add graph_info and some filed.info18 #19 # Revision 1.9 2005/01/25 08:48:28 lupe20 # Correct multi-CPU bugs21 #22 # Revision 1.8 2004/12/09 22:12:55 jimmyo23 # Added "graph_period" option, to make "graph_sums" usable.24 #25 # Revision 1.7 2004/11/28 09:43:54 lupe26 # 6-CURRENT support27 #28 # Revision 1.6 2004/11/21 00:16:56 jimmyo29 # Changed a lot of plugins so they use DERIVE instead of COUNTER.30 #31 # Revision 1.5 2004/05/20 19:02:36 jimmyo32 # Set categories on a bunch of plugins33 #34 # Revision 1.4 2004/05/09 19:18:35 jimmyo35 # Added support for scaleto100-parameter (patch from Lupe Christoph).36 #37 # Revision 1.3 2004/02/18 16:39:36 jimmyo38 # Turned off scaling of values for cpu-graphs (no more nano-percentages).39 #40 # Revision 1.2 2004/02/01 18:59:54 lupe41 # FreeBSD 5 compatibility.42 #43 # Revision 1.1 2004/01/02 18:50:00 jimmyo44 # Renamed occurrances of lrrd -> munin45 #46 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo47 # Import of LRRD CVS tree after renaming to Munin48 #49 # Revision 1.3 2003/11/07 17:43:16 jimmyo50 # Cleanups and log entries51 #52 #53 11 # 54 12 # Magic markers - optional - used by installation scripts and people/ilmari/modularisation-branch/node/node.d.freebsd/df.in
r864 r1012 7 7 # config (required) 8 8 # autoconf (optional - used by munin-config) 9 #10 # $Log$11 # Revision 1.7 2005/01/28 16:19:17 lupe12 # Minor corrections13 #14 # Revision 1.6 2005/01/28 14:47:31 lupe15 # Add graph_info and some filed.info16 #17 # Revision 1.5 2005/01/28 13:25:34 lupe18 # Add support for FreeBSD 4.x ramdisks19 #20 # Revision 1.4 2004/05/20 19:02:36 jimmyo21 # Set categories on a bunch of plugins22 #23 # Revision 1.3 2004/05/18 22:04:30 jimmyo24 # Use "sed 1d" instead of "tail +2" in df plugins (patch by Olivier Delhomme).25 #26 # Revision 1.2.2.1 2005/01/25 10:32:40 lupe27 # Add support for FreeBSD 4.x ramdisks28 #29 # Revision 1.2 2004/02/01 19:00:29 lupe30 # Ignore devfs,fdescfs,linprocfs in addition to procfs,nfs.31 #32 # Revision 1.1 2004/01/02 18:50:00 jimmyo33 # Renamed occurrances of lrrd -> munin34 #35 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo36 # Import of LRRD CVS tree after renaming to Munin37 #38 # Revision 1.3 2003/11/07 17:43:16 jimmyo39 # Cleanups and log entries40 #41 #42 9 # 43 10 # Magic markers (optional - used by munin-config and installation people/ilmari/modularisation-branch/node/node.d.freebsd/df_inode.in
r864 r1012 7 7 # config (required) 8 8 # autoconf (optional - used by munin-config) 9 #10 # $Log$11 # Revision 1.8 2005/02/03 13:28:10 lupe12 # correct field.info13 #14 # Revision 1.7 2005/01/28 16:19:17 lupe15 # Minor corrections16 #17 # Revision 1.6 2005/01/28 14:47:31 lupe18 # Add graph_info and some filed.info19 #20 # Revision 1.5 2005/01/28 13:25:34 lupe21 # Add support for FreeBSD 4.x ramdisks22 #23 # Revision 1.4 2004/05/20 19:02:36 jimmyo24 # Set categories on a bunch of plugins25 #26 # Revision 1.3 2004/05/18 22:04:30 jimmyo27 # Use "sed 1d" instead of "tail +2" in df plugins (patch by Olivier Delhomme).28 #29 # Revision 1.2.2.1 2005/01/25 10:32:40 lupe30 # Add support for FreeBSD 4.x ramdisks31 #32 # Revision 1.2 2004/02/01 19:00:29 lupe33 # Ignore devfs,fdescfs,linprocfs in addition to procfs,nfs.34 #35 # Revision 1.1 2004/01/02 18:50:00 jimmyo36 # Renamed occurrances of lrrd -> munin37 #38 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo39 # Import of LRRD CVS tree after renaming to Munin40 #41 # Revision 1.3 2003/11/07 17:43:16 jimmyo42 # Cleanups and log entries43 #44 #45 9 # 46 10 # Magic markers (optional - used by munin-config and installation people/ilmari/modularisation-branch/node/node.d.freebsd/if_.in
r864 r1012 9 9 # 10 10 # Any device found in /usr/bin/netstat can be monitored. 11 #12 # $Log$13 # Revision 1.7 2005/02/17 11:09:05 lupe14 # Added warning note in if_ output.15 #16 # Revision 1.6 2005/01/28 16:19:16 lupe17 # Minor corrections18 #19 # Revision 1.5 2005/01/28 14:47:31 lupe20 # Add graph_info and some filed.info21 #22 # Revision 1.4 2004/12/10 10:47:49 jimmyo23 # Change name from ${scale} to ${graph_period}, to be more consistent.24 #25 # Revision 1.3 2004/12/09 22:12:55 jimmyo26 # Added "graph_period" option, to make "graph_sums" usable.27 #28 # Revision 1.2 2004/05/20 19:02:36 jimmyo29 # Set categories on a bunch of plugins30 #31 # Revision 1.1 2004/01/02 18:50:00 jimmyo32 # Renamed occurrances of lrrd -> munin33 #34 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo35 # Import of LRRD CVS tree after renaming to Munin36 #37 # Revision 1.3 2003/11/07 22:12:50 jimmyo38 # Changed deprecated plugin options39 #40 # Revision 1.2 2003/11/07 17:43:16 jimmyo41 # Cleanups and log entries42 #43 #44 11 # 45 12 # Magic markers (optional - used by munin-config and some installation … … 93 60 /usr/bin/netstat -i -b -I $INTERFACE | awk ' 94 61 /<Link#[0-9]*>/ { 95 print "rbytes.value", $7; 96 print "obytes.value", $10; 62 if (NF == 10) { 63 print "rbytes.value", $6; 64 print "obytes.value", $9; 65 } else { 66 print "rbytes.value", $7; 67 print "obytes.value", $10; 68 } 97 69 }' people/ilmari/modularisation-branch/node/node.d.freebsd/if_errcoll_.in
r864 r1012 9 9 # 10 10 # Any device found in /usr/bin/netstat can be monitored. 11 #12 # $Log$13 # Revision 1.5 2005/01/28 14:47:31 lupe14 # Add graph_info and some filed.info15 #16 # Revision 1.4 2004/12/10 10:47:49 jimmyo17 # Change name from ${scale} to ${graph_period}, to be more consistent.18 #19 # Revision 1.3 2004/12/09 22:12:55 jimmyo20 # Added "graph_period" option, to make "graph_sums" usable.21 #22 # Revision 1.2 2004/05/20 19:02:36 jimmyo23 # Set categories on a bunch of plugins24 #25 # Revision 1.1 2004/01/02 18:50:00 jimmyo26 # Renamed occurrances of lrrd -> munin27 #28 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo29 # Import of LRRD CVS tree after renaming to Munin30 #31 # Revision 1.2 2003/11/07 17:43:16 jimmyo32 # Cleanups and log entries33 #34 #35 11 # 36 12 # Magic markers (optional - used by munin-config and some installation … … 80 56 /usr/bin/netstat -i -b -I $INTERFACE | awk ' 81 57 /<Link#[0-9]*>/ { 82 print "ierrors.value", $6; 83 print "oerrors.value", $9; 84 print "collisions.value", $11; 58 if (NF == 10) { 59 print "ierrors.value", $5; 60 print "oerrors.value", $8; 61 print "collisions.value", $10; 62 } else { 63 print "ierrors.value", $6; 64 print "oerrors.value", $9; 65 print "collisions.value", $11; 66 } 85 67 }' people/ilmari/modularisation-branch/node/node.d.freebsd/load.in
r864 r1012 7 7 # Magic markers (optional - only used by munin-config and some 8 8 # installation scripts): 9 #10 # $Log$11 # Revision 1.4 2005/01/28 14:47:31 lupe12 # Add graph_info and some filed.info13 #14 # Revision 1.3 2004/05/20 19:02:36 jimmyo15 # Set categories on a bunch of plugins16 #17 # Revision 1.2 2004/01/15 16:58:10 jimmyo18 # FreeBSD-plugin load bugfix from Robert Lindgren (SF#865928).19 #20 # Revision 1.1 2004/01/02 18:50:00 jimmyo21 # Renamed occurrances of lrrd -> munin22 #23 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo24 # Import of LRRD CVS tree after renaming to Munin25 #26 # Revision 1.3 2003/11/07 17:43:16 jimmyo27 # Cleanups and log entries28 #29 #30 9 # 31 10 #%# family=auto people/ilmari/modularisation-branch/node/node.d.freebsd/memory.in
r864 r1012 7 7 # config (required) 8 8 # autoconf (optional - only used by munin-config) 9 #10 # $Log$11 # Revision 1.3 2005/01/28 14:47:31 lupe12 # Add graph_info and some filed.info13 #14 # Revision 1.2 2004/05/20 19:02:36 jimmyo15 # Set categories on a bunch of plugins16 #17 # Revision 1.1 2004/01/02 18:50:00 jimmyo18 # Renamed occurrances of lrrd -> munin19 #20 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo21 # Import of LRRD CVS tree after renaming to Munin22 #23 # Revision 1.3 2003/11/07 17:43:16 jimmyo24 # Cleanups and log entries25 #26 #27 9 # 28 10 # Magic markers (optional - only used by munin-config and some people/ilmari/modularisation-branch/node/node.d.freebsd/netstat.in
r864 r1012 7 7 # config (required) 8 8 # autoconf (optional - only used by munin-config) 9 #10 # $Log$11 # Revision 1.6 2005/01/28 14:47:31 lupe12 # Add graph_info and some filed.info13 #14 # Revision 1.5 2004/12/10 10:47:49 jimmyo15 # Change name from ${scale} to ${graph_period}, to be more consistent.16 #17 # Revision 1.4 2004/12/09 22:12:55 jimmyo18 # Added "graph_period" option, to make "graph_sums" usable.19 #20 # Revision 1.3 2004/11/21 00:16:56 jimmyo21 # Changed a lot of plugins so they use DERIVE instead of COUNTER.22 #23 # Revision 1.2 2004/05/20 19:02:36 jimmyo24 # Set categories on a bunch of plugins25 #26 # Revision 1.1 2004/01/02 18:50:00 jimmyo27 # Renamed occurrances of lrrd -> munin28 #29 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo30 # Import of LRRD CVS tree after renaming to Munin31 #32 # Revision 1.3 2003/11/07 17:43:16 jimmyo33 # Cleanups and log entries34 #35 #36 9 # 37 10 # Magic markers (optional - used by munin-config and some installation people/ilmari/modularisation-branch/node/node.d.freebsd/open_files.in
r864 r1012 7 7 # config (required) 8 8 # autoconf (optional - used by munin-config) 9 #10 # $Log$11 # Revision 1.3 2005/01/28 14:47:31 lupe12 # Add graph_info and some filed.info13 #14 # Revision 1.2 2004/05/20 19:02:36 jimmyo15 # Set categories on a bunch of plugins16 #17 # Revision 1.1 2004/01/02 18:50:00 jimmyo18 # Renamed occurrances of lrrd -> munin19 #20 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo21 # Import of LRRD CVS tree after renaming to Munin22 #23 # Revision 1.3 2003/11/07 17:43:16 jimmyo24 # Cleanups and log entries25 #26 #27 9 # 28 10 # Magic markers (Used by munin-config and some installation scripts. people/ilmari/modularisation-branch/node/node.d.freebsd/processes.in
r864 r1012 8 8 # config (required) 9 9 # autoconf (optional - used by munin-config) 10 #11 # $Log$12 # Revision 1.3 2005/01/28 14:47:31 lupe13 # Add graph_info and some filed.info14 #15 # Revision 1.2 2004/05/20 19:02:36 jimmyo16 # Set categories on a bunch of plugins17 #18 # Revision 1.1 2004/01/02 18:50:00 jimmyo19 # Renamed occurrances of lrrd -> munin20 #21 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo22 # Import of LRRD CVS tree after renaming to Munin23 #24 # Revision 1.2 2003/11/07 17:43:16 jimmyo25 # Cleanups and log entries26 #27 #28 10 # 29 11 # Magick markers (optional - used by munin-config and som installation people/ilmari/modularisation-branch/node/node.d.freebsd/swap.in
r864 r1012 7 7 # config (required) 8 8 # autoconf (optional - used by munin-config) 9 #10 # $Log$11 # Revision 1.7 2005/01/28 16:19:16 lupe12 # Minor corrections13 #14 # Revision 1.6 2005/01/28 14:47:31 lupe15 # Add graph_info and some filed.info16 #17 # Revision 1.5 2004/12/10 10:47:49 jimmyo18 # Change name from ${scale} to ${graph_period}, to be more consistent.19 #20 # Revision 1.4 2004/12/09 22:12:56 jimmyo21 # Added "graph_period" option, to make "graph_sums" usable.22 #23 # Revision 1.3 2004/11/21 00:16:56 jimmyo24 # Changed a lot of plugins so they use DERIVE instead of COUNTER.25 #26 # Revision 1.2 2004/05/20 19:02:36 jimmyo27 # Set categories on a bunch of plugins28 #29 # Revision 1.1 2004/01/02 18:50:00 jimmyo30 # Renamed occurrances of lrrd -> munin31 #32 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo33 # Import of LRRD CVS tree after renaming to Munin34 #35 # Revision 1.4 2003/11/07 22:12:50 jimmyo36 # Changed deprecated plugin options37 #38 # Revision 1.3 2003/11/07 17:43:16 jimmyo39 # Cleanups and log entries40 #41 #42 9 # 43 10 # Magic markers (used by munin-config and some installation scripts (i.e. people/ilmari/modularisation-branch/node/node.d.freebsd/vmstat.in
r864 r1012 8 8 # config (required) 9 9 # autoconf (optional - used by munin-config) 10 #11 # $Log$12 # Revision 1.5 2005/01/28 14:47:31 lupe13 # Add graph_info and some filed.info14 #15 # Revision 1.4 2004/11/28 09:43:54 lupe16 # 6-CURRENT support17 #18 # Revision 1.3 2004/05/20 19:02:36 jimmyo19 # Set categories on a bunch of plugins20 #21 # Revision 1.2 2004/02/01 18:59:54 lupe22 # FreeBSD 5 compatibility.23 #24 # Revision 1.1 2004/01/02 18:50:00 jimmyo25 # Renamed occurrances of lrrd -> munin26 #27 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo28 # Import of LRRD CVS tree after renaming to Munin29 #30 # Revision 1.2 2003/11/07 17:43:16 jimmyo31 # Cleanups and log entries32 #33 #34 10 # 35 11 # Magick markers (optional): people/ilmari/modularisation-branch/node/node.d.linux/apt.in
r864 r1012 25 25 # update. Otherwise, there is a a 1 in <probability> 26 26 # chance that an update will occur. 27 #28 # $Log$29 # Revision 1.4 2004/12/10 18:51:44 jimmyo30 # linux/apt* has been forced to LANG=C, to get predictable output.31 #32 # Revision 1.3 2004/11/26 15:16:42 jimmyo33 # Force plugin linux/apt to use C locale (SF#1072470).34 #35 # Revision 1.2 2004/11/04 19:07:01 jimmyo36 # Adapt linux/apt plugin to work properly with Debian testing/unstable37 # (patch from Rune N. Skillingstad).38 #39 # Revision 1.1 2004/01/02 18:50:01 jimmyo40 # Renamed occurrances of lrrd -> munin41 #42 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo43 # Import of LRRD CVS tree after renaming to Munin44 #45 # Revision 1.3 2003/11/07 17:43:16 jimmyo46 # Cleanups and log entries47 #48 #49 27 # 50 28 # Magic markers - optional - used by installation scripts and people/ilmari/modularisation-branch/node/node.d.linux/apt_all.in
r864 r1012 30 30 # chance that an update will occur. 31 31 # 32 # $Log$33 # Revision 1.2 2004/12/10 18:51:44 jimmyo34 # linux/apt* has been forced to LANG=C, to get predictable output.35 #36 # Revision 1.1 2004/10/19 16:57:15 jimmyo37 # Added new plugin linux/apt_all, contributed by xavier.38 #39 # Revision 1.1 2004/01/02 18:50:01 jimmyo40 # Renamed occurrances of lrrd -> munin41 #42 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo43 # Import of LRRD CVS tree after renaming to Munin44 #45 # Revision 1.3 2003/11/07 17:43:16 jimmyo46 # Cleanups and log entries47 #48 #49 #50 32 # Magic markers - optional - used by installation scripts and 51 33 # munin-config: … … 61 43 $ENV{'LC_ALL'}="C"; 62 44 63 my $statefile = "/var/lib/munin/plugin-state/plugin-apt.state"; 64 my @releases = ("testing","unstable"); 65 45 my $statefile = "@@PLUGSTATE@@/plugin-apt.state"; 46 my @releases = ("stable", "testing","unstable"); 47 48 49 sub print_state() { 50 if(-l $statefile) { 51 die("$statefile is a symbolic link, refusing to read it."); 52 } 53 if (! -e "$statefile") { 54 update_state (); 55 } 56 if (! -e "$statefile") { 57 die ("$statefile does not exist. Something wicked happened."); 58 } 59 open(STATE, "$statefile") 60 or die("Couldn't open state file $statefile for reading."); 61 print while <STATE>; 62 close STATE; 63 } 66 64 67 65 sub update_state() { … … 71 69 open(STATE, ">$statefile") 72 70 or die("Couldn't open state file $statefile for writing."); 73 print STATE "Last update: " . localtime() . "\n"; 71 foreach my $release (@releases) { 72 my $apt="apt-get -u dist-upgrade --print-uris --yes -t $release |"; 73 open (APT, "$apt") or exit 22; 74 75 my @pending = (); 76 my $hold = 0; 77 my @remove = (); 78 my @install = (); 79 80 while (<APT>) 81 { 82 if (/^The following packages will be REMOVED:/) 83 { 84 my $where = 0; 85 while (<APT>) 86 { 87 last if (/^\S/); 88 foreach my $package (split /\s+/) 89 { 90 next unless ($package =~ /\S/); 91 push (@remove, "-$package"); 92 } 93 } 94 } 95 if (/^The following NEW packages will be installed:/) 96 { 97 my $where = 0; 98 while (<APT>) 99 { 100 last if (/^\S/); 101 foreach my $package (split /\s+/) 102 { 103 next unless ($package =~ /\S/); 104 push (@install, "+$package"); 105 } 106 } 107 } 108 if (/^The following packages will be upgraded/) 109 { 110 my $where = 0; 111 while (<APT>) 112 { 113 last if (/^\S/); 114 foreach my $package (split /\s+/) 115 { 116 next unless ($package =~ /\S/); 117 push (@pending, $package); 118 } 119 } 120 } 121 if (/^\d+\spackages upgraded,\s\d+\snewly installed, \d+ to remove and (\d+) not upgraded/) 122 { 123 $hold = $1; 124 } 125 } 126 127 push (@pending, @install) if @install; 128 push (@pending, @remove ) if @remove; 129 close APT; 130 131 print STATE "pending_$release.value ", scalar (@pending), "\n"; 132 if (@pending) 133 { 134 print STATE "pending_$release.extinfo ", join (' ', @pending), "\n"; 135 } 136 print STATE "hold_$release.value $hold\n"; 137 138 } 74 139 close(STATE); 75 140 } … … 141 206 } 142 207 143 144 foreach my $release (@releases) { 145 my $apt="apt-get -u dist-upgrade --print-uris --yes -t $release |"; 146 open (APT, "$apt") or exit 22; 147 148 my @pending = (); 149 my $hold = 0; 150 my @remove = (); 151 my @install = (); 152 153 while (<APT>) 154 { 155 if (/^The following packages will be REMOVED:/) 156 { 157 my $where = 0; 158 while (<APT>) 159 { 160 last if (/^\S/); 161 foreach my $package (split /\s+/) 162 { 163 next unless ($package =~ /\S/); 164 push (@remove, "-$package"); 165 } 166 } 167 } 168 if (/^The following NEW packages will be installed:/) 169 { 170 my $where = 0; 171 while (<APT>) 172 { 173 last if (/^\S/); 174 foreach my $package (split /\s+/) 175 { 176 next unless ($package =~ /\S/); 177 push (@install, "+$package"); 178 } 179 } 180 } 181 if (/^The following packages will be upgraded/) 182 { 183 my $where = 0; 184 while (<APT>) 185 { 186 last if (/^\S/); 187 foreach my $package (split /\s+/) 188 { 189 next unless ($package =~ /\S/); 190 push (@pending, $package); 191 } 192 } 193 } 194 if (/^\d+\spackages upgraded,\s\d+\snewly installed, \d+ to remove and (\d+) not upgraded/) 195 { 196 $hold = $1; 197 } 198 } 199 200 push (@pending, @install) if @install; 201 push (@pending, @remove ) if @remove; 202 close APT; 203 204 print "pending_$release.value ", scalar (@pending), "\n"; 205 if (@pending) 206 { 207 print "pending_$release.extinfo ", join (' ', @pending), "\n"; 208 } 209 print "hold_$release.value $hold\n"; 210 211 } 208 print_state (); 209 212 210 exit 0; 213 211 people/ilmari/modularisation-branch/node/node.d.linux/cps_.in
r864 r1012 21 21 # autoconf (optional - used by munin-config) 22 22 # suggest (optional - used by munin-config) 23 #24 # $Log$25 # Revision 1.8 2004/12/10 18:55:14 jimmyo26 # Removed hardcoded host_name in linux/cps_.27 #28 # Revision 1.7 2004/12/10 18:51:44 jimmyo29 # linux/apt* has been forced to LANG=C, to get predictable output.30 #31 # Revision 1.6 2004/12/10 11:48:42 jimmyo32 # linux/cps_ plugin now groks high numbers.33 #34 # Revision 1.5 2004/12/10 10:47:49 jimmyo35 # Change name from ${scale} to ${graph_period}, to be more consistent.36 #37 # Revision 1.4 2004/12/09 22:12:56 jimmyo38 # Added "graph_period" option, to make "graph_sums" usable.39 #40 # Revision 1.3 2004/11/21 00:16:57 jimmyo41 # Changed a lot of plugins so they use DERIVE instead of COUNTER.42 #43 # Revision 1.2 2004/05/20 19:02:37 jimmyo44 # Set categories on a bunch of plugins45 #46 # Revision 1.1 2004/01/02 18:50:01 jimmyo47 # Renamed occurrances of lrrd -> munin48 #49 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo50 # Import of LRRD CVS tree after renaming to Munin51 #52 # Revision 1.4 2003/11/07 17:43:16 jimmyo53 # Cleanups and log entries54 #55 #56 23 # 57 24 # Magic markers - optional - used by installation scripts and munin-config: people/ilmari/modularisation-branch/node/node.d.linux/cpu.in
r864 r1012 9 9 # config (required) 10 10 # autoconf (optional - used by munin-config) 11 #12 # $Log$13 # Revision 1.8 2004/12/09 22:12:56 jimmyo14 # Added "graph_period" option, to make "graph_sums" usable.15 #16 # Revision 1.7 2004/11/21 00:17:12 jimmyo17 # Changed a lot of plugins so they use DERIVE instead of COUNTER.18 #19 # Revision 1.6 2004/05/20 13:57:12 jimmyo20 # Set categories to some of the plugins.21 #22 # Revision 1.5 2004/05/16 12:34:26 jimmyo23 # Added "info"-fields to linux/cpu and linux/load plugins, to demonstrate how it works.24 #25 # Revision 1.4 2004/05/06 21:39:54 jimmyo26 # Added plugin acpi, contributed by Alexandre Dupouy.27 #28 # Revision 1.3 2004/02/18 16:39:36 jimmyo29 # Turned off scaling of values for cpu-graphs (no more nano-percentages).30 #31 # Revision 1.2 2004/01/31 19:56:37 jimmyo32 # Linux/cpu now graphs all values on a 2.6 kernel (Deb#227946).33 #34 # Revision 1.1 2004/01/02 18:50:01 jimmyo35 # Renamed occurrances of lrrd -> munin36 #37 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo38 # Import of LRRD CVS tree after renaming to Munin39 #40 # Revision 1.2 2003/11/07 17:43:16 jimmyo41 # Cleanups and log entries42 #43 #44 11 # 45 12 # Magic markers - optional - used by installation scripts and people/ilmari/modularisation-branch/node/node.d.linux/df.in
r864 r1012 7 7 # config (required) 8 8 # autoconf (optional - used by munin-config) 9 #10 # $Log$11 # Revision 1.9 2005/03/12 21:33:02 jimmyo12 # Correct fieldname-generation logic.13 #14 # Revision 1.8 2005/03/10 10:07:54 jimmyo15 # Fixed minor bug introduced with yesterdays change.16 #17 # Revision 1.7 2005/03/09 19:09:13 jimmyo18 # Made linux/df work properly with tmpfs and devmapper (Deb#298442)19 #20 # Revision 1.6 2005/02/16 22:48:56 jimmyo21 # linux/df* now ignores bind mounts.22 #23 # Revision 1.5 2004/12/09 20:27:45 jimmyo24 # Sort fields in df*-plugins alphabetically.25 #26 # Revision 1.4 2004/09/25 22:29:16 jimmyo27 # Added info fields to a bunch of plugins.28 #29 # Revision 1.3 2004/05/20 13:57:12 jimmyo30 # Set categories to some of the plugins.31 #32 # Revision 1.2 2004/05/18 22:04:30 jimmyo33 # Use "sed 1d" instead of "tail +2" in df plugins (patch by Olivier Delhomme).34 #35 # Revision 1.1 2004/01/02 18:50:01 jimmyo36 # Renamed occurrances of lrrd -> munin37 #38 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo39 # Import of LRRD CVS tree after renaming to Munin40 #41 # Revision 1.2 2003/11/07 17:43:16 jimmyo42 # Cleanups and log entries43 #44 #45 9 # 46 10 # Magic markers (optional - used by munin-config and installation people/ilmari/modularisation-branch/node/node.d.linux/df_abs.in
r864 r1012 7 7 # config (required) 8 8 # autoconf (optional - used by munin-config) 9 #10 # $Log$11 # Revision 1.3 2005/02/16 22:48:56 jimmyo12 # linux/df* now ignores bind mounts.13 #14 # Revision 1.2 2004/08/24 13:37:29 ilmari15 # Add total line16 #17 # Revision 1.1 2004/08/24 12:26:48 ilmari18 # Added plugin linux/df_abs19 9 # 20 10 # Magic markers (optional - used by munin-config and installation people/ilmari/modularisation-branch/node/node.d.linux/df_inode.in
r864 r1012 7 7 # config (required) 8 8 # autoconf (optional - used by munin-config) 9 #10 # $Log$11 # Revision 1.8 2005/03/12 21:33:02 jimmyo12 # Correct fieldname-generation logic.13 #14 # Revision 1.7 2005/02/16 22:48:56 jimmyo15 # linux/df* now ignores bind mounts.16 #17 # Revision 1.6 2004/12/09 20:27:45 jimmyo18 # Sort fields in df*-plugins alphabetically.19 #20 # Revision 1.5 2004/09/25 22:29:16 jimmyo21 # Added info fields to a bunch of plugins.22 #23 # Revision 1.4 2004/05/20 13:57:12 jimmyo24 # Set categories to some of the plugins.25 #26 # Revision 1.3 2004/05/18 22:04:30 jimmyo27 # Use "sed 1d" instead of "tail +2" in df plugins (patch by Olivier Delhomme).28 #29 # Revision 1.2 2004/05/16 11:23:36 jimmyo30 # Bugfix in the linux/df_inode plugin, regarding filesystems without inodes.31 #32 # Revision 1.1 2004/01/02 18:50:01 jimmyo33 # Renamed occurrances of lrrd -> munin34 #35 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo36 # Import of LRRD CVS tree after renaming to Munin37 #38 # Revision 1.2 2003/11/07 17:43:16 jimmyo39 # Cleanups and log entries40 #41 #42 9 # 43 10 # Magic markers (optional - used by munin-config and installation people/ilmari/modularisation-branch/node/node.d.linux/entropy.in
r864 r1012 4 4 # 5 5 # Usage: Link or copy into /etc/munin/node.d/ 6 #7 # $Log$8 # Revision 1.3 2004/09/25 22:29:16 jimmyo9 # Added info fields to a bunch of plugins.10 #11 # Revision 1.2 2004/05/20 13:57:12 jimmyo12 # Set categories to some of the plugins.13 #14 # Revision 1.1 2004/01/02 18:50:01 jimmyo15 # Renamed occurrances of lrrd -> munin16 #17 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo18 # Import of LRRD CVS tree after renaming to Munin19 #20 # Revision 1.3 2003/11/15 11:10:28 jimmyo21 # Various fixes22 #23 # Revision 1.2 2003/11/07 17:43:16 jimmyo24 # Cleanups and log entries25 #26 #27 6 # 28 7 # Magic markers (optional - only used by munin-config and some people/ilmari/modularisation-branch/node/node.d.linux/files_.in
r864 r1012 2 2 # 3 3 # Plugin to monitor the number of open files in the system. 4 #5 # $Log$6 # Revision 1.2 2004/05/20 13:57:12 jimmyo7 # Set categories to some of the plugins.8 #9 # Revision 1.1 2004/01/02 18:50:01 jimmyo10 # Renamed occurrances of lrrd -> munin11 #12 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo13 # Import of LRRD CVS tree after renaming to Munin14 #15 # Revision 1.1 2003/11/24 09:57:27 jimmyo16 # Finn-Arne rewrote files_slapd to a generic files_17 #18 # Revision 1.1 2003/11/10 18:04:32 jimmyo19 # Contribution by Finn-Arne Johansen (SF#839212)20 4 # 21 5 # Parameters: people/ilmari/modularisation-branch/node/node.d.linux/forks.in
r864 r1012 7 7 # config (required) 8 8 # autoconf (optional - used by munin-config) 9 #10 # $Log$11 # Revision 1.4 2004/12/10 10:47:49 jimmyo12 # Change name from ${scale} to ${graph_period}, to be more consistent.13 #14 # Revision 1.3 2004/12/09 22:12:56 jimmyo15 # Added "graph_period" option, to make "graph_sums" usable.16 #17 # Revision 1.2 2004/11/21 00:01:18 jimmyo18 # Moved the forks plugin to the processes category, where it belongs.19 #20 # Revision 1.1 2004/11/20 23:32:16 jimmyo21 # Added new plugin linux/forks, to graph forks per second.22 #23 #24 9 # 25 10 # Magick markers (optional - used by munin-config and som installation people/ilmari/modularisation-branch/node/node.d.linux/fw_conntrack.in
r864 r1012 29 29 # Therefore ASSURED is plotted but not UNREPLIED. 30 30 # NATed will almost always be the same as the total 31 #32 # $Log$33 # Revision 1.4 2004/05/20 19:02:37 jimmyo34 # Set categories on a bunch of plugins35 #36 # Revision 1.3 2004/05/15 21:33:29 jimmyo37 # "Upped" som plugins from contrib/manual to manual or auto.38 #39 # Revision 1.2 2004/05/09 19:12:08 jimmyo40 # Cleanup of linux/fw*-plugins, by Nicolai Langfeldt41 #42 31 # 43 32 # Magic markers? people/ilmari/modularisation-branch/node/node.d.linux/fw_forwarded_local.in
r864 r1012 7 7 # config (required) 8 8 # autoconf (optional - only used by munin-config) 9 #10 #11 # $Log$12 # Revision 1.5 2004/12/09 18:00:00 jimmyo13 # linux/fw_forwarded_local now initialises properly (Deb#284673).14 #15 # Revision 1.4 2004/10/27 17:50:01 jimmyo16 # Fixed typo in linux/fw_forwarded_local (Deb#275535).17 #18 # Revision 1.3 2004/05/20 19:02:37 jimmyo19 # Set categories on a bunch of plugins20 #21 # Revision 1.2 2004/05/15 21:33:29 jimmyo22 # "Upped" som plugins from contrib/manual to manual or auto.23 #24 # Revision 1.1 2004/05/09 21:20:31 jimmyo25 # Added fw_forwarded_local (by Xavier).26 9 # 27 10 # people/ilmari/modularisation-branch/node/node.d.linux/fw_packets.in
r864 r1012 11 11 # 12 12 # Config variables: 13 #14 # $Log$15 # Revision 1.8 2004/12/10 18:51:44 jimmyo16 # linux/apt* has been forced to LANG=C, to get predictable output.17 #18 # Revision 1.7 2004/12/10 10:47:49 jimmyo19 # Change name from ${scale} to ${graph_period}, to be more consistent.20 #21 # Revision 1.6 2004/12/09 22:12:56 jimmyo22 # Added "graph_period" option, to make "graph_sums" usable.23 #24 # Revision 1.5 2004/11/21 00:17:12 jimmyo25 # Changed a lot of plugins so they use DERIVE instead of COUNTER.26 #27 # Revision 1.4 2004/10/27 17:53:48 jimmyo28 # Fixed typo in linux/fw_packets (Deb#275537).29 #30 # Revision 1.3 2004/05/20 19:02:37 jimmyo31 # Set categories on a bunch of plugins32 #33 # Revision 1.2 2004/05/15 21:33:29 jimmyo34 # "Upped" som plugins from contrib/manual to manual or auto.35 #36 # Revision 1.1 2004/05/09 19:12:08 jimmyo37 # Cleanup of linux/fw*-plugins, by Nicolai Langfeldt38 #39 # Revision 1.0 2004/05/06 21:39:54 jimmyo40 # fw_packets contributed by S. Banerian41 13 # 42 14 # Magic markers (optional - used by munin-config and some installation people/ilmari/modularisation-branch/node/node.d.linux/i2c.in
r864 r1012 2 2 # 3 3 # NOTE: This plugins is outdated. Use the sensors_ wildcard plugin instead. 4 #5 # $Log$6 # Revision 1.2 2004/02/05 16:47:02 jimmyo7 # Added new wildcard plugin linux/sensors_ that replaces the i2c plugins (SF#890952).8 #9 # Revision 1.1 2004/01/02 18:50:01 jimmyo10 # Renamed occurrances of lrrd -> munin11 #12 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo13 # Import of LRRD CVS tree after renaming to Munin14 #15 # Revision 1.4 2003/11/07 17:43:16 jimmyo16 # Cleanups and log entries17 4 # 18 5 people/ilmari/modularisation-branch/node/node.d.linux/i2c_fan.in
r864 r1012 2 2 # 3 3 # NOTE: This plugins is outdated. Use the sensors_ wildcard plugin instead. 4 #5 # $Log$6 # Revision 1.2 2004/02/05 16:47:02 jimmyo7 # Added new wildcard plugin linux/sensors_ that replaces the i2c plugins (SF#890952).8 #9 # Revision 1.1 2004/01/02 18:50:01 jimmyo10 # Renamed occurrances of lrrd -> munin11 #12 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo13 # Import of LRRD CVS tree after renaming to Munin14 #15 # Revision 1.5 2003/11/07 22:12:50 jimmyo16 # Changed deprecated plugin options17 #18 # Revision 1.4 2003/11/07 17:43:16 jimmyo19 # Cleanups and log entries20 #21 4 # 22 5 #%# family=contrib people/ilmari/modularisation-branch/node/node.d.linux/if_.in
r864 r1012 11 11 # ipsec*, eth*, irda* and lo. Please note that aliases cannot be 12 12 # monitored with this plugin. 13 #14 # $Log$15 # Revision 1.16 2005/03/07 19:22:20 jimmyo16 # Made linux/if_ work with more versions of iwlist (SF#1150954).17 #18 # Revision 1.15 2005/02/17 11:35:11 jimmyo19 # Typo fixes.20 #21 # Revision 1.14 2005/02/16 21:46:19 jimmyo22 # Modified warning note in linux/if_ output.23 #24 # Revision 1.13 2005/02/16 21:27:36 jimmyo25 # Added warning note in linux/if_ output.26 #27 # Revision 1.12 2005/02/16 21:00:29 jimmyo28 # Make suggest a tad less trigger happy.29 #30 # Revision 1.11 2005/02/16 20:32:17 jimmyo31 # Minor bugfix in linux/if_, with info fields.32 #33 # Revision 1.10 2005/02/16 17:08:24 jimmyo34 # linux/if* now treats ra* interfaces as wireless.35 #36 # Revision 1.9 2005/01/29 21:17:27 jimmyo37 # Added madwifi support to linux/if_* plugins.38 #39 # Revision 1.8 2004/12/10 10:47:49 jimmyo40 # Change name from ${scale} to ${graph_period}, to be more consistent.41 #42 # Revision 1.7 2004/12/09 22:12:56 jimmyo43 # Added "graph_period" option, to make "graph_sums" usable.44 #45 # Revision 1.6 2004/11/12 20:08:01 ilmari46 # Fixed linux/if_(err_) braindamage affecting hosts with vlans or47 # multi-digit interface numbers.48 #49 # Revision 1.5 2004/09/26 22:28:42 jimmyo50 # Suggest wlan interfaces as well as eth interfaces.51 #52 # Revision 1.4 2004/09/25 22:29:16 jimmyo53 # Added info fields to a bunch of plugins.54 #55 # Revision 1.3 2004/09/12 20:54:24 jimmyo56 # Plugin now sets max value.57 #58 # Revision 1.2 2004/05/20 13:57:12 jimmyo59 # Set categories to some of the plugins.60 #61 # Revision 1.1 2004/01/02 18:50:01 jimmyo62 # Renamed occurrances of lrrd -> munin63 #64 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo65 # Import of LRRD CVS tree after renaming to Munin66 #67 # Revision 1.3 2003/11/07 22:12:50 jimmyo68 # Changed deprecated plugin options69 #70 # Revision 1.2 2003/11/07 17:43:16 jimmyo71 # Cleanups and log entries72 #73 #74 13 # 75 14 # Magic markers (optional - used by munin-config and some installation … … 132 71 fi; 133 72 134 # Escape dots in the interface name (eg. vlans) before using it as a regex 135 awk -v interface="$INTERFACE" \ 136 'BEGIN { gsub(/\./, "\\.", interface) } \ 137 $1 ~ "^" interface ":" { 138 split($0, a, /: */); $0 = a[2]; \ 139 print "down.value " $1 "\nup.value " $9 \ 140 }' \ 73 awk -F '[: \t]+' -v interface="$INTERFACE" \ 74 '$1 == interface { print "down.value " $2 "\nup.value " $10; exit } 75 $2 == interface { print "down.value " $3 "\nup.value " $11; exit }' \ 141 76 /proc/net/dev 142 77 people/ilmari/modularisation-branch/node/node.d.linux/if_err_.in
r864 r1012 11 11 # ipsec*, eth*, irda* and lo. Please note that aliases cannot be 12 12 # monitored with this plugin. 13 #14 # $Log$15 # Revision 1.11 2005/02/16 21:00:29 jimmyo16 # Make suggest a tad less trigger happy.17 #18 # Revision 1.10 2005/02/16 17:08:24 jimmyo19 # linux/if* now treats ra* interfaces as wireless.20 #21 # Revision 1.9 2005/01/29 21:17:27 jimmyo22 # Added madwifi support to linux/if_* plugins.23 #24 # Revision 1.8 2004/12/10 10:47:49 jimmyo25 # Change name from ${scale} to ${graph_period}, to be more consistent.26 #27 # Revision 1.7 2004/12/09 22:12:56 jimmyo28 # Added "graph_period" option, to make "graph_sums" usable.29 #30 # Revision 1.6 2004/11/12 20:09:06 ilmari31 # Remove deprecated host_name outputting32 #33 # Revision 1.5 2004/11/12 20:08:01 ilmari34 # Fixed linux/if_(err_) braindamage affecting hosts with vlans or35 # multi-digit interface numbers.36 #37 # Revision 1.4 2004/09/26 22:28:42 jimmyo38 # Suggest wlan interfaces as well as eth interfaces.39 #40 # Revision 1.3 2004/09/25 22:29:16 jimmyo41 # Added info fields to a bunch of plugins.42 #43 # Revision 1.2 2004/05/20 13:57:12 jimmyo44 # Set categories to some of the plugins.45 #46 # Revision 1.1 2004/01/02 18:50:01 jimmyo47 # Renamed occurrances of lrrd -> munin48 #49 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo50 # Import of LRRD CVS tree after renaming to Munin51 #52 # Revision 1.3 2003/11/07 22:12:50 jimmyo53 # Changed deprecated plugin options54 #55 # Revision 1.2 2003/11/07 17:43:16 jimmyo56 # Cleanups and log entries57 #58 #59 13 # 60 14 # Magic markers (optional - used by munin-config and some installation people/ilmari/modularisation-branch/node/node.d.linux/interrupts.in
r864 r1012 6 6 # 7 7 # Usage: Link or copy into /etc/munin/node.d/ 8 #9 # $Log$10 # Revision 1.6 2004/12/10 10:47:49 jimmyo11 # Change name from ${scale} to ${graph_period}, to be more consistent.12 #13 # Revision 1.5 2004/12/09 22:12:56 jimmyo14 # Added "graph_period" option, to make "graph_sums" usable.15 #16 # Revision 1.4 2004/11/21 00:17:12 jimmyo17 # Changed a lot of plugins so they use DERIVE instead of COUNTER.18 #19 # Revision 1.3 2004/09/25 22:29:16 jimmyo20 # Added info fields to a bunch of plugins.21 #22 # Revision 1.2 2004/05/20 13:57:12 jimmyo23 # Set categories to some of the plugins.24 #25 # Revision 1.1 2004/01/02 18:50:01 jimmyo26 # Renamed occurrances of lrrd -> munin27 #28 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo29 # Import of LRRD CVS tree after renaming to Munin30 #31 # Revision 1.3 2003/12/06 16:24:34 jimmyo32 # Plugin interrupts: context switch graphing added by Mike Fedyk33 #34 # Revision 1.2 2003/11/07 17:43:16 jimmyo35 # Cleanups and log entries36 #37 8 # 38 9 # Magic markers (optional - only used by munin-config and some people/ilmari/modularisation-branch/node/node.d.linux/iostat.in
r864 r1012 9 9 # config (required) 10 10 # autoconf (optional - used by lrrd-config) 11 #12 # $Log$13 # Revision 1.14 2004/12/10 18:51:44 jimmyo14 # linux/apt* has been forced to LANG=C, to get predictable output.15 #16 # Revision 1.13 2004/12/10 10:47:49 jimmyo17 # Change name from ${scale} to ${graph_period}, to be more consistent.18 #19 # Revision 1.12 2004/12/09 22:12:56 jimmyo20 # Added "graph_period" option, to make "graph_sums" usable.21 #22 # Revision 1.11 2004/11/21 00:17:12 jimmyo23 # Changed a lot of plugins so they use DERIVE instead of COUNTER.24 #25 # Revision 1.10 2004/11/20 23:58:22 jimmyo26 # The linux/iostat plugin now ignores devices without traffic (Deb#267195).27 #28 # Revision 1.9 2004/09/25 22:29:16 jimmyo29 # Added info fields to a bunch of plugins.30 #31 # Revision 1.8 2004/08/24 13:37:29 ilmari32 # Add total line33 #34 # Revision 1.7 2004/05/20 13:57:12 jimmyo35 # Set categories to some of the plugins.36 #37 # Revision 1.6 2004/02/02 18:18:07 jimmyo38 # Changed to an informative vlabel, since the field.label information has been made shorter.39 #40 # Revision 1.5 2004/02/02 17:52:32 jimmyo41 # Linux/iostat now shows only disks also on machines without devfs.42 #43 # Revision 1.4 2004/02/02 16:54:38 jimmyo44 # Make the iostat plugin work properly.45 #46 # Revision 1.3 2004/02/02 16:53:53 jimmyo47 # Make the iostat plugin work properly.48 #49 # Revision 1.2 2004/01/31 19:24:52 jimmyo50 # Rewrite of linux/iostat by Mike Fedyk (Deb##223373,224113).51 #52 # Revision 1.1 2004/01/02 18:50:01 jimmyo53 # Renamed occurrances of lrrd -> munin54 #55 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo56 # Import of LRRD CVS tree after renaming to Munin57 #58 # Revision 1.5 2003/12/18 18:09:32 jimmyo59 # Added total line60 #61 # Revision 1.4 2003/12/18 11:01:51 jimmyo62 # Fix by_dev compare issue.63 #64 # Revision 1.3 2003/12/16 17:51:08 jimmyo65 # Plugin linux/iostat modified. Now runs on 2.6, and now "mirrors" i/o like eth* et al. (Deb#224113, Deb#223373)66 #67 # Revision 1.2 2003/11/07 17:43:16 jimmyo68 # Cleanups and log entries69 #70 #71 11 # 72 12 # Magic markers (optional - used by lrrd-config and some installation … … 203 143 my $tmpnam = $2; 204 144 my $major = $1; 205 next if ($tmpnam =~ /\d+$/); 145 if ($tmpnam =~ /\d+$/ ) { 146 # Special case for devices like cXdXpX, 147 # like the cciss driver 148 next unless $tmpnam =~ /\/c\d+d\d+$/ 149 } 206 150 next unless grep { $_ } @fields; 207 151 people/ilmari/modularisation-branch/node/node.d.linux/iostat_ios.in
r864 r1012 10 10 # config (required) 11 11 # autoconf (optional - used by munin-config) 12 #13 # $Log$14 # Revision 1.8 2004/09/25 23:47:11 jimmyo15 # Downgraded plugin from manual to contrib.16 #17 # Revision 1.7 2004/09/25 22:15:20 jimmyo18 # Corrected statedir.19 #20 # Revision 1.6 2004/09/09 11:12:42 ilmari21 # Remove Data::Dumper dependency22 #23 # Revision 1.5 2004/08/04 20:37:45 toreanderson24 # Run iostat_ios with Perl warnings.25 #26 # Revision 1.4 2004/06/28 12:08:54 jimmyo27 # Plugin bugfixes from Jacques Caruso, in linux/iostat_ios and generic/ipacng.28 #29 # Revision 1.3 2004/05/20 13:57:12 jimmyo30 # Set categories to some of the plugins.31 #32 # Revision 1.2 2004/05/15 21:33:29 jimmyo33 # "Upped" som plugins from contrib/manual to manual or auto.34 #35 12 # 36 13 # Magic markers (optional - used by munin-config and some installation people/ilmari/modularisation-branch/node/node.d.linux/ip_.in
r864 r1012 16 16 # 17 17 # This plugin is based on the if_ plugin. 18 #19 #$Log$20 #Revision 1.7 2004/12/10 10:47:49 jimmyo21 #Change name from ${scale} to ${graph_period}, to be more consistent.22 #23 #Revision 1.6 2004/12/09 22:12:56 jimmyo24 #Added "graph_period" option, to make "graph_sums" usable.25 #26 #Revision 1.5 2004/11/21 00:17:12 jimmyo27 #Changed a lot of plugins so they use DERIVE instead of COUNTER.28 #29 #Revision 1.4 2004/09/10 23:06:30 jimmyo30 #Added accidentally deleted exit.31 #32 #Revision 1.3 2004/09/10 23:02:22 jimmyo33 #Plugin linux/ip_ now does more proper autoconfig/suggest.34 #35 #Revision 1.2 2004/05/20 13:57:12 jimmyo36 #Set categories to some of the plugins.37 #38 #Revision 1.1 2004/05/16 16:28:40 jimmyo39 #Linux/ip_ wildcard plugin contributed by Mathy Vanvoorden (SF#954851).40 #41 18 # 42 19 # Magic markers (optional - used by munin-config and some installation people/ilmari/modularisation-branch/node/node.d.linux/irqstats.in
r864 r1012 2 2 # 3 3 # Plugin to monitor individual interrupts 4 #5 # $Log$6 # Revision 1.8 2005/02/24 17:33:20 jimmyo7 # linux/irqstats should no longer fail on some systems (Deb#296452).8 #9 # Revision 1.7 2004/12/10 18:51:44 jimmyo10 # linux/apt* has been forced to LANG=C, to get predictable output.11 #12 # Revision 1.6 2004/12/10 10:47:49 jimmyo13 # Change name from ${scale} to ${graph_period}, to be more consistent.14 #15 # Revision 1.5 2004/12/09 22:12:56 jimmyo16 # Added "graph_period" option, to make "graph_sums" usable.17 #18 # Revision 1.4 2004/11/20 19:53:04 jimmyo19 # Removed debuging-settings. Sorry about that.20 #21 # Revision 1.3 2004/11/20 18:17:51 jimmyo22 # Added i-prefix to value lines as well (forgot earlier).23 #24 # Revision 1.2 2004/11/19 23:01:40 jimmyo25 # Fixed irqstats plugin so it doesn't use numbers as field names. Also expanded the label if possible, since munin-graph now handles long labels.26 #27 # Revision 1.1 2004/10/26 09:31:04 ilmari28 # Added plugin linux/irqstast, showing individual interrupt rates.29 #30 4 # 31 5 #%# family=auto people/ilmari/modularisation-branch/node/node.d.linux/load.in
r864 r1012 4 4 # 5 5 # Usage: Link or copy into /etc/munin/node.d/ 6 #7 # $Log$8 # Revision 1.5 2004/05/20 19:02:37 jimmyo9 # Set categories on a bunch of plugins10 #11 # Revision 1.4 2004/05/20 13:57:12 jimmyo12 # Set categories to some of the plugins.13 #14 # Revision 1.3 2004/05/16 12:41:04 jimmyo15 # Changed load plot from lastminute to last 5 minutes.16 #17 # Revision 1.2 2004/05/16 12:34:26 jimmyo18 # Added "info"-fields to linux/cpu and linux/load plugins, to demonstrate how it works.19 #20 # Revision 1.1 2004/01/02 18:50:01 jimmyo21 # Renamed occurrances of lrrd -> munin22 #23 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo24 # Import of LRRD CVS tree after renaming to Munin25 #26 # Revision 1.4 2003/11/15 11:10:28 jimmyo27 # Various fixes28 #29 # Revision 1.3 2003/11/07 17:43:16 jimmyo30 # Cleanups and log entries31 #32 #33 6 # 34 7 # Magic markers (optional - only used by munin-config and some people/ilmari/modularisation-branch/node/node.d.linux/memory.in
r864 r1012 11 11 # config (required) 12 12 # autoconf (optional - only used by munin-config) 13 #14 # $Log$15 # Revision 1.4 2004/09/25 18:24:03 jimmyo16 # Added some more info lines.17 #18 # Revision 1.3 2004/09/24 17:18:19 jimmyo19 # Started documenting the plugin.20 #21 # Revision 1.2 2004/05/20 13:57:12 jimmyo22 # Set categories to some of the plugins.23 #24 # Revision 1.1 2004/01/02 18:50:01 jimmyo25 # Renamed occurrances of lrrd -> munin26 #27 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo28 # Import of LRRD CVS tree after renaming to Munin29 #30 # Revision 1.6 2003/12/18 15:28:04 jimmyo31 # Plugin linux/memory has been improved greatly by Mike Fedyk (Deb#223346)32 #33 # Revision 2.0 2003/12/17 12:20:16 mfedyk34 # Major Enhancements35 13 # 36 14 # Magic markers (optional - only used by munin-config and some people/ilmari/modularisation-branch/node/node.d.linux/netopia.in
r864 r1012 1 1 #!/bin/sh 2 2 3 # $Log$4 # Revision 1.4 2004/12/10 10:47:49 jimmyo5 # Change name from ${scale} to ${graph_period}, to be more consistent.6 #7 # Revision 1.3 2004/12/09 22:12:56 jimmyo8 # Added "graph_period" option, to make "graph_sums" usable.9 #10 # Revision 1.2 2004/11/21 00:17:12 jimmyo11 # Changed a lot of plugins so they use DERIVE instead of COUNTER.12 #13 # Revision 1.1 2004/01/02 18:50:01 jimmyo14 # Renamed occurrances of lrrd -> munin15 #16 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo17 # Import of LRRD CVS tree after renaming to Munin18 #19 # Revision 1.4 2003/11/07 22:12:50 jimmyo20 # Changed deprecated plugin options21 #22 # Revision 1.3 2003/11/07 17:43:16 jimmyo23 # Cleanups and log entries24 #25 3 26 4 if [ "$1" = "config" ]; then people/ilmari/modularisation-branch/node/node.d.linux/netstat.in
r864 r1012 7 7 # config (required) 8 8 # autoconf (optional - only used by munin-config) 9 #10 # $Log$11 # Revision 1.5 2004/12/09 22:12:56 jimmyo12 # Added "graph_period" option, to make "graph_sums" usable.13 #14 # Revision 1.4 2004/11/21 00:17:12 jimmyo15 # Changed a lot of plugins so they use DERIVE instead of COUNTER.16 #17 # Revision 1.3 2004/09/25 22:29:16 jimmyo18 # Added info fields to a bunch of plugins.19 #20 # Revision 1.2 2004/05/20 13:57:12 jimmyo21 # Set categories to some of the plugins.22 #23 # Revision 1.1 2004/01/29 19:21:20 jimmyo24 # Moved generic netstat to linux-dir, as it is too spesific. Added Solaris version of the plugin as well. (SF#882354)25 #26 # Revision 1.1 2004/01/02 18:50:00 jimmyo27 # Renamed occurrances of lrrd -> munin28 #29 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo30 # Import of LRRD CVS tree after renaming to Munin31 #32 # Revision 1.2 2003/11/07 17:43:16 jimmyo33 # Cleanups and log entries34 #35 #36 9 # 37 10 # Magic markers (optional - used by munin-config and some installation people/ilmari/modularisation-branch/node/node.d.linux/nfs_client.in
r864 r1012 2 2 # 3 3 # Plugin to monitor NFS client traffic 4 #5 # $Log$6 # Revision 1.8 2004/12/10 10:47:49 jimmyo7 # Change name from ${scale} to ${graph_period}, to be more consistent.8 #9 # Revision 1.7 2004/12/09 22:12:56 jimmyo10 # Added "graph_period" option, to make "graph_sums" usable.11 #12 # Revision 1.6 2004/11/21 00:17:12 jimmyo13 # Changed a lot of plugins so they use DERIVE instead of COUNTER.14 #15 # Revision 1.5 2004/10/01 12:32:09 ilmari16 # complete "rpc" removal17 #18 # Revision 1.4 2004/10/01 08:40:50 ilmari19 # Remove useless 'rpc' field, add total field20 #21 # Revision 1.3 2004/05/20 19:02:37 jimmyo22 # Set categories on a bunch of plugins23 #24 # Revision 1.2 2004/05/15 21:33:29 jimmyo25 # "Upped" som plugins from contrib/manual to manual or auto.26 #27 4 # 28 5 #%# family=auto people/ilmari/modularisation-branch/node/node.d.linux/nfsd.in
r864 r1012 2 2 # 3 3 # Plugin created by Alexandre Dupouy, with the assistance of Mike Fedyk 4 #5 # $Log$6 # Revision 1.9 2004/12/10 10:47:49 jimmyo7 # Change name from ${scale} to ${graph_period}, to be more consistent.8 #9 # Revision 1.8 2004/12/09 22:12:56 jimmyo10 # Added "graph_period" option, to make "graph_sums" usable.11 #12 # Revision 1.7 2004/11/21 00:17:12 jimmyo13 # Changed a lot of plugins so they use DERIVE instead of COUNTER.14 #15 # Revision 1.6 2004/10/01 12:32:09 ilmari16 # complete "rpc" removal17 #18 # Revision 1.5 2004/10/01 08:40:50 ilmari19 # Remove useless 'rpc' field, add total field20 #21 # Revision 1.4 2004/05/20 19:02:37 jimmyo22 # Set categories on a bunch of plugins23 #24 # Revision 1.3 2004/05/15 21:33:29 jimmyo25 # "Upped" som plugins from contrib/manual to manual or auto.26 #27 # Revision 1.2 2004/05/06 21:55:18 jimmyo28 # Added patch to contrib-plugin linux/nfsd, to graph rpc count (Alexandre Dupouy).29 #30 # Revision 1.1 2004/02/18 18:41:54 jimmyo31 # Plugin created by Alexandre Dupouy, with the assistance of Mike Fedyk32 #33 4 # 34 5 #%# family=auto people/ilmari/modularisation-branch/node/node.d.linux/open_files.in
r864 r1012 7 7 # config (required) 8 8 # autoconf (optional - used by munin-config) 9 #10 # $Log$11 # Revision 1.3 2004/09/25 22:29:16 jimmyo12 # Added info fields to a bunch of plugins.13 #14 # Revision 1.2 2004/05/20 13:57:12 jimmyo15 # Set categories to some of the plugins.16 #17 # Revision 1.1 2004/01/02 18:50:01 jimmyo18 # Renamed occurrances of lrrd -> munin19 #20 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo21 # Import of LRRD CVS tree after renaming to Munin22 #23 # Revision 1.2 2003/11/07 17:43:16 jimmyo24 # Cleanups and log entries25 #26 #27 9 # 28 10 # Magic markers (Used by munin-config and some installation scripts. people/ilmari/modularisation-branch/node/node.d.linux/open_inodes.in
r864 r1012 2 2 # 3 3 # Plugin to monitor the number of open files in the system. 4 #5 # $Log$6 # Revision 1.3 2004/09/25 22:29:16 jimmyo7 # Added info fields to a bunch of plugins.8 #9 # Revision 1.2 2004/05/20 13:57:12 jimmyo10 # Set categories to some of the plugins.11 #12 # Revision 1.1 2004/01/02 18:50:01 jimmyo13 # Renamed occurrances of lrrd -> munin14 #15 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo16 # Import of LRRD CVS tree after renaming to Munin17 #18 # Revision 1.2 2003/11/12 11:49:41 jimmyo19 # Removed warning/critical (floating max)20 #21 # Revision 1.1 2003/11/10 17:46:50 jimmyo22 # Contribution by Finn-Arn Johansen (SF#839210)23 #24 4 # 25 5 # Parameters: people/ilmari/modularisation-branch/node/node.d.linux/port_.in
r864 r1012 14 14 # autoconf (optional - used by munin-config) 15 15 # suggest (optional - used by munin-config) 16 #17 # $Log$18 # Revision 1.4 2005/02/26 17:13:54 kjetilho19 # ugh, forgot to remove interpreter line used during development.20 #21 # Revision 1.3 2005/02/26 17:11:59 kjetilho22 # Add support for caching of network state. Replace hardcoded offsets with23 # offsets computed from the header of /proc/net/tcp.24 #25 # Revision 1.2 2004/05/20 13:57:12 jimmyo26 # Set categories to some of the plugins.27 #28 # Revision 1.1 2004/01/02 18:50:01 jimmyo29 # Renamed occurrances of lrrd -> munin30 #31 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo32 # Import of LRRD CVS tree after renaming to Munin33 #34 # Revision 1.4 2003/12/16 16:22:36 jimmyo35 # Typo fix.36 #37 # Revision 1.3 2003/11/07 17:43:16 jimmyo38 # Cleanups and log entries39 #40 #41 16 # 42 17 # Magic markers (optional - used by munin-config and some installation people/ilmari/modularisation-branch/node/node.d.linux/processes.in
r864 r1012 8 8 # config (required) 9 9 # autoconf (optional - used by munin-config) 10 #11 # $Log$12 # Revision 1.3 2004/09/25 22:29:16 jimmyo13 # Added info fields to a bunch of plugins.14 #15 # Revision 1.2 2004/05/20 13:57:12 jimmyo16 # Set categories to some of the plugins.17 #18 # Revision 1.1 2004/01/02 18:50:01 jimmyo19 # Renamed occurrances of lrrd -> munin20 #21 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo22 # Import of LRRD CVS tree after renaming to Munin23 #24 # Revision 1.2 2003/11/07 17:43:16 jimmyo25 # Cleanups and log entries26 #27 #28 10 # 29 11 # Magick markers (optional - used by munin-config and som installation people/ilmari/modularisation-branch/node/node.d.linux/sensors_.in
r864 r1012 27 27 # Narrow the voltage bracket by this. 28 28 # 29 # $Log$30 # Revision 1.10 2004/12/15 15:40:12 jimmyo31 # Fixed typo in graph_category.32 #33 # Revision 1.9 2004/11/23 17:08:25 ilmari34 # Fixed linux/sensors_ plugin to report warning and critical values for temperatures and voltages if sensors reports them.35 #36 # Revision 1.3.2.3 2004/08/18 17:27:15 jimmyo37 # Made linux/sensors_volt work with negative voltages (Deb#256734).38 #39 # Revision 1.3.2.2 2004/08/18 17:20:29 jimmyo40 # linux/sensors_temp now understand temp lines without hyst or max settings (Deb#256380).41 #42 # Revision 1.3.2.1 2004/08/18 17:01:01 jimmyo43 # Force LANG/LC_ALL=C in linux/sensors_ and generic/hddtemp2, to remove problems in parsing of sensors output (SF#972749, SF#972748, Deb#255312)44 #45 # Revision 1.3 2004/04/28 21:46:41 jimmyo46 # Sensors-* patch from SF#906868.47 #48 # Revision 1.2 2004/04/27 21:55:43 jimmyo49 # Patched temp-part of linux-pugin sensors_* with better regexp (Deb#245289).50 #51 # Revision 1.1 2004/02/05 16:47:02 jimmyo52 # Added new wildcard plugin linux/sensors_ that replaces the i2c plugins (SF#890952).53 #54 #55 #56 29 # Magic markers: 57 30 #%# family=manual … … 65 38 my %config = ( 66 39 fan => { 67 regex => qr/^( [^:]*)\s*:\s+\+?(\d+) RPM.*?(\d+) RPM/m,40 regex => qr/^(\S[^:]*)\s*:\s+\+?(\d+) RPM.*?(\d+) RPM/m, 68 41 title => 'Fans', 69 42 vtitle => 'RPM', … … 72 45 }, 73 46 temp => { 74 regex => qr/^( [^:]*)\s*:\s+\+?(\d+(?:\.\d+)?)[° ]C(?:\s+\((?:high|limit)\s*=\s*\+?(\d+(?:\.\d+)?)[° ]C,\s*hyst(?:eresis)?\s*=\s*\+?(\d+(?:\.\d+)?)[° ]C\))?/m,47 regex => qr/^(\S[^:]*)\s*:\s+\+?(\d+(?:\.\d+)?)[° ]C(?:\s+\((?:high|limit)\s*=\s*\+?(\d+(?:\.\d+)?)[° ]C,\s*hyst(?:eresis)?\s*=\s*\+?(\d+(?:\.\d+)?)[° ]C\))?/m, 75 48 title => 'Temperatures', 76 49 vtitle => 'Celsius', … … 79 52 }, 80 53 volt => { 81 regex => qr/^( [^:]*)\s*:\s+\+?(-?\d+(?:\.\d+)?) V(?:\s+\(min\s*=\s*\+?(-?\d+(?:\.\d+)?) V,\s*max\s*=\s*\+?(-?\d+(?:\.\d+)?) V\))/m,54 regex => qr/^(\S[^:]*)\s*:\s+\+?(-?\d+(?:\.\d+)?) V(?:\s+\(min\s*=\s*\+?(-?\d+(?:\.\d+)?) V,\s*max\s*=\s*\+?(-?\d+(?:\.\d+)?) V\))/m, 82 55 title => 'Voltages', 83 56 vtitle => 'Volt', … … 87 60 ); 88 61 89 if ( exists$ARGV[0] and $ARGV[0] eq 'autoconf' ) {62 if ( defined $ARGV[0] and $ARGV[0] eq 'autoconf' ) { 90 63 # Now see if "sensors" can run 91 64 my $text = `$SENSORS`; … … 108 81 } 109 82 110 if ( $ARGV[0] and $ARGV[0] eq 'suggest') {83 if (defined $ARGV[0] and $ARGV[0] eq 'suggest') { 111 84 my $text = `$SENSORS`; 112 85 foreach my $func (keys %config) { … … 120 93 exit 2 unless defined $func; 121 94 122 if ( exists$ARGV[0] and $ARGV[0] eq 'config' ) {95 if ( defined $ARGV[0] and $ARGV[0] eq 'config' ) { 123 96 print "graph_title $config{$func}->{title}\n"; 124 97 print "graph_vtitle $config{$func}->{vtitle}\n"; people/ilmari/modularisation-branch/node/node.d.linux/swap.in
r864 r1012 7 7 # config (required) 8 8 # autoconf (optional - used by munin-config) 9 #10 # $Log$11 # Revision 1.5 2004/12/10 10:47:49 jimmyo12 # Change name from ${scale} to ${graph_period}, to be more consistent.13 #14 # Revision 1.4 2004/12/09 22:12:56 jimmyo15 # Added "graph_period" option, to make "graph_sums" usable.16 #17 # Revision 1.3 2004/11/21 00:17:12 jimmyo18 # Changed a lot of plugins so they use DERIVE instead of COUNTER.19 #20 # Revision 1.2 2004/05/20 13:57:12 jimmyo21 # Set categories to some of the plugins.22 #23 # Revision 1.1 2004/01/02 18:50:01 jimmyo24 # Renamed occurrances of lrrd -> munin25 #26 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo27 # Import of LRRD CVS tree after renaming to Munin28 #29 # Revision 1.4 2003/11/07 22:12:50 jimmyo30 # Changed deprecated plugin options31 #32 # Revision 1.3 2003/11/07 17:43:16 jimmyo33 # Cleanups and log entries34 #35 #36 9 # 37 10 # Magic markers (used by munin-config and some installation scripts (i.e. people/ilmari/modularisation-branch/node/node.d.linux/uptime.in
r864 r1012 5 5 # 6 6 # Contributed by Nicolas Salles 7 #8 # $Log$9 # Revision 1.1 2004/12/09 16:20:06 jimmyo10 # generic/uptime was re-classified as linux/uptime (SF#1074576).11 #12 # Revision 1.2 2004/09/10 21:27:07 jimmyo13 # "Downed" uptime plugin from auto to manual.14 #15 # Revision 1.1 2004/08/18 17:58:39 jimmyo16 # Added plugin generic/uptime contributed by Nicolas Salles (SF#998665).17 #18 7 # 19 8 # Magic markers - optional - used by installation scripts and people/ilmari/modularisation-branch/node/node.d.linux/users.in
r864 r1012 20 20 # 21 21 # $Id$ 22 #23 # $Log$24 # Revision 1.2 2005/01/24 17:25:39 jimmyo25 # Made TLS mode work.26 #27 # Revision 1.1 2004/12/20 13:43:36 jimmyo28 # Added plugin linux/users, created by Michael Kaiser.29 #30 22 # 31 23 #%# family=contrib people/ilmari/modularisation-branch/node/node.d.linux/vlan_.in
r864 r1012 13 13 # autoconf 14 14 # suggest 15 #16 # $Log$17 # Revision 1.5 2004/12/10 10:47:49 jimmyo18 # Change name from ${scale} to ${graph_period}, to be more consistent.19 #20 # Revision 1.4 2004/12/09 22:12:56 jimmyo21 # Added "graph_period" option, to make "graph_sums" usable.22 #23 # Revision 1.3 2004/11/21 00:17:12 jimmyo24 # Changed a lot of plugins so they use DERIVE instead of COUNTER.25 #26 # Revision 1.2 2004/05/20 19:02:37 jimmyo27 # Set categories on a bunch of plugins28 #29 # Revision 1.1 2004/01/02 18:50:01 jimmyo30 # Renamed occurrances of lrrd -> munin31 #32 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo33 # Import of LRRD CVS tree after renaming to Munin34 #35 # Revision 1.3 2003/11/07 22:12:50 jimmyo36 # Changed deprecated plugin options37 #38 # Revision 1.2 2003/11/07 17:43:16 jimmyo39 # Cleanups and log entries40 #41 #42 15 # 43 16 #%# family=manual people/ilmari/modularisation-branch/node/node.d.linux/vlan_inetuse_.in
r864 r1012 25 25 # existing for examples. 26 26 # 27 # $Log$28 # Revision 1.7 2004/12/10 18:51:44 jimmyo29 # linux/apt* has been forced to LANG=C, to get predictable output.30 #31 # Revision 1.6 2004/12/10 10:47:49 jimmyo32 # Change name from ${scale} to ${graph_period}, to be more consistent.33 #34 # Revision 1.5 2004/12/09 22:12:56 jimmyo35 # Added "graph_period" option, to make "graph_sums" usable.36 #37 # Revision 1.4 2004/11/21 00:17:12 jimmyo38 # Changed a lot of plugins so they use DERIVE instead of COUNTER.39 #40 # Revision 1.3 2004/05/20 19:02:37 jimmyo41 # Set categories on a bunch of plugins42 #43 # Revision 1.2 2004/05/15 21:33:29 jimmyo44 # "Upped" som plugins from contrib/manual to manual or auto.45 #46 # Revision 1.1 2004/01/02 18:50:01 jimmyo47 # Renamed occurrances of lrrd -> munin48 #49 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo50 # Import of LRRD CVS tree after renaming to Munin51 #52 # Revision 1.4 2003/11/07 22:12:50 jimmyo53 # Changed deprecated plugin options54 #55 # Revision 1.3 2003/11/07 17:43:16 jimmyo56 # Cleanups and log entries57 #58 27 #%# family=manual 59 28 people/ilmari/modularisation-branch/node/node.d.linux/vlan_linkuse_.in
r864 r1012 15 15 # ...which will make the out-traffic graphable. (Both in and out-files must 16 16 # have such rules. Look at the existing for examples. 17 #18 # $Log$19 # Revision 1.7 2004/12/10 18:51:44 jimmyo20 # linux/apt* has been forced to LANG=C, to get predictable output.21 #22 # Revision 1.6 2004/12/10 10:47:49 jimmyo23 # Change name from ${scale} to ${graph_period}, to be more consistent.24 #25 # Revision 1.5 2004/12/09 22:12:56 jimmyo26 # Added "graph_period" option, to make "graph_sums" usable.27 #28 # Revision 1.4 2004/11/21 00:17:12 jimmyo29 # Changed a lot of plugins so they use DERIVE instead of COUNTER.30 #31 # Revision 1.3 2004/05/20 19:02:37 jimmyo32 # Set categories on a bunch of plugins33 #34 # Revision 1.2 2004/05/15 21:33:29 jimmyo35 # "Upped" som plugins from contrib/manual to manual or auto.36 #37 # Revision 1.1 2004/01/02 18:50:01 jimmyo38 # Renamed occurrances of lrrd -> munin39 #40 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo41 # Import of LRRD CVS tree after renaming to Munin42 #43 # Revision 1.3 2003/11/07 22:12:50 jimmyo44 # Changed deprecated plugin options45 #46 # Revision 1.2 2003/11/07 17:43:16 jimmyo47 # Cleanups and log entries48 #49 17 # 50 18 #%# family=manual people/ilmari/modularisation-branch/node/node.d.sunos/cpu.in
r864 r1012 9 9 # config (required) 10 10 # autoconf (optional - used by munin-config) 11 #12 # $Log$13 # Revision 1.9 2004/12/10 10:47:50 jimmyo14 # Change name from ${scale} to ${graph_period}, to be more consistent.15 #16 # Revision 1.8 2004/12/09 22:12:56 jimmyo17 # Added "graph_period" option, to make "graph_sums" usable.18 #19 # Revision 1.7 2004/12/09 17:20:16 jimmyo20 # Patched sunos/cpu to work on Solaris 9 (SF#1077899).21 #22 # Revision 1.6 2004/11/21 00:17:12 jimmyo23 # Changed a lot of plugins so they use DERIVE instead of COUNTER.24 #25 # Revision 1.5 2004/05/20 19:02:38 jimmyo26 # Set categories on a bunch of plugins27 #28 # Revision 1.4 2004/05/06 21:39:54 jimmyo29 # Added plugin acpi, contributed by Alexandre Dupouy.30 #31 # Revision 1.3 2004/04/30 16:43:00 jimmyo32 # Cleaned up Solaris plugins.33 #34 # Revision 1.2 2004/02/18 16:39:37 jimmyo35 # Turned off scaling of values for cpu-graphs (no more nano-percentages).36 #37 # Revision 1.1 2004/01/02 18:50:01 jimmyo38 # Renamed occurrances of lrrd -> munin39 #40 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo41 # Import of LRRD CVS tree after renaming to Munin42 #43 # Revision 1.5 2003/11/07 22:12:51 jimmyo44 # Changed deprecated plugin options45 #46 # Revision 1.4 2003/11/07 17:43:16 jimmyo47 # Cleanups and log entries48 #49 #50 11 # 51 12 # Magic markers - optional - used by installation scripts and people/ilmari/modularisation-branch/node/node.d.sunos/fs_df.in
r864 r1012 1 1 #!/bin/sh 2 2 3 # $Log$4 # Revision 1.4 2004/05/20 19:02:38 jimmyo5 # Set categories on a bunch of plugins6 #7 # Revision 1.3 2004/05/15 21:33:30 jimmyo8 # "Upped" som plugins from contrib/manual to manual or auto.9 #10 # Revision 1.2 2004/05/06 19:38:30 jimmyo11 # Made solaris-plugin fs_df work without GNU df (SF#944389).12 #13 # Revision 1.1 2004/01/02 18:50:01 jimmyo14 # Renamed occurrances of lrrd -> munin15 #16 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo17 # Import of LRRD CVS tree after renaming to Munin18 #19 # Revision 1.2 2003/11/07 17:43:16 jimmyo20 # Cleanups and log entries21 #22 #23 3 #%# family=manual 24 4 … … 32 12 echo 'graph_category disk' 33 13 $DF -k -l | $TAIL +2 | while read i; do 34 name=`echo $i | sed 's/[\/. ]/_/g' | awk '{ print $6 }' | $TAIL -15c`14 name=`echo $i | sed 's/[\/.-]/_/g' | awk '{ print $6 }' | $TAIL -15c` 35 15 printf "$name.label " 36 16 echo $i | awk '{ print $6 }' … … 42 22 43 23 $DF -k -l | $TAIL +2 | while read i; do 44 name=`echo $i | sed 's/[\/. ]/_/g' | awk '{ print $6 }' | $TAIL -15c`24 name=`echo $i | sed 's/[\/.-]/_/g' | awk '{ print $6 }' | $TAIL -15c` 45 25 printf "$name.value " 46 26 echo $i | awk '{ print $5 }' | cut -f1 -d% people/ilmari/modularisation-branch/node/node.d.sunos/fs_inodes.in
r864 r1012 4 4 # 5 5 # fs_df - path to df executable (GNU df makes life easier) 6 #7 # $Log$8 # Revision 1.4 2004/12/09 17:53:38 jimmyo9 # Portability enhancementes to sunos/fs_df (SF#1077903).10 #11 # Revision 1.3 2004/05/20 19:02:38 jimmyo12 # Set categories on a bunch of plugins13 #14 # Revision 1.2 2004/05/15 21:33:30 jimmyo15 # "Upped" som plugins from contrib/manual to manual or auto.16 #17 # Revision 1.1 2004/01/02 18:50:01 jimmyo18 # Renamed occurrances of lrrd -> munin19 #20 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo21 # Import of LRRD CVS tree after renaming to Munin22 #23 # Revision 1.2 2003/11/07 17:43:16 jimmyo24 # Cleanups and log entries25 6 # 26 7 #%# family=manual … … 45 26 echo 'graph_category disk' 46 27 eval $DF | $TAIL +2 | while read i; do 47 name=`echo $i | sed 's/[\/. ]/_/g' | awk '{ print $1 }'`28 name=`echo $i | sed 's/[\/.-]/_/g' | awk '{ print $1 }'` 48 29 # Ignore tmpfs. 49 30 if [ "$name" != "swap" ]; then … … 58 39 59 40 eval $DF | $TAIL +2 | while read i; do 60 name=`echo $i | sed 's/[\/. ]/_/g' | awk '{ print $1 }'`41 name=`echo $i | sed 's/[\/.-]/_/g' | awk '{ print $1 }'` 61 42 # Ignore tmpfs. 62 43 if [ "$name" != "swap" ]; then people/ilmari/modularisation-branch/node/node.d.sunos/if_.in
r864 r1012 9 9 # 10 10 # Any device found in /usr/bin/kstat can be monitored. 11 #12 # $Log$13 # Revision 1.5 2004/12/10 10:47:50 jimmyo14 # Change name from ${scale} to ${graph_period}, to be more consistent.15 #16 # Revision 1.4 2004/12/09 22:12:56 jimmyo17 # Added "graph_period" option, to make "graph_sums" usable.18 #19 # Revision 1.3 2004/05/20 19:02:38 jimmyo20 # Set categories on a bunch of plugins21 #22 # Revision 1.2 2004/04/30 16:43:00 jimmyo23 # Cleaned up Solaris plugins.24 #25 # Revision 1.1 2004/01/02 18:50:01 jimmyo26 # Renamed occurrances of lrrd -> munin27 #28 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo29 # Import of LRRD CVS tree after renaming to Munin30 #31 # Revision 1.3 2003/11/07 22:12:51 jimmyo32 # Changed deprecated plugin options33 #34 # Revision 1.2 2003/11/07 17:43:16 jimmyo35 # Cleanups and log entries36 #37 #38 11 # 39 12 # Magic markers (optional - used by munin-config and some installation people/ilmari/modularisation-branch/node/node.d.sunos/if_errcoll_.in
r864 r1012 9 9 # 10 10 # Any device found in /usr/bin/kstat can be monitored. 11 #12 # $Log$13 # Revision 1.5 2004/12/10 10:47:50 jimmyo14 # Change name from ${scale} to ${graph_period}, to be more consistent.15 #16 # Revision 1.4 2004/12/09 22:12:56 jimmyo17 # Added "graph_period" option, to make "graph_sums" usable.18 #19 # Revision 1.3 2004/05/20 19:02:38 jimmyo20 # Set categories on a bunch of plugins21 #22 # Revision 1.2 2004/04/30 16:43:00 jimmyo23 # Cleaned up Solaris plugins.24 #25 # Revision 1.1 2004/01/02 18:50:01 jimmyo26 # Renamed occurrances of lrrd -> munin27 #28 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo29 # Import of LRRD CVS tree after renaming to Munin30 #31 # Revision 1.2 2003/11/07 17:43:16 jimmyo32 # Cleanups and log entries33 #34 #35 11 # 36 12 # Magic markers (optional - used by munin-config and some installation people/ilmari/modularisation-branch/node/node.d.sunos/io_busy_.in
r864 r1012 22 22 # $F[1] is the instance number. $F[2] is the device name , e.g. 23 23 # 'dad0'. 24 #25 # $Log$26 # Revision 1.5 2004/12/09 17:48:19 jimmyo27 # Major improvements to sunos/io_ops,bytes,busy, by Lupe Christoph (SF#1077898).28 #29 # Revision 1.4 2004/11/21 00:17:12 jimmyo30 # Changed a lot of plugins so they use DERIVE instead of COUNTER.31 #32 # Revision 1.3 2004/05/20 19:02:38 jimmyo33 # Set categories on a bunch of plugins34 #35 # Revision 1.2 2004/04/30 16:43:00 jimmyo36 # Cleaned up Solaris plugins.37 #38 # Revision 1.1 2004/01/02 18:50:01 jimmyo39 # Renamed occurrances of lrrd -> munin40 #41 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo42 # Import of LRRD CVS tree after renaming to Munin43 #44 # Revision 1.2 2003/11/07 17:43:16 jimmyo45 # Cleanups and log entries46 #47 #48 24 # 49 25 # Magic markers (optional - used by munin-config and some installation people/ilmari/modularisation-branch/node/node.d.sunos/io_bytes_.in
r864 r1012 22 22 # $F[1] is the instance number. $F[2] is the device name , e.g. 23 23 # 'dad0'. 24 #25 # $Log$26 # Revision 1.5 2004/12/09 17:48:34 jimmyo27 # Major improvements to sunos/io_ops,bytes,busy, by Lupe Christoph (SF#1077898).28 #29 # Revision 1.4 2004/11/21 00:17:12 jimmyo30 # Changed a lot of plugins so they use DERIVE instead of COUNTER.31 #32 # Revision 1.3 2004/05/20 19:02:38 jimmyo33 # Set categories on a bunch of plugins34 #35 # Revision 1.2 2004/04/30 16:43:00 jimmyo36 # Cleaned up Solaris plugins.37 #38 # Revision 1.1 2004/01/02 18:50:01 jimmyo39 # Renamed occurrances of lrrd -> munin40 #41 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo42 # Import of LRRD CVS tree after renaming to Munin43 #44 # Revision 1.2 2003/11/07 17:43:16 jimmyo45 # Cleanups and log entries46 #47 #48 24 # 49 25 # Magic markers (optional - used by munin-config and some installation people/ilmari/modularisation-branch/node/node.d.sunos/io_ops_.in
r864 r1012 22 22 # $F[1] is the instance number. $F[2] is the device name , e.g. 23 23 # 'dad0'. 24 #25 # $Log$26 # Revision 1.5 2004/12/09 17:48:34 jimmyo27 # Major improvements to sunos/io_ops,bytes,busy, by Lupe Christoph (SF#1077898).28 #29 # Revision 1.4 2004/11/21 00:17:12 jimmyo30 # Changed a lot of plugins so they use DERIVE instead of COUNTER.31 #32 # Revision 1.3 2004/05/20 19:02:38 jimmyo33 # Set categories on a bunch of plugins34 #35 # Revision 1.2 2004/04/30 16:43:00 jimmyo36 # Cleaned up Solaris plugins.37 #38 # Revision 1.1 2004/01/02 18:50:01 jimmyo39 # Renamed occurrances of lrrd -> munin40 #41 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo42 # Import of LRRD CVS tree after renaming to Munin43 #44 # Revision 1.2 2003/11/07 17:43:16 jimmyo45 # Cleanups and log entries46 #47 #48 24 # 49 25 # Magic markers (optional - used by munin-config and some installation people/ilmari/modularisation-branch/node/node.d.sunos/load.in
r864 r1012 1 1 #!/bin/sh 2 2 3 # $Log$4 # Revision 1.3 2004/05/20 19:02:38 jimmyo5 # Set categories on a bunch of plugins6 #7 # Revision 1.2 2004/05/15 21:33:30 jimmyo8 # "Upped" som plugins from contrib/manual to manual or auto.9 #10 # Revision 1.1 2004/01/02 18:50:01 jimmyo11 # Renamed occurrances of lrrd -> munin12 #13 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo14 # Import of LRRD CVS tree after renaming to Munin15 #16 # Revision 1.3 2003/11/07 17:43:16 jimmyo17 # Cleanups and log entries18 #19 3 #%# family=auto 20 4 #%# capabilities=autoconf people/ilmari/modularisation-branch/node/node.d.sunos/memory.in
r864 r1012 1 1 #!/bin/sh 2 #3 # $Log$4 # Revision 1.5 2005/03/07 19:05:30 jimmyo5 # sunos/memory repaired (SF#1143610).6 #7 # Revision 1.4 2004/05/20 19:02:38 jimmyo8 # Set categories on a bunch of plugins9 #10 # Revision 1.3 2004/05/15 21:33:30 jimmyo11 # "Upped" som plugins from contrib/manual to manual or auto.12 #13 # Revision 1.2 2004/05/09 20:42:08 jimmyo14 # Fixed problem with sunos/memory, when memory was reported in gigabytes (SF#930964).15 #16 # Revision 1.1 2004/01/02 18:50:01 jimmyo17 # Renamed occurrances of lrrd -> munin18 #19 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo20 # Import of LRRD CVS tree after renaming to Munin21 #22 # Revision 1.2 2003/11/07 17:43:16 jimmyo23 # Cleanups and log entries24 #25 #26 2 # 27 3 #%# family=manual … … 45 21 # Memory: 320M real, 142M free, 129M swap in use, 1095M swap free 46 22 47 MEMLINE=`$TOP -n -u | /bin/grep "^Memory"` 23 $TOP -n -u | nawk ' 24 function scale(value) { 25 if (value ~ /G$/) { sub("G", "", value); value *= 1024 } 26 else if (value ~ /M$/) sub("M", "", value) 27 else if (value ~ /K$/) { sub("K", "", value); value /= 1024 } 28 else value /= 1024 * 1024; 29 return value; 30 } 31 /^Memory/ { 32 real = scale($2); 33 free = scale($4); 34 swapu = scale($6); 35 swapf = scale($10); 48 36 49 REAL=`echo $MEMLINE | nawk '$2~/G$/ {sub("G","",$2);$2=$2 * 1024} $2~/M$/ {printf "%d\n", $2}'` 50 FREE=`echo $MEMLINE | nawk '$4~/G$/ {sub("G","",$4);$4=$4 * 1024} $2~/M$/ {printf "%d\n", $4}'` 51 SWAPU=`echo $MEMLINE | nawk '$6~/G$/ {sub("G","",$6);$6=$6 * 1024} $2~/M$/ {printf "%d\n", $6}'` 52 SWAPF=`echo $MEMLINE | nawk '$10~/G$/ {sub("G","",$10);$10=$10 * 1024} $2~/M$/ {printf "%d\n", $10}'` 37 memused = real - free 38 swaptot = swapu + swapf 53 39 54 MEMUSED=`expr $REAL - $FREE` 55 SWAPTOT=`expr $SWAPU + $SWAPF` 56 57 echo "real.value $REAL" 58 echo "used.value $MEMUSED" 59 echo "swapt.value $SWAPTOT" 60 echo "swapu.value $SWAPU" 40 print "real.value", real 41 print "used.value", memused 42 print "swapt.value", swaptot 43 print "swapu.value", swapu 44 }' people/ilmari/modularisation-branch/node/node.d.sunos/netstat.in
r864 r1012 2 2 # 3 3 # $Id$ 4 #5 # $Log$6 # Revision 1.6 2004/12/10 18:51:44 jimmyo7 # linux/apt* has been forced to LANG=C, to get predictable output.8 #9 # Revision 1.5 2004/12/10 10:47:50 jimmyo10 # Change name from ${scale} to ${graph_period}, to be more consistent.11 #12 # Revision 1.4 2004/12/09 22:12:56 jimmyo13 # Added "graph_period" option, to make "graph_sums" usable.14 #15 # Revision 1.3 2004/11/21 00:17:12 jimmyo16 # Changed a lot of plugins so they use DERIVE instead of COUNTER.17 #18 # Revision 1.2 2004/05/20 19:02:38 jimmyo19 # Set categories on a bunch of plugins20 #21 # Revision 1.1 2004/01/29 19:21:20 jimmyo22 # Moved generic netstat to linux-dir, as it is too spesific. Added Solaris version of the plugin as well. (SF#882354)23 #24 4 # 25 5 # Parameters: … … 33 13 use strict; 34 14 35 if ( exists$ARGV[0] and $ARGV[0] eq "autoconf") {15 if (defined $ARGV[0] and $ARGV[0] eq "autoconf") { 36 16 print "yes\n"; 37 17 exit; 38 } elsif ( exists$ARGV[0] and $ARGV[0] eq "config") {18 } elsif (defined $ARGV[0] and $ARGV[0] eq "config") { 39 19 print "graph_title Netstat\n"; 40 20 print "graph_args -l 0 --base 1000\n"; people/ilmari/modularisation-branch/node/node.d.sunos/paging_in.in
r864 r1012 9 9 # config (required) 10 10 # autoconf (optional - used by munin-config) 11 #12 # $Log$13 # Revision 1.4 2004/11/21 00:17:12 jimmyo14 # Changed a lot of plugins so they use DERIVE instead of COUNTER.15 #16 # Revision 1.3 2004/05/20 19:02:38 jimmyo17 # Set categories on a bunch of plugins18 #19 # Revision 1.2 2004/04/30 16:43:00 jimmyo20 # Cleaned up Solaris plugins.21 #22 # Revision 1.1 2004/01/02 18:50:01 jimmyo23 # Renamed occurrances of lrrd -> munin24 #25 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo26 # Import of LRRD CVS tree after renaming to Munin27 #28 # Revision 1.2 2003/11/07 17:43:16 jimmyo29 # Cleanups and log entries30 #31 #32 11 # 33 12 # Magic markers - optional - used by installation scripts and people/ilmari/modularisation-branch/node/node.d.sunos/paging_out.in
r864 r1012 9 9 # config (required) 10 10 # autoconf (optional - used by munin-config) 11 #12 # $Log$13 # Revision 1.4 2004/11/21 00:17:12 jimmyo14 # Changed a lot of plugins so they use DERIVE instead of COUNTER.15 #16 # Revision 1.3 2004/05/20 19:02:38 jimmyo17 # Set categories on a bunch of plugins18 #19 # Revision 1.2 2004/04/30 16:43:00 jimmyo20 # Cleaned up Solaris plugins.21 #22 # Revision 1.1 2004/01/02 18:50:01 jimmyo23 # Renamed occurrances of lrrd -> munin24 #25 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo26 # Import of LRRD CVS tree after renaming to Munin27 #28 # Revision 1.2 2003/11/07 17:43:16 jimmyo29 # Cleanups and log entries30 #31 #32 11 # 33 12 # Magic markers - optional - used by installation scripts and people/ilmari/modularisation-branch/node/node.d.sunos/processes.in
r864 r1012 1 1 #!/bin/sh 2 #3 # $Log$4 # Revision 1.3 2004/05/20 19:02:38 jimmyo5 # Set categories on a bunch of plugins6 #7 # Revision 1.2 2004/05/15 21:33:30 jimmyo8 # "Upped" som plugins from contrib/manual to manual or auto.9 #10 # Revision 1.1 2004/01/02 18:50:01 jimmyo11 # Renamed occurrances of lrrd -> munin12 #13 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo14 # Import of LRRD CVS tree after renaming to Munin15 #16 # Revision 1.3 2003/11/07 17:43:16 jimmyo17 # Cleanups and log entries18 2 # 19 3 #%# family=auto … … 47 31 fi 48 32 49 # STATS=`/usr/bin/ps -el | /bin/cut -b4 | /bin/tr -s '[\n]' '[ ]'` 50 STATS=`/usr/bin/ps -el | /bin/cut -b4` 51 52 /bin/printf "total.value" 53 /bin/echo $STATS | /bin/wc -w 54 55 /bin/printf "running.value " 56 # /bin/echo $STATS | /usr/local/bin/perl -ne 'print y/O//, "\n"' 57 /usr/local/bin/expr length "`echo $STATS | tr -cd O`" 58 # FOO=$(echo $STATS |tr -cd O); echo ${#FOO} 59 60 /bin/printf "sleeping.value " 61 # /bin/echo $STATS | /usr/local/bin/perl -ne 'print y/S//, "\n"' 62 /usr/local/bin/expr length "`echo $STATS | tr -cd S`" 63 # FOO=$(echo $STATS |tr -cd S); echo ${#FOO} 64 65 /bin/printf "runnable.value " 66 # /bin/echo $STATS | /usr/local/bin/perl -ne 'print y/R//, "\n"' 67 /usr/local/bin/expr length "`echo $STATS | tr -cd R`" 68 # FOO=$(echo $STATS |tr -cd R); echo ${#FOO} 69 70 /bin/printf "stopped.value " 71 # /bin/echo $STATS | /usr/local/bin/perl -ne 'print y/T//, "\n"' 72 /usr/local/bin/expr length "`echo $STATS | tr -cd T`" 73 # FOO=$(echo $STATS |tr -cd T); echo ${#FOO} 74 75 /bin/printf "zombie.value " 76 # /bin/echo $STATS | /usr/local/bin/perl -ne 'print y/Z//, "\n"' 77 /usr/local/bin/expr length "`echo $STATS | tr -cd Z`" 78 # FOO=$(echo $STATS |tr -cd Z); echo ${#FOO} 33 /usr/bin/ps -el | awk ' 34 { total++; stat[$2]++ } 35 END { 36 print "total.value " 0+total; 37 print "running.value " 0+stat["O"]; 38 print "sleeping.value " 0+stat["S"]; 39 print "runnable.value " 0+stat["R"]; 40 print "stopped.value " 0+stat["T"]; 41 print "zombie.value " 0+stat["Z"]; 42 }' people/ilmari/modularisation-branch/node/node.d.sunos/temperature.in
r864 r1012 11 11 # 12 12 # Revision 1.1 2004/04/16 Richard van den Berg <richard@vdberg.org> 13 #14 # $Log$15 # Revision 1.3 2004/05/20 19:02:38 jimmyo16 # Set categories on a bunch of plugins17 #18 # Revision 1.2 2004/05/15 21:33:30 jimmyo19 # "Upped" som plugins from contrib/manual to manual or auto.20 #21 13 # 22 14 #%# family=auto people/ilmari/modularisation-branch/node/node.d/acpi.in
r864 r1012 7 7 # 8 8 # acpi - Override path to acpi program 9 #10 #11 # $Log$12 # Revision 1.6 2004/10/19 19:14:18 jimmyo13 # Plugin generic/acpi now autodetects even if the acpi version does not contain the acpi_available program.14 #15 # Revision 1.5 2004/09/14 20:47:34 jimmyo16 # Updated/simplified plugin.17 #18 # Revision 1.4 2004/05/20 19:02:36 jimmyo19 # Set categories on a bunch of plugins20 #21 # Revision 1.3 2004/05/14 21:16:46 jimmyo22 # "Upped" som plugins from contrib/manual to auto.23 #24 # Revision 1.2 2004/05/14 20:32:06 jimmyo25 # Improved autoconf mechanism26 #27 # Revision 1.1 2004/05/06 21:39:54 jimmyo28 # Added plugin acpi, contributed by Alexandre Dupouy.29 9 # 30 10 # people/ilmari/modularisation-branch/node/node.d/amavis.in
r864 r1012 15 15 # 16 16 17 TEMP_FILE=`mktemp /tmp/lrrd-amavis.XXXXXX` 17 mktempfile () { 18 @@MKTEMP@@ 19 } 20 18 21 AMAVIS_LOG=${logfile:-/var/log/mail/mail.info} 19 22 LOGTAIL=${logtail:-`which logtail`} … … 57 60 spams=U 58 61 59 if [ -e $TEMP_FILE -a -f $TEMP_FILE ] 62 TEMP_FILE=`mktempfile munin-amavis.XXXXXX` 63 64 if [ -n "$TEMP_FILE" -a -f "$TEMP_FILE" ] 60 65 then 61 66 if [ $ARGS != 0 ]; then … … 68 73 spamm=`grep 'Passed.*Hits: 1[0-9][.]' ${TEMP_FILE} | wc -l` 69 74 spams=`grep 'Passed.*Hits: [2-9][0-9][0-9]*[.]' ${TEMP_FILE} | wc -l` 70 /bin/rm $TEMP_FILE 75 76 /bin/rm -f $TEMP_FILE 71 77 fi 72 78 people/ilmari/modularisation-branch/node/node.d/apache_accesses.in
r864 r1012 24 24 # ports - HTTP port numbers 25 25 # 26 # $Log$27 # Revision 1.12 2004/12/10 18:51:43 jimmyo28 # linux/apt* has been forced to LANG=C, to get predictable output.29 #30 # Revision 1.11 2004/12/10 10:47:47 jimmyo31 # Change name from ${scale} to ${graph_period}, to be more consistent.32 #33 # Revision 1.10 2004/12/09 22:12:54 jimmyo34 # Added "graph_period" option, to make "graph_sums" usable.35 #36 # Revision 1.9 2004/09/26 22:14:39 jimmyo37 # Changd COUNTER -> DERIVE for some plugins. Set min/max values.38 #39 # Revision 1.8 2004/05/20 13:57:11 jimmyo40 # Set categories to some of the plugins.41 #42 # Revision 1.7 2004/05/14 21:16:46 jimmyo43 # "Upped" som plugins from contrib/manual to auto.44 #45 # Revision 1.6 2004/04/27 21:32:06 jimmyo46 # Clarified the vlabels in the apache-plugins (Deb#238594).47 #48 # Revision 1.5 2004/04/27 08:46:57 jimmyo49 # Fixed broken autoconf in apache-* plugins (Deb#236144).50 #51 # Revision 1.4 2004/02/18 15:47:35 jimmyo52 # The generic/apache_* plugins now have defined max values.53 #54 # Revision 1.3 2004/02/03 17:17:25 jimmyo55 # Generic/apache-plugins have been modified to properly to report the correct autoconf value. Also, bugfixes in _processes and _volume.56 #57 # Revision 1.2 2004/01/29 18:47:30 jimmyo58 # Made plugins apache_* compatible with older versions of LWP::UserAgent (SF#881411).59 #60 # Revision 1.1 2004/01/02 18:50:00 jimmyo61 # Renamed occurrances of lrrd -> munin62 #63 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo64 # Import of LRRD CVS tree after renaming to Munin65 #66 # Revision 1.4 2003/12/18 16:35:33 jimmyo67 # fail more gracefully when using uninstalled perl modules.68 #69 # Revision 1.3 2003/11/07 17:43:16 jimmyo70 # Cleanups and log entries71 #72 #73 #74 26 # Magic markers: 75 27 #%# family=auto … … 86 38 my @PORTS = exists $ENV{'ports'} ? split(' ', $ENV{'ports'}) : (80); 87 39 88 if ( exists$ARGV[0] and $ARGV[0] eq "autoconf" )40 if ( defined $ARGV[0] and $ARGV[0] eq "autoconf" ) 89 41 { 90 42 if ($ret) … … 111 63 } 112 64 113 if ( exists$ARGV[0] and $ARGV[0] eq "config" )65 if ( defined $ARGV[0] and $ARGV[0] eq "config" ) 114 66 { 115 67 print "graph_title Apache accesses\n"; people/ilmari/modularisation-branch/node/node.d/apache_processes.in
r864 r1012 23 23 # url - Override default status-url 24 24 # 25 # $Log$26 # Revision 1.8 2005/02/24 17:50:40 jimmyo27 # modified graph_args of generic/apache_processes, to work around an rrdtool bug (Deb#296528).28 #29 # Revision 1.7 2004/05/20 13:57:11 jimmyo30 # Set categories to some of the plugins.31 #32 # Revision 1.6 2004/05/14 21:16:46 jimmyo33 # "Upped" som plugins from contrib/manual to auto.34 #35 # Revision 1.5 2004/04/27 08:46:57 jimmyo36 # Fixed broken autoconf in apache-* plugins (Deb#236144).37 #38 # Revision 1.4 2004/02/03 17:17:25 jimmyo39 # Generic/apache-plugins have been modified to properly to report the correct autoconf value. Also, bugfixes in _processes and _volume.40 #41 # Revision 1.3 2004/01/29 18:47:30 jimmyo42 # Made plugins apache_* compatible with older versions of LWP::UserAgent (SF#881411).43 #44 # Revision 1.2 2004/01/29 18:26:12 jimmyo45 # Bugfix, apache_processes now takes port numbers into account. (SF#882263)46 #47 # Revision 1.1 2004/01/02 18:50:00 jimmyo48 # Renamed occurrances of lrrd -> munin49 #50 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo51 # Import of LRRD CVS tree after renaming to Munin52 #53 # Revision 1.4 2003/12/18 16:55:45 jimmyo54 # Enabled multiple ports55 #56 # Revision 1.3 2003/12/18 16:35:33 jimmyo57 # fail more gracefully when using uninstalled perl modules.58 #59 # Revision 1.2 2003/11/07 17:43:16 jimmyo60 # Cleanups and log entries61 #62 #63 #64 25 # Magic markers: 65 26 #%# family=auto … … 75 36 my @PORTS = exists $ENV{'ports'} ? split(' ', $ENV{'ports'}) : (80); 76 37 77 if ( exists$ARGV[0] and $ARGV[0] eq "autoconf" )38 if ( defined $ARGV[0] and $ARGV[0] eq "autoconf" ) 78 39 { 79 40 if ($ret) … … 103 64 } 104 65 105 if ( exists$ARGV[0] and $ARGV[0] eq "config" )66 if ( defined $ARGV[0] and $ARGV[0] eq "config" ) 106 67 { 107 68 print "graph_title Apache processes\n"; people/ilmari/modularisation-branch/node/node.d/apache_volume.in
r864 r1012 24 24 # ports - HTTP port numbers 25 25 # 26 # $Log$27 # Revision 1.12 2004/12/10 18:51:43 jimmyo28 # linux/apt* has been forced to LANG=C, to get predictable output.29 #30 # Revision 1.11 2004/12/10 10:47:47 jimmyo31 # Change name from ${scale} to ${graph_period}, to be more consistent.32 #33 # Revision 1.10 2004/12/09 22:12:54 jimmyo34 # Added "graph_period" option, to make "graph_sums" usable.35 #36 # Revision 1.9 2004/09/26 22:14:39 jimmyo37 # Changd COUNTER -> DERIVE for some plugins. Set min/max values.38 #39 # Revision 1.8 2004/05/20 13:57:12 jimmyo40 # Set categories to some of the plugins.41 #42 # Revision 1.7 2004/05/14 21:16:46 jimmyo43 # "Upped" som plugins from contrib/manual to auto.44 #45 # Revision 1.6 2004/04/27 21:32:06 jimmyo46 # Clarified the vlabels in the apache-plugins (Deb#238594).47 #48 # Revision 1.5 2004/04/27 08:46:57 jimmyo49 # Fixed broken autoconf in apache-* plugins (Deb#236144).50 #51 # Revision 1.4 2004/02/18 15:47:35 jimmyo52 # The generic/apache_* plugins now have defined max values.53 #54 # Revision 1.3 2004/02/03 17:17:25 jimmyo55 # Generic/apache-plugins have been modified to properly to report the correct autoconf value. Also, bugfixes in _processes and _volume.56 #57 # Revision 1.2 2004/01/29 18:47:30 jimmyo58 # Made plugins apache_* compatible with older versions of LWP::UserAgent (SF#881411).59 #60 # Revision 1.1 2004/01/02 18:50:00 jimmyo61 # Renamed occurrances of lrrd -> munin62 #63 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo64 # Import of LRRD CVS tree after renaming to Munin65 #66 # Revision 1.4 2003/12/18 16:35:33 jimmyo67 # fail more gracefully when using uninstalled perl modules.68 #69 # Revision 1.3 2003/11/07 17:43:16 jimmyo70 # Cleanups and log entries71 #72 #73 #74 26 # Magic markers: 75 27 #%# family=auto … … 85 37 my @PORTS = exists $ENV{'ports'} ? split(' ', $ENV{'ports'}) : (80); 86 38 87 if ( exists$ARGV[0] and $ARGV[0] eq "autoconf" )39 if ( defined $ARGV[0] and $ARGV[0] eq "autoconf" ) 88 40 { 89 41 if ($ret) … … 110 62 } 111 63 112 if ( exists$ARGV[0] and $ARGV[0] eq "config" )64 if ( defined $ARGV[0] and $ARGV[0] eq "config" ) 113 65 { 114 66 print "graph_title Apache volume\n"; people/ilmari/modularisation-branch/node/node.d/apc_nis.in
r864 r1012 1 #! /usr/bin/perl-w1 #!@@PERL@@ -w 2 2 # 3 3 # Plugin to monitor APC UPS via the nis port of apcupsd. … … 6 6 # 7 7 # config (required) 8 #9 # $Log$10 # Revision 1.1 2004/11/10 15:34:18 jimmyo11 # Added new plugin generic/apc_nis to monitor APC UPS, contributed by xavier.12 #13 8 # 14 9 # Magic markers (optional - used by munin-config and some installation people/ilmari/modularisation-branch/node/node.d/bind9.in
r864 r1012 9 9 # 10 10 # Contributed by Nicolai Langfeldt 11 #12 # $Log$13 # Revision 1.10 2005/03/07 19:05:29 jimmyo14 # sunos/memory repaired (SF#1143610).15 #16 # Revision 1.9 2005/02/16 18:04:14 jimmyo17 # minor bugfix in generic/bind9.18 #19 # Revision 1.8 2004/12/10 18:51:43 jimmyo20 # linux/apt* has been forced to LANG=C, to get predictable output.21 #22 # Revision 1.7 2004/12/10 14:21:39 jimmyo23 # Patch generic/bind9 to report "unnamed" as "other" (Nicolas Stransky).24 #25 # Revision 1.6 2004/12/10 10:47:47 jimmyo26 # Change name from ${scale} to ${graph_period}, to be more consistent.27 #28 # Revision 1.5 2004/12/09 22:12:54 jimmyo29 # Added "graph_period" option, to make "graph_sums" usable.30 #31 # Revision 1.4 2004/12/09 20:16:29 jimmyo32 # generic/bind9 now handles syslog format as well (by xavier).33 #34 # Revision 1.3 2004/09/14 20:29:20 jimmyo35 # Added statefile parameter.36 #37 # Revision 1.2 2004/05/14 21:16:46 jimmyo38 # "Upped" som plugins from contrib/manual to auto.39 #40 # Revision 1.1 2004/01/02 18:50:00 jimmyo41 # Renamed occurrances of lrrd -> munin42 #43 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo44 # Import of LRRD CVS tree after renaming to Munin45 #46 # Revision 1.1 2003/12/18 21:45:47 jimmyo47 # Plugin contributed by Nicolai Langfeldt48 #49 11 # 50 12 #%# family=contrib people/ilmari/modularisation-branch/node/node.d/bind9_rndc.in
r864 r1012 20 20 # set to empty if the stats are updated otherwise 21 21 # querystats location of the statistics file 22 #23 # $Log$24 # Revision 1.5 2004/12/15 18:05:40 ilmari25 # - Don't use a state file (the statistics file is enough).26 # - Make rndc and statistics file location configurable.27 # - Linearize control flow.28 # - General style cleanup.29 #30 22 # 31 23 #%# family=contrib people/ilmari/modularisation-branch/node/node.d/courier_.in
r864 r1012 27 27 # courierpop3login: 28 28 # Jan 22 06:28:24 raven courierpop3login: Connection, ip=[::ffff:192.168.0.1] 29 5B 29 30 # Jan 22 06:48:22 raven courierpop3login: DISCONNECTED, user=someuser, ip=[::ffff:192.168.0.1], top=0, retr=0, time=21 30 31 # Jan 22 06:28:24 raven courierpop3login: LOGIN, user=someuser, ip=[::ffff:192.168.0.1] … … 35 36 COURIER_LOG=${logfile:-/var/log/mail.log} 36 37 SERVICE=${service:-`basename $0 | sed 's/^courier_//g'`} 37 TEMP_FILE=`mktemp -p /tmp/ munin-courier.XXXXXX`38 38 OFFSET_FILE=@@PLUGSTATE@@/courier_${SERVICE}.offset 39 39 LOGTAIL=${logtail:-/usr/sbin/logtail} 40 40 41 if [ ! -f "$TEMP_FILE" ]; then 42 exit 3 43 fi 41 mktempfile () { 42 @@MKTEMP@@ 43 } 44 44 45 45 case $1 in … … 76 76 fi 77 77 78 TEMP_FILE=`mktempfile munin-courier.XXXXXX` 79 80 if [ -z "$TEMP_FILE" -o ! -f "$TEMP_FILE" ]; then 81 exit 3 82 fi 83 78 84 if [ $ARGS != 0 ]; then 79 85 ${LOGTAIL} -f ${COURIER_LOG} -o ${OFFSET_FILE} | grep "$SERVICE" > ${TEMP_FILE} people/ilmari/modularisation-branch/node/node.d/courier_mta_mailqueue.in
r864 r1012 15 15 # 16 16 # spooldir - Where to find mails in queue 17 #18 # $Log$19 # Revision 1.1 2004/10/19 18:45:30 jimmyo20 # Added new plugins generic/courier_mta*, contributed by Rune N. Skillingstad.21 #22 17 # 23 18 # Magic markers (optional - used by munin-config and some installation people/ilmari/modularisation-branch/node/node.d/courier_mta_mailstats.in
r864 r1012 16 16 # logdir - Where to find logfiles 17 17 # logfile - What file to read in logdir 18 #19 # $Log$20 # Revision 1.4 2004/12/10 18:51:43 jimmyo21 # linux/apt* has been forced to LANG=C, to get predictable output.22 #23 # Revision 1.3 2004/12/10 10:47:47 jimmyo24 # Change name from ${scale} to ${graph_period}, to be more consistent.25 #26 # Revision 1.2 2004/12/09 22:12:54 jimmyo27 # Added "graph_period" option, to make "graph_sums" usable.28 #29 # Revision 1.1 2004/10/19 18:45:30 jimmyo30 # Added new plugins generic/courier_mta*, contributed by Rune N. Skillingstad.31 #32 18 # 33 19 # Magic markers (optional - used by munin-config and some installation people/ilmari/modularisation-branch/node/node.d/courier_mta_mailvolume.in
r864 r1012 16 16 # logdir - Where to find logfiles 17 17 # logfile - What file to read in logdir 18 #19 # $Log$20 # Revision 1.4 2004/12/10 18:51:43 jimmyo21 # linux/apt* has been forced to LANG=C, to get predictable output.22 #23 # Revision 1.3 2004/12/10 10:47:47 jimmyo24 # Change name from ${scale} to ${graph_period}, to be more consistent.25 #26 # Revision 1.2 2004/12/09 22:12:54 jimmyo27 # Added "graph_period" option, to make "graph_sums" usable.28 #29 # Revision 1.1 2004/10/19 18:45:30 jimmyo30 # Added new plugins generic/courier_mta*, contributed by Rune N. Skillingstad.31 #32 18 # 33 19 # Magic markers (optional - used by munin-config and some installation people/ilmari/modularisation-branch/node/node.d/cupsys_pages.in
r864 r1012 15 15 # logfile - What file to read in logdir 16 16 # maxlabel - Maximum printers to plot 17 #18 # $Log$19 # Revision 1.5 2004/12/10 18:51:43 jimmyo20 # linux/apt* has been forced to LANG=C, to get predictable output.21 #22 # Revision 1.4 2004/12/10 10:47:47 jimmyo23 # Change name from ${scale} to ${graph_period}, to be more consistent.24 #25 # Revision 1.3 2004/12/09 22:12:54 jimmyo26 # Added "graph_period" option, to make "graph_sums" usable.27 #28 # Revision 1.2 2004/11/21 00:16:56 jimmyo29 # Changed a lot of plugins so they use DERIVE instead of COUNTER.30 #31 # Revision 1.1 2004/06/08 14:12:19 jimmyo32 # Added contributed plugin generic/cupsys_pages, contributed by Rune N. Skillingstad.33 #34 #35 17 # 36 18 # Magic markers (optinal - used by munin-config and some installation people/ilmari/modularisation-branch/node/node.d/df.in
r864 r1012 7 7 # config (required) 8 8 # autoconf (optional - used by munin-config) 9 #10 # $Log$11 # Revision 1.5 2004/12/09 20:27:45 jimmyo12 # Sort fields in df*-plugins alphabetically.13 #14 # Revision 1.4 2004/05/18 22:04:29 jimmyo15 # Use "sed 1d" instead of "tail +2" in df plugins (patch by Olivier Delhomme).16 #17 # Revision 1.3 2004/01/29 19:39:00 jimmyo18 # Generic plugins now use printf instead of echo -n, as this is more portable (SF#885564)19 #20 # Revision 1.2 2004/01/29 18:57:39 jimmyo21 # Disabled plugins df and df_inode on Solaris (SF#882274).22 #23 # Revision 1.1 2004/01/02 18:50:00 jimmyo24 # Renamed occurrances of lrrd -> munin25 #26 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo27 # Import of LRRD CVS tree after renaming to Munin28 #29 # Revision 1.6 2003/11/07 17:43:16 jimmyo30 # Cleanups and log entries31 #32 #33 9 # 34 10 # Magic markers (optional - used by munin-config and installation people/ilmari/modularisation-branch/node/node.d/df_inode.in
r864 r1012 7 7 # config (required) 8 8 # autoconf (optional - used by munin-config) 9 #10 # $Log$11 # Revision 1.5 2004/12/09 20:27:45 jimmyo12 # Sort fields in df*-plugins alphabetically.13 #14 # Revision 1.4 2004/05/18 22:04:29 jimmyo15 # Use "sed 1d" instead of "tail +2" in df plugins (patch by Olivier Delhomme).16 #17 # Revision 1.3 2004/01/29 19:39:00 jimmyo18 # Generic plugins now use printf instead of echo -n, as this is more portable (SF#885564)19 #20 # Revision 1.2 2004/01/29 18:57:39 jimmyo21 # Disabled plugins df and df_inode on Solaris (SF#882274).22 #23 # Revision 1.1 2004/01/02 18:50:00 jimmyo24 # Renamed occurrances of lrrd -> munin25 #26 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo27 # Import of LRRD CVS tree after renaming to Munin28 #29 # Revision 1.6 2003/11/07 17:43:16 jimmyo30 # Cleanups and log entries31 #32 #33 9 # 34 10 # Magic markers (optional - used by munin-config and installation people/ilmari/modularisation-branch/node/node.d/dhcpd3.in
r864 r1012 20 20 # HTTP::Date 21 21 # 22 # $Log$23 # Revision 1.1 2004/12/10 13:16:19 jimmyo24 # Added plugin generic/dhcpd3, created by Rune N. Skillingstad.25 #26 #27 #28 22 # Magic markers (optinal - used by munin-config and some installation 29 23 # scripts): people/ilmari/modularisation-branch/node/node.d/exim_mailqueue.in
r864 r1012 16 16 # queuewarn - When to warn 17 17 # queuecrit - When to crit 18 #19 # $Log$20 # Revision 1.4 2004/11/10 15:47:10 jimmyo21 # Made graph_title a parameter for generic/exim_mailqueue (patch by Torstein T. Svendsen, SF#1060834).22 #23 # Revision 1.3 2004/05/20 13:57:12 jimmyo24 # Set categories to some of the plugins.25 #26 # Revision 1.2 2004/01/29 19:39:00 jimmyo27 # Generic plugins now use printf instead of echo -n, as this is more portable (SF#885564)28 #29 # Revision 1.1 2004/01/02 18:50:00 jimmyo30 # Renamed occurrances of lrrd -> munin31 #32 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo33 # Import of LRRD CVS tree after renaming to Munin34 #35 # Revision 1.5 2003/11/07 17:43:16 jimmyo36 # Cleanups and log entries37 #38 #39 18 # 40 19 # Magic markers (optional - used by installation scripts and people/ilmari/modularisation-branch/node/node.d/exim_mailqueue_alt.in
r864 r1012 18 18 # queuewarn - warning limit 19 19 # queuecrit - critical limit 20 #21 # $Log$22 # Revision 1.2 2005/03/17 19:18:36 ilmari23 # Only run 'exim -bpr' once in generic/exim_mailqueue_alt,24 # and use only awk to process the data.25 #26 # Revision 1.1 2004/12/09 20:03:26 jimmyo27 # Added two new plugins contributed by Jacques Caruso, generic/exim_mailqueue_alt and generic/mailscanner.28 #29 20 # 30 21 # Magic markers: people/ilmari/modularisation-branch/node/node.d/exim_mailstats.in
r864 r1012 14 14 # logdir - Override what exim says 15 15 # exim - Where's exim? 16 #17 # $Log$18 # Revision 1.9 2005/03/12 23:06:30 jimmyo19 # Avoid negative spike in generic/exim_mailstats.20 #21 # Revision 1.8 2005/03/09 19:24:15 jimmyo22 # Thanks to Stephen Gran, generic/exim_mailstats now graphs rejects (Deb#295799).23 #24 # Revision 1.7 2004/12/10 18:51:43 jimmyo25 # linux/apt* has been forced to LANG=C, to get predictable output.26 #27 # Revision 1.6 2004/12/10 10:47:47 jimmyo28 # Change name from ${scale} to ${graph_period}, to be more consistent.29 #30 # Revision 1.5 2004/12/09 22:12:54 jimmyo31 # Added "graph_period" option, to make "graph_sums" usable.32 #33 # Revision 1.4 2004/11/21 00:16:56 jimmyo34 # Changed a lot of plugins so they use DERIVE instead of COUNTER.35 #36 # Revision 1.3 2004/11/10 15:54:49 jimmyo37 # Applied patch from Torstein T. Svendsen to generic/exim_mailstats, to handle logfiles with timestamps in the name (SF#1055214)38 #39 # Revision 1.2 2004/05/20 13:57:12 jimmyo40 # Set categories to some of the plugins.41 #42 # Revision 1.1 2004/01/02 18:50:00 jimmyo43 # Renamed occurrances of lrrd -> munin44 #45 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo46 # Import of LRRD CVS tree after renaming to Munin47 #48 # Revision 1.7 2003/11/15 11:10:28 jimmyo49 # Various fixes50 #51 # Revision 1.6 2003/11/07 17:43:16 jimmyo52 # Cleanups and log entries53 #54 #55 16 # 56 17 # Magic markers (optional - used by munin-config and some installation people/ilmari/modularisation-branch/node/node.d/foldingathome.in
r864 r1012 7 7 # config (required) 8 8 # autoconf (optional - only used by munin-config) 9 #10 # $Log$11 # Revision 1.1 2004/12/09 16:49:30 jimmyo12 # Renamed generic/folding@home to generic/foldingathome (SF#1074241).13 #14 # Revision 1.2 2004/05/09 19:47:24 jimmyo15 # Added Folding@home plugin, contributed by Xavier.16 #17 9 # 18 10 # Magic markers (optional - used by munin-config and some installation people/ilmari/modularisation-branch/node/node.d/hddtemp.in
r864 r1012 9 9 # 10 10 # drives -- List drives to monitor. E.g. "hda hdc". 11 #12 # $Log$13 # Revision 1.5 2005/01/25 21:01:20 jimmyo14 # Added plugin generic/hddtemp_smartctl, made by Lupe Christoph. Made it the default hddtemp plugin.15 #16 # Revision 1.4 2004/11/10 16:00:39 jimmyo17 # Applied patch from Nicolas Stransky to generic/hddtemp, to fetch temp more elegantly (SF#1052845).18 #19 # Revision 1.3 2004/05/20 19:02:36 jimmyo20 # Set categories on a bunch of plugins21 #22 # Revision 1.2 2004/01/29 19:39:00 jimmyo23 # Generic plugins now use printf instead of echo -n, as this is more portable (SF#885564)24 #25 # Revision 1.1 2004/01/02 18:50:00 jimmyo26 # Renamed occurrances of lrrd -> munin27 #28 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo29 # Import of LRRD CVS tree after renaming to Munin30 #31 # Revision 1.2 2003/12/18 19:16:00 jimmyo32 # Changes from Alexandre33 #34 # Revision 1.1 2003/12/18 19:04:37 jimmyo35 # New plugin: Alexandre Dupouy contributed "hddtemp".36 #37 11 # 38 12 #%# family=contrib people/ilmari/modularisation-branch/node/node.d/hddtemp2.in
r864 r1012 22 22 # 23 23 # Revision 0.1 2004/02/24 Andrew Radke 24 #25 # $Log$26 # Revision 1.8 2005/01/25 21:01:21 jimmyo27 # Added plugin generic/hddtemp_smartctl, made by Lupe Christoph. Made it the default hddtemp plugin.28 #29 # Revision 1.7 2004/11/20 21:56:15 jimmyo30 # Fixed bug in generic/hddtemp2, patch by arturaz (SF#1037002).31 #32 # Revision 1.6 2004/08/18 17:51:05 jimmyo33 # Made generic/hddtemp2 understand environment variables with quotes (Deb#265022).34 #35 # Revision 1.5 2004/08/18 17:01:37 jimmyo36 # Force LANG/LC_ALL=C in linux/sensors_ and generic/hddtemp2, to remove problems in parsing of sensors output (SF#972749, SF#972748, Deb#255312)37 #38 # Revision 1.4 2004/08/18 16:42:04 jimmyo39 # Force LANG=C in plugin/hddtemp2, to remove problems in parsing of hddtemp output (Deb#253497).40 #41 # Revision 1.3 2004/05/20 19:02:36 jimmyo42 # Set categories on a bunch of plugins43 #44 # Revision 1.2 2004/05/14 21:16:46 jimmyo45 # "Upped" som plugins from contrib/manual to auto.46 #47 # Revision 1.1 2004/05/09 19:34:26 jimmyo48 # Added plugin hddtemp2, contributred by Andrew Radke, modified by Lupe Christoph.49 #50 24 # 51 25 # Magic markers: … … 76 50 $HDDTEMP .= ' -q '.join(' ', @disks).' 2>/dev/null'; 77 51 78 if ( exists$ARGV[0] and $ARGV[0] eq 'autoconf' ) {52 if ( defined $ARGV[0] and $ARGV[0] eq 'autoconf' ) { 79 53 # Now see if "hddtemp" can run 80 54 my $text = `$HDDTEMP`; … … 97 71 } 98 72 99 if ( exists$ARGV[0] and $ARGV[0] eq 'config' ) {73 if ( defined $ARGV[0] and $ARGV[0] eq 'config' ) { 100 74 print "graph_title $config{title}\n"; 101 75 print "graph_vtitle $config{vtitle}\n"; people/ilmari/modularisation-branch/node/node.d/hddtemp_smartctl.in
r864 r1012 1 #! /usr/bin/perl1 #!@@PERL@@ -w 2 2 # 3 3 # Plugin to monitor harddrive temperatures through SMART. … … 10 10 # args_$dev -- additional arguments to smartctl for one drive, 11 11 # e.g. "env.args_hda -v 194,10xCelsius" 12 # Use this to make the plugin use the --all or -a option 13 # if your disk will not return it's temperature when 14 # only the -A option is used. 12 15 # 13 16 # Note for users of RAID controllers (smartmontools currently only … … 15 18 # controller(s) as raiddev_num (e.g. sda_0). Then you must specify the 16 19 # type like this: type_sda_0 3ware,0. 17 #18 # $Log$19 # Revision 1.6 2005/03/03 10:13:51 lupe20 # Add feature to specify additional arguments to smartctl21 #22 # Revision 1.5 2005/02/17 11:13:34 lupe23 # Support more than one drive on RAID controllers. Explain how to configure24 # them.25 #26 # Revision 1.4 2005/01/29 22:14:02 jimmyo27 # Make the plugin check all rdsks.28 #29 # Revision 1.3 2005/01/26 09:31:36 jimmyo30 # Added license note.31 #32 # Revision 1.2 2005/01/25 21:01:21 jimmyo33 # Added plugin generic/hddtemp_smartctl, made by Lupe Christoph. Made it the default hddtemp plugin.34 #35 # Revision 1.1 2004/11/10 16:11:27 jimmyo36 # Added new plugin linux/hddtemp_smartctl, made by Peter Gervai (SF#1032727).37 #38 # Revision 1.0 2004/09/2239 # New plugin: Peter Gervai <grin(*)grin.hu>40 #41 20 # 42 21 #%# family=auto … … 84 63 $smartctl = `which smartctl` unless $smartctl; 85 64 chomp $smartctl; 65 $smartctl = undef unless -x $smartctl; 86 66 87 67 # Still not found? Check obvious places 88 my @dirs ,qw(/usr/bin /usr/sbin /usr/local/bin /usr/local/sbin);68 my @dirs = qw(/usr/bin /usr/sbin /usr/local/bin /usr/local/sbin); 89 69 until ($smartctl or @dirs == 0) { 90 70 my $dir = shift @dirs; … … 107 87 } 108 88 } elsif ($^O eq 'solaris') { 109 @drives = map { s@.*/@@ } glob '/dev/rdsk/c*t*d*s2';89 @drives = map { s@.*/@@ ; $_ } glob '/dev/rdsk/c*t*d*s2'; 110 90 } 111 91 112 92 @drives = split ' ', $ENV{drives} if exists $ENV{drives}; 113 93 114 if (exists $ARGV[0]) { 94 # Sort list of drives 95 @drives = sort @drives; 96 97 if (defined $ARGV[0]) { 115 98 if ($ARGV[0] eq 'autoconf') { 116 99 if ($smartctl and -x $smartctl) { … … 140 123 my $dev; 141 124 $dev = $_ =~ /(.*)(?:_\d+)/ ? $1 : $_; 142 my $cmd = $smartctl.' - a';125 my $cmd = $smartctl.' -A '; 143 126 $cmd .= $ENV{'args_'.$_}.' ' if exists $ENV{'args_'.$_}; 144 127 $cmd .= '-d '.$ENV{'type_'.$_}.' ' if exists $ENV{'type_'.$_}; 145 $cmd .= "/dev/$dev"; 128 if ($^O eq 'solaris') { 129 $cmd .= "/dev/rdsk/$dev"; 130 } else { 131 $cmd .= "/dev/$dev"; 132 } 146 133 my $output = `$cmd`; 147 134 if ($output =~ /Current Drive Temperature:\s*(\d+)/) { people/ilmari/modularisation-branch/node/node.d/ipac-ng.in
r864 r1012 3 3 # Skeleton-plugin to monitor ipac-ng rules. To monitor an 4 4 # rule, copy ipac-ng and edit variables. 5 #6 # $Log$7 # Revision 1.2 2004/06/28 12:08:54 jimmyo8 # Plugin bugfixes from Jacques Caruso, in linux/iostat_ios and generic/ipacng.9 #10 # Revision 1.1 2004/05/06 22:42:35 jimmyo11 # Added plugin ipac-ng, contributed by Arturas Slajus.12 #13 5 # 14 6 # Magic markers (optional - used by munin-config and some installation people/ilmari/modularisation-branch/node/node.d/ircu.in
r864 r1012 1 1 #!@@PERL@@ 2 #3 # $Log$4 # Revision 1.1 2004/01/02 18:50:00 jimmyo5 # Renamed occurrances of lrrd -> munin6 #7 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo8 # Import of LRRD CVS tree after renaming to Munin9 #10 # Revision 1.3 2003/12/18 19:02:36 jimmyo11 # Typo12 #13 # Revision 1.2 2003/12/18 17:14:24 jimmyo14 # Added autoconf-support15 #16 # Revision 1.1 2003/11/10 18:51:50 jimmyo17 # Initial entries18 2 # 19 3 #%# family=manual people/ilmari/modularisation-branch/node/node.d/loggrep.in
r864 r1012 30 30 # regex - Regex to look for (required) 31 31 # label - Label 32 # counter - If set the value captured by the first paren 33 # in the regex is summed instead of coutning lines. 34 # The value is used for the vertical label. 32 35 # regex_<key> - Additional regexes 33 36 # label_<key> - Additional labels 37 # counter_<key> - Additional counters (the value is ignored). 34 38 # title - Graph title 35 39 # 36 40 # TODO: Handle rotated logs 37 #38 # $Log$39 # Revision 1.5 2005/01/05 16:44:02 ilmari40 # Fixed typo in generic/loggrep breaking implicit labeling.41 #42 # Revision 1.4 2004/12/10 18:51:43 jimmyo43 # linux/apt* has been forced to LANG=C, to get predictable output.44 #45 # Revision 1.3 2004/12/10 10:47:47 jimmyo46 # Change name from ${scale} to ${graph_period}, to be more consistent.47 #48 # Revision 1.2 2004/12/09 22:12:54 jimmyo49 # Added "graph_period" option, to make "graph_sums" usable.50 #51 # Revision 1.1 2004/11/20 05:59:25 ilmari52 # Added plugin generic/loggrep for generic log grepping.53 #54 41 # 55 42 # Magic markers (optional - used by munin-config and some installation … … 61 48 my %regex; 62 49 my $logfile = $ENV{logfile}; 50 my $vlabel = defined $ENV{'counter'} ? $ENV{'counter'} : 'entries'; 63 51 64 52 (my $name = $0) =~ s|.*/||; … … 70 58 $regex{'count'}{'label'} = $ENV{'label'} || $ENV{'regex'}; 71 59 $regex{'count'}{'value'} = 0; 60 $regex{'count'}{'counter'} = defined $ENV{'counter'}; 72 61 } 73 62 … … 76 65 $regex{$key}{'label'} = $ENV{"label_$key"} || $ENV{"regex_$key"}; 77 66 $regex{$key}{'value'} = 0; 67 $regex{$key}{'counter'} = defined $ENV{"counter_$key"}; 78 68 } 79 69 … … 86 76 print "graph_title $title\n"; 87 77 print "graph_args --base 1000 -l 0\n"; 88 print "graph_vlabel entries/ \${graph_period}\n";78 print "graph_vlabel $vlabel / \${graph_period}\n"; 89 79 print "graph_category other\n"; 90 80 for my $key (keys %regex) { … … 156 146 for my $match (values %regex) { 157 147 if ($line =~ $match->{'regex'}) { 158 $match->{'value'} ++;148 $match->{'value'} += $match->{'counter'} ? $1 : 1; 159 149 } 160 150 } people/ilmari/modularisation-branch/node/node.d/mailman.in
r864 r1012 1 1 #!@@PERL@@ 2 2 3 # $Log$4 # Revision 1.4 2005/03/07 19:52:02 jimmyo5 # generic/mailman now handles regular mailman (Deb#297904).6 #7 # Revision 1.3 2004/12/09 22:12:55 jimmyo8 # Added "graph_period" option, to make "graph_sums" usable.9 #10 # Revision 1.2 2004/11/21 00:16:56 jimmyo11 # Changed a lot of plugins so they use DERIVE instead of COUNTER.12 #13 # Revision 1.1 2004/01/02 18:50:00 jimmyo14 # Renamed occurrances of lrrd -> munin15 #16 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo17 # Import of LRRD CVS tree after renaming to Munin18 #19 # Revision 1.3 2003/11/07 17:43:16 jimmyo20 # Cleanups and log entries21 #22 3 23 4 people/ilmari/modularisation-branch/node/node.d/mailscanner.in
r864 r1012 22 22 # 23 23 # None known 24 #25 # $Log$26 # Revision 1.4 2005/02/16 19:51:54 jimmyo27 # Made contrib-plugins generic/amavis and generic/mailstats more secure.28 #29 # Revision 1.3 2005/02/16 19:51:18 jimmyo30 # Made contrib-plugins generic/amavis and generic/mailstats more secure.31 #32 # Revision 1.2 2005/02/16 19:47:11 jimmyo33 # Made contrib-plugins generic/amavis and generic/mailstats more secure.34 #35 # Revision 1.1 2004/12/09 20:03:26 jimmyo36 # Added two new plugins contributed by Jacques Caruso, generic/exim_mailqueue_alt and generic/mailscanner.37 #38 24 # 39 25 # Magic markers: people/ilmari/modularisation-branch/node/node.d/mhttping.in
r864 r1012 29 29 # 30 30 # 6. Restart munin-node. 31 #32 # $Log$33 # Revision 1.1 2004/12/09 20:42:19 jimmyo34 # Added plugin generic/mhttping by Greg Connor.35 #36 31 # 37 32 people/ilmari/modularisation-branch/node/node.d/multips.in
r864 r1012 16 16 # env.regex_pop3d ^[0-9]* pop3d: 17 17 # 18 # $Log$19 # Revision 1.1 2004/01/29 19:42:45 jimmyo20 # Added a new plugin generic/multips to count several procs in one graph. (SF#885579)21 #22 #23 18 # Magic markers (optional): 24 19 #%# family=manual people/ilmari/modularisation-branch/node/node.d/munin_graph.in
r864 r1012 7 7 # config (required) 8 8 # autoconf (optional - used by munin-config) 9 #10 # $Log$11 # Revision 1.3 2004/12/09 18:39:01 jimmyo12 # Added more sensible autoconf to generic/munin_graph,munin_update,sybase_space.13 #14 # Revision 1.2 2004/01/29 19:39:00 jimmyo15 # Generic plugins now use printf instead of echo -n, as this is more portable (SF#885564)16 #17 # Revision 1.1 2004/01/02 18:50:00 jimmyo18 # Renamed occurrances of lrrd -> munin19 #20 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo21 # Import of LRRD CVS tree after renaming to Munin22 #23 # Revision 1.6 2003/11/10 18:13:46 jimmyo24 # Revert changes done in 1.525 #26 # Revision 1.5 2003/11/07 17:43:16 jimmyo27 # Cleanups and log entries28 #29 #30 9 # 31 10 # Magic markers (optional - used by munin-config and installation people/ilmari/modularisation-branch/node/node.d/munin_update.in
r864 r1012 7 7 # config (required) 8 8 # autoconf (optional - used by munin-config) 9 #10 # $Log$11 # Revision 1.3 2004/12/09 18:39:01 jimmyo12 # Added more sensible autoconf to generic/munin_graph,munin_update,sybase_space.13 #14 # Revision 1.2 2004/01/29 19:39:00 jimmyo15 # Generic plugins now use printf instead of echo -n, as this is more portable (SF#885564)16 #17 # Revision 1.1 2004/01/02 18:50:00 jimmyo18 # Renamed occurrances of lrrd -> munin19 #20 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo21 # Import of LRRD CVS tree after renaming to Munin22 #23 # Revision 1.6 2003/11/10 18:13:46 jimmyo24 # Revert changes done in 1.525 #26 # Revision 1.5 2003/11/07 17:43:16 jimmyo27 # Cleanups and log entries28 #29 #30 9 # 31 10 # Magic markers (optional - used by munin-config and installation people/ilmari/modularisation-branch/node/node.d/mysql_bytes.in
r864 r1012 11 11 # 12 12 # mysqlopts - Options to pass to mysql 13 #14 # $Log$15 # Revision 1.6 2004/12/10 10:47:47 jimmyo16 # Change name from ${scale} to ${graph_period}, to be more consistent.17 #18 # Revision 1.5 2004/12/09 22:12:55 jimmyo19 # Added "graph_period" option, to make "graph_sums" usable.20 #21 # Revision 1.4 2004/11/21 00:16:56 jimmyo22 # Changed a lot of plugins so they use DERIVE instead of COUNTER.23 #24 # Revision 1.3 2004/05/20 13:57:12 jimmyo25 # Set categories to some of the plugins.26 #27 # Revision 1.2 2004/04/27 18:58:53 jimmyo28 # Fixed bug in mysql-plugins (Deb#233762).29 #30 # Revision 1.1 2004/01/02 18:50:00 jimmyo31 # Renamed occurrances of lrrd -> munin32 #33 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo34 # Import of LRRD CVS tree after renaming to Munin35 #36 # Revision 1.7 2003/11/07 22:12:50 jimmyo37 # Changed deprecated plugin options38 #39 # Revision 1.6 2003/11/07 17:43:16 jimmyo40 # Cleanups and log entries41 #42 #43 13 # 44 14 #%# family=auto people/ilmari/modularisation-branch/node/node.d/mysql_isam_space_.in
r864 r1012 15 15 # statefile - where to put the statefile 16 16 # ignore - Tables to ignore. Regex. 17 # 18 # $Log$ 19 # Revision 1.2 2004/05/20 13:57:12 jimmyo 20 # Set categories to some of the plugins. 21 # 22 # Revision 1.1 2004/01/02 18:50:00 jimmyo 23 # Renamed occurrances of lrrd -> munin 24 # 25 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo 26 # Import of LRRD CVS tree after renaming to Munin 27 # 28 # Revision 1.15 2003/12/08 10:52:31 jimmyo 29 # Bugfix when printing values 30 # 31 # Revision 1.14 2003/11/07 17:43:16 jimmyo 32 # Cleanups and log entries 33 # 34 # 17 # absolute - use tables sizes, not percent of maximum 35 18 # 36 19 #%# family=auto … … 149 132 elsif ($pid == 0) 150 133 { # Child 151 exec ($MYSQLSHOW, "--status", "-v", @mysql_opts);134 exec ($MYSQLSHOW, @mysql_opts, "--status", "-v"); 152 135 } 153 136 … … 201 184 } 202 185 186 my %index; 187 my $headerseen; 188 203 189 while (<IN>) 204 190 { 205 191 my @fields = split (/\s*\|\s*/); 206 if (defined $fields[1] and $fields[1] ne "Name" and 207 defined $fields[2] and 208 ($fields[2] eq "MyISAM" or $fields[2] eq "ISAM")) # Not a separator line 192 next if @fields > 2; # Separator line 193 if (! $headerseen and $fields[1] eq "Name") 194 { # Header line, grab field names 195 %index = map {($field[$_], $_)} 0..$#fields; 196 } 197 else 209 198 { 210 printf OUT ("%s.%s %f\n", $db, $fields[1], (100*$fields[6]/$fields[7]));211 if ($DB eq $db)212 {213 $tables->{$fields[1]} = (100*$fields[6]/$fields[7]);214 }199 my $value = 200 $ABSOLUTE ? $fields[$index{Data_length}] 201 : (100*$fields[$index{Data_length}]/$fields[$index{Max_data_length}]); 202 printf OUT ("%s.%s %f\n", $db, $fields[1], $value); 203 $tables->{$fields[1]} = $value if $DB eq $db; 215 204 } 216 205 } people/ilmari/modularisation-branch/node/node.d/mysql_queries.in
r864 r1012 4 4 # 5 5 # Copyright 2003-2004 - Per Andreas Buer 6 #7 # $Log$8 # Revision 1.11 2004/12/10 18:51:43 jimmyo9 # linux/apt* has been forced to LANG=C, to get predictable output.10 #11 # Revision 1.10 2004/12/10 10:47:47 jimmyo12 # Change name from ${scale} to ${graph_period}, to be more consistent.13 #14 # Revision 1.9 2004/12/09 22:12:55 jimmyo15 # Added "graph_period" option, to make "graph_sums" usable.16 #17 # Revision 1.8 2004/11/21 00:16:56 jimmyo18 # Changed a lot of plugins so they use DERIVE instead of COUNTER.19 #20 # Revision 1.7 2004/09/08 15:25:33 ilmari21 # Use @@PERL@@ in all perl shebang lines.22 #23 # Revision 1.6 2004/05/20 13:57:12 jimmyo24 # Set categories to some of the plugins.25 #26 # Revision 1.5 2004/04/27 18:58:53 jimmyo27 # Fixed bug in mysql-plugins (Deb#233762).28 #29 # Revision 1.4 2004/01/29 18:49:55 jimmyo30 # Bugfix in plugin mysql_queries - insertions were no longer graphed. (SF#881483).31 #32 # Revision 1.3 2004/01/29 17:36:20 jimmyo33 # Updated copyright information34 #35 # Revision 1.2 2004/01/15 16:35:43 jimmyo36 # Bugfix from Dagfinn I. Mannsåker, closing SF#876443, SF#865125.37 #38 # Revision 1.1 2004/01/02 18:50:00 jimmyo39 # Renamed occurrances of lrrd -> munin40 #41 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo42 # Import of LRRD CVS tree after renaming to Munin43 #44 # Revision 1.8 2003/12/01 13:31:37 jimmyo45 # Bugfix to make stack/area right46 #47 # Revision 1.7 2003/11/08 00:10:13 jimmyo48 # New mysql_queries plugin49 #50 6 # 51 7 # Parameters: people/ilmari/modularisation-branch/node/node.d/mysql_slowqueries.in
r864 r1012 11 11 # 12 12 # mysqlopts - Options to pass to mysql 13 #14 # $Log$15 # Revision 1.6 2004/12/10 10:47:47 jimmyo16 # Change name from ${scale} to ${graph_period}, to be more consistent.17 #18 # Revision 1.5 2004/12/09 22:12:55 jimmyo19 # Added "graph_period" option, to make "graph_sums" usable.20 #21 # Revision 1.4 2004/11/21 00:16:56 jimmyo22 # Changed a lot of plugins so they use DERIVE instead of COUNTER.23 #24 # Revision 1.3 2004/05/20 13:57:12 jimmyo25 # Set categories to some of the plugins.26 #27 # Revision 1.2 2004/04/27 18:58:53 jimmyo28 # Fixed bug in mysql-plugins (Deb#233762).29 #30 # Revision 1.1 2004/01/02 18:50:00 jimmyo31 # Renamed occurrances of lrrd -> munin32 #33 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo34 # Import of LRRD CVS tree after renaming to Munin35 #36 # Revision 1.6 2003/11/07 17:43:16 jimmyo37 # Cleanups and log entries38 #39 #40 13 # 41 14 #%# family=auto people/ilmari/modularisation-branch/node/node.d/mysql_threads.in
r864 r1012 12 12 # 13 13 # mysqlopts - Options to pass to mysql 14 #15 # $Log$16 # Revision 1.2 2004/05/20 13:57:12 jimmyo17 # Set categories to some of the plugins.18 #19 # Revision 1.1 2004/01/02 18:50:00 jimmyo20 # Renamed occurrances of lrrd -> munin21 #22 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo23 # Import of LRRD CVS tree after renaming to Munin24 #25 # Revision 1.6 2003/11/07 17:43:16 jimmyo26 # Cleanups and log entries27 #28 #29 14 # 30 15 #%# family=auto people/ilmari/modularisation-branch/node/node.d/named.in
r864 r1012 10 10 # 11 11 # logfile - set which log file to use 12 #13 # $Log$14 # Revision 1.5 2005/01/24 20:43:33 jimmyo15 # generic/named probes for more log files before giving up (Deb#291849).16 #17 # Revision 1.4 2004/12/10 10:47:47 jimmyo18 # Change name from ${scale} to ${graph_period}, to be more consistent.19 #20 # Revision 1.3 2004/12/09 22:12:55 jimmyo21 # Added "graph_period" option, to make "graph_sums" usable.22 #23 # Revision 1.2 2004/12/09 20:23:00 jimmyo24 # generic/named a bit more portable (by Will Froning).25 #26 # Revision 1.1 2004/01/02 18:50:00 jimmyo27 # Renamed occurrances of lrrd -> munin28 #29 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo30 # Import of LRRD CVS tree after renaming to Munin31 #32 # Revision 1.3 2003/11/26 15:57:21 jimmyo33 # Milliqueries not of interest...34 #35 # Revision 1.2 2003/11/26 14:47:31 jimmyo36 # No peaks...37 #38 # Revision 1.1 2003/11/26 09:26:04 jimmyo39 # Plugin contribution by Nicolai Langfeldt40 #41 12 # 42 13 #%# family=contrib people/ilmari/modularisation-branch/node/node.d/ntp_.in
r864 r1012 9 9 # suggest (optional - used by munin-node-configure) 10 10 # 11 # $Log$ 12 # Revision 1.4 2004/11/21 20:19:09 jimmyo 13 # Don't suggest localhost peer. 11 # Config variables: 14 12 # 15 # Revision 1.3 2004/11/21 20:12:32 jimmyo 16 # Cosmetics. 17 # 18 # Revision 1.2 2004/11/21 19:55:28 jimmyo 19 # Upped generic/ntp_ to auto family. 20 # 21 # Revision 1.1 2004/11/21 19:35:23 jimmyo 22 # Corrected file name. 23 # 24 # Revision 1.2 2004/09/08 15:25:33 ilmari 25 # Use @@PERL@@ in all perl shebang lines. 26 # 27 # Revision 1.1 2004/01/30 15:07:38 jimmyo 28 # Added generic plugins ntp_ and ntp_states to manual family (SF#887000). 29 # 30 # 31 # 13 # lowercase - lowercase hostnames after lookup 32 14 # 33 15 # Magic markers - optional - used by installation scripts and … … 67 49 my $name = gethostbyaddr(inet_aton($addr)); 68 50 $name = defined $name ? $name->name : $addr; 51 $name = lc $name if exists $ENV{"lowercase"}; 69 52 $name =~ s/[\.-]/_/g; 70 53 print $name, "\n"; … … 86 69 my $host = gethostbyaddr(inet_aton($addr)); 87 70 $host = defined $host ? $host->name : $addr; 71 $host = lc $host if exists $ENV{"lowercase"}; 88 72 my $host_ = $host; 89 73 $host_ =~ s/[\.-]/_/g; … … 91 75 print "graph_title NTP statistics for peer $host\n"; 92 76 } 93 print "graph_args --base 1000 --vertical-label msec--lower-limit 0\n";77 print "graph_args --base 1000 --vertical-label seconds --lower-limit 0\n"; 94 78 print "delay.label Delay\n"; 95 79 print "delay.draw LINE2\n"; 80 print "delay.cdef delay,1000,/\n"; 96 81 print "offset.label Offset\n"; 97 82 print "offset.draw LINE2\n"; 83 print "offset.cdef offset,1000,/\n"; 98 84 print "jitter.label Jitter\n"; 99 85 print "jitter.draw LINE2\n"; 86 print "jitter.cdef offset,1000,/\n"; 100 87 exit 0; 101 88 } … … 108 95 my $host = gethostbyaddr(inet_aton($addr)); 109 96 $host = defined $host ? $host->name : $addr; 97 $host = lc $host if exists $ENV{"lowercase"}; 110 98 $host =~ s/[\.-]/_/g; 111 99 next unless $host eq $name; people/ilmari/modularisation-branch/node/node.d/ntp_states.in
r864 r1012 8 8 # autoconf (optional - used by lrrd-config) 9 9 # 10 # $Log$ 11 # Revision 1.2 2004/11/21 20:23:36 jimmyo 12 # Better autoconf handling. 10 # Config variables: 13 11 # 14 # Revision 1.1 2004/11/21 19:35:23 jimmyo 15 # Corrected file name. 16 # 17 # Revision 1.2 2004/09/08 15:25:33 ilmari 18 # Use @@PERL@@ in all perl shebang lines. 19 # 20 # Revision 1.1 2004/01/30 15:07:38 jimmyo 21 # Added generic plugins ntp_ and ntp_states to manual family (SF#887000). 22 # 23 # 24 # 12 # lowercase - lowercase hostnames after lookup 25 13 # 26 14 # Magic markers - optional - used by installation scripts and … … 72 60 $host = defined $host ? $host->name : $addr; 73 61 my $name = $host; 62 $host = lc $host if exists $ENV{"lowercase"}; 74 63 $host =~ s/[\.-]/_/g; 75 64 print "$host.label $name\n"; … … 86 75 my $host = gethostbyaddr(inet_aton($addr)); 87 76 $host = defined $host ? $host->name : $addr; 77 $host = lc $host if exists $ENV{"lowercase"}; 88 78 $host =~ s/[\.-]/_/g; 89 79 print "$host.value ", exists $stateval{$state} ? $stateval{$state} : 0, "\n"; people/ilmari/modularisation-branch/node/node.d/nut_misc.in
r864 r1012 1 #!@@PERL@@1 !@@PERL@@ 2 2 3 3 use strict; … … 43 43 ); 44 44 45 if ( exists$ARGV[0] and $ARGV[0] eq 'config' ) {45 if ( defined $ARGV[0] and $ARGV[0] eq 'config' ) { 46 46 print "graph_title UPS Misc - $config{upsname}\n"; 47 47 #print "graph_args -l 110\n"; people/ilmari/modularisation-branch/node/node.d/nut_volts.in
r864 r1012 33 33 ); 34 34 35 if ( exists$ARGV[0] and $ARGV[0] eq 'config' ) {35 if ( defined $ARGV[0] and $ARGV[0] eq 'config' ) { 36 36 print "graph_title UPS Voltages - $config{upsname}\n"; 37 37 print "graph_args -l 115\n"; people/ilmari/modularisation-branch/node/node.d/perdition.in
r864 r1012 24 24 # buffy perdition[5139]: Fatal error negotiating setup. Exiting child. 25 25 26 mktempfile () { 27 @@MKTEMP@@ 28 } 26 29 27 30 # Set the location of the perdition logs 28 31 PERDITION_LOG=${logfile:-/var/log/perdition.log} 29 TEMP_FILE=`mktemp -p /tmp/ munin-perdition.XXXXX`30 32 OFFSET_FILE=@@PLUGSTATE@@/perdition.offset 31 33 LOGTAIL=${logtail:-/usr/sbin/logtail} 32 33 if [ ! -f "$TEMP_FILE" ]; then34 exit 335 fi36 34 37 35 case $1 in … … 54 52 disconnected.label disconnections 55 53 imap.label IMAP Auths 54 imaps.label IMAPS Auths 56 55 pop.label POP Auths 56 pops.label POPS Auths 57 57 fatal.label Fatal Errors 58 58 EOF … … 69 69 fi 70 70 71 TEMP_FILE=`mktempfile munin-perdition.XXXXXX` 72 73 if [ -z "$TEMP_FILE" -o ! -f "$TEMP_FILE" ]; then 74 exit 3 75 fi 76 71 77 if [ $ARGS != 0 ]; then 72 78 ${LOGTAIL} -f ${PERDITION_LOG} -o ${OFFSET_FILE} > ${TEMP_FILE} … … 77 83 disconnected=`grep "Close:" ${TEMP_FILE} | wc -l` 78 84 imap=`grep 'port="143" status="ok"' ${TEMP_FILE} | wc -l` 85 imaps=`grep 'port="993" status="ok"' ${TEMP_FILE} | wc -l` 79 86 pop=`grep 'port="110" status="ok"' ${TEMP_FILE} | wc -l` 87 pops=`grep 'port="995" status="ok"' ${TEMP_FILE} | wc -l` 80 88 fatal=`grep 'Fatal [e|E]rror' ${TEMP_FILE} | wc -l` 81 89 … … 85 93 echo "disconnected.value ${disconnected}" 86 94 echo "imap.value ${imap}" 95 echo "imaps.value ${imaps}" 87 96 echo "pop.value ${pop}" 97 echo "pops.value ${pops}" 88 98 echo "fatal.value ${fatal}" people/ilmari/modularisation-branch/node/node.d/pm3users_.in
r864 r1012 30 30 # 31 31 # None known (I'll regret saying that, I know) 32 #33 # $Log$34 # Revision 1.1 2004/12/09 20:07:39 jimmyo35 # New version of generic/pm3users_ by plugin creator Jacques Caruso.36 #37 # Revision 1.1 2004/05/09 21:11:15 jimmyo38 # New plugin (pm3users) and a bunch of patches from Jacques Caruso.39 #40 32 # 41 33 # Magic markers: people/ilmari/modularisation-branch/node/node.d/pop_stats.in
r864 r1012 1 1 #!@@PERL@@ 2 2 3 # $Log$4 # Revision 1.5 2004/12/10 18:51:43 jimmyo5 # linux/apt* has been forced to LANG=C, to get predictable output.6 #7 # Revision 1.4 2004/12/10 10:47:47 jimmyo8 # Change name from ${scale} to ${graph_period}, to be more consistent.9 #10 # Revision 1.3 2004/12/09 22:12:55 jimmyo11 # Added "graph_period" option, to make "graph_sums" usable.12 #13 # Revision 1.2 2004/11/21 00:16:56 jimmyo14 # Changed a lot of plugins so they use DERIVE instead of COUNTER.15 #16 # Revision 1.1 2004/01/02 18:50:00 jimmyo17 # Renamed occurrances of lrrd -> munin18 #19 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo20 # Import of LRRD CVS tree after renaming to Munin21 #22 # Revision 1.3 2003/11/07 17:43:16 jimmyo23 # Cleanups and log entries24 #25 3 26 4 #%# family=contrib people/ilmari/modularisation-branch/node/node.d/postfix_mailqueue.in
r864 r1012 4 4 # 5 5 # Contributed by Nicolai Langfeldt 6 #7 # $Log$8 # Revision 1.4 2004/05/20 19:02:36 jimmyo9 # Set categories on a bunch of plugins10 #11 # Revision 1.3 2004/05/14 21:16:46 jimmyo12 # "Upped" som plugins from contrib/manual to auto.13 #14 # Revision 1.2 2004/05/09 21:11:15 jimmyo15 # New plugin (pm3users) and a bunch of patches from Jacques Caruso.16 #17 # Revision 1.1 2004/01/02 18:50:00 jimmyo18 # Renamed occurrances of lrrd -> munin19 #20 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo21 # Import of LRRD CVS tree after renaming to Munin22 #23 # Revision 1.2 2003/11/26 14:55:52 jimmyo24 # Added total summaries25 #26 # Revision 1.1 2003/11/26 09:10:28 jimmyo27 # Plugin contribution by Nicolai Langfeldt28 #29 6 # 30 7 #%# family=auto people/ilmari/modularisation-branch/node/node.d/postfix_mailstats.in
r864 r1012 14 14 # logdir - Which logfile to use 15 15 # logfile - What file to read in logdir 16 #17 # $Log$18 # Revision 1.9 2005/01/25 20:38:46 jimmyo19 # Make generic/postfix_mailstats catch more formats (Deb#292110).20 #21 # Revision 1.8 2005/01/25 20:23:36 jimmyo22 # Improved graph_title of generic/postfix_* (Deb#292083).23 #24 # Revision 1.7 2005/01/24 19:43:26 jimmyo25 # Changed default log for generic/postfix_mailstats from syslog to mail.log. Downgraded it from auto to manual.26 #27 # Revision 1.6 2004/12/10 18:51:43 jimmyo28 # linux/apt* has been forced to LANG=C, to get predictable output.29 #30 # Revision 1.5 2004/12/10 10:47:47 jimmyo31 # Change name from ${scale} to ${graph_period}, to be more consistent.32 #33 # Revision 1.4 2004/12/09 22:12:55 jimmyo34 # Added "graph_period" option, to make "graph_sums" usable.35 #36 # Revision 1.3 2004/05/20 19:02:36 jimmyo37 # Set categories on a bunch of plugins38 #39 # Revision 1.2 2004/05/14 21:16:46 jimmyo40 # "Upped" som plugins from contrib/manual to auto.41 #42 # Revision 1.1 2004/01/02 18:50:00 jimmyo43 # Renamed occurrances of lrrd -> munin44 #45 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo46 # Import of LRRD CVS tree after renaming to Munin47 #48 # Revision 1.2 2003/11/26 14:55:52 jimmyo49 # Added total summaries50 #51 # Revision 1.1 2003/11/26 14:45:34 jimmyo52 # New plugins53 #54 # Revision 1.7 2003/11/15 11:10:28 jimmyo55 # Various fixes56 #57 # Revision 1.6 2003/11/07 17:43:16 jimmyo58 # Cleanups and log entries59 #60 #61 16 # 62 17 # Magic markers (optional - used by munin-config and some installation … … 72 27 my $LOGDIR = $ENV{'logdir'} || '/var/log'; 73 28 my $LOGFILE = $ENV{'logfile'} || 'mail.log'; 29 74 30 75 31 if ( $ARGV[0] and $ARGV[0] eq "autoconf" ) … … 142 98 $rejects->{$1} = $2; 143 99 } 100 elsif (/^OTHER:(\d+)$/) 101 { 102 $rejects->{OTHER} = $1; 103 } 144 104 } 145 105 close IN; … … 229 189 $delivered++; 230 190 } 231 elsif ($line =~ /reject: \S+ \S+ \S+ (\S+)/) 232 { 233 $rejects->{$1} ++; 191 elsif ($line =~ /postfix\/smtpd.*reject: \S+ \S+ \S+ (\S+)/) 192 { 193 my $cause = $1; 194 $cause = 'OTHER' unless $1 =/^\d+$/; 195 $rejects->{$cause} ++; 234 196 } 235 197 } people/ilmari/modularisation-branch/node/node.d/postfix_mailvolume.in
r864 r1012 14 14 # logdir - Which logfile to use 15 15 # logfile - What file to read in logdir 16 #17 # $Log$18 # Revision 1.8 2005/01/25 20:26:21 jimmyo19 # Turn on graph_scale for generic/postfix_mailvolume.20 #21 # Revision 1.7 2005/01/25 20:23:37 jimmyo22 # Improved graph_title of generic/postfix_* (Deb#292083).23 #24 # Revision 1.6 2004/12/10 18:51:43 jimmyo25 # linux/apt* has been forced to LANG=C, to get predictable output.26 #27 # Revision 1.5 2004/12/10 10:47:47 jimmyo28 # Change name from ${scale} to ${graph_period}, to be more consistent.29 #30 # Revision 1.4 2004/12/09 22:12:55 jimmyo31 # Added "graph_period" option, to make "graph_sums" usable.32 #33 # Revision 1.3 2004/05/20 19:02:36 jimmyo34 # Set categories on a bunch of plugins35 #36 # Revision 1.2 2004/05/14 21:16:46 jimmyo37 # "Upped" som plugins from contrib/manual to auto.38 #39 # Revision 1.1 2004/01/02 18:50:00 jimmyo40 # Renamed occurrances of lrrd -> munin41 #42 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo43 # Import of LRRD CVS tree after renaming to Munin44 #45 # Revision 1.1 2003/11/26 14:45:34 jimmyo46 # New plugins47 #48 # Revision 1.7 2003/11/15 11:10:28 jimmyo49 # Various fixes50 #51 # Revision 1.6 2003/11/07 17:43:16 jimmyo52 # Cleanups and log entries53 #54 #55 16 # 56 17 # Magic markers (optional - used by munin-config and some installation … … 70 31 { 71 32 my $logfile; 72 if (-d $LOGDIR) 33 `which postconf >/dev/null 2>/dev/null`; 34 if (!$?) 73 35 { 74 36 $logfile = "$LOGDIR/$LOGFILE"; … … 93 55 else 94 56 { 95 print "no (could not find logdir)\n";57 print "no (postfix not found)\n"; 96 58 } 97 59 people/ilmari/modularisation-branch/node/node.d/ps_.in
r864 r1012 17 17 # 18 18 # regex - regex to use for filtering pgrep/ps output 19 #20 # $Log$21 # Revision 1.4 2004/05/20 13:57:12 jimmyo22 # Set categories to some of the plugins.23 #24 # Revision 1.3 2004/01/29 19:39:00 jimmyo25 # Generic plugins now use printf instead of echo -n, as this is more portable (SF#885564)26 #27 # Revision 1.2 2004/01/29 18:43:20 jimmyo28 # Changed wildcard plugin ps_ so it can use env.regex in plugin-conf.d/ (SF#882131)29 #30 # Revision 1.1 2004/01/02 18:50:00 jimmyo31 # Renamed occurrances of lrrd -> munin32 #33 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo34 # Import of LRRD CVS tree after renaming to Munin35 #36 # Revision 1.2 2003/11/07 17:43:16 jimmyo37 # Cleanups and log entries38 #39 #40 19 # 41 20 # Magic markers (optional): people/ilmari/modularisation-branch/node/node.d/psu_.in
r864 r1012 13 13 # autoconf (optional - used by munin-config) 14 14 # suggest (optional - used by munin-config) 15 #16 # $Log$17 # Revision 1.4 2004/09/10 23:11:13 jimmyo18 # Degraded generic/psu_ from auto to manual.19 #20 # Revision 1.3 2004/05/20 13:57:12 jimmyo21 # Set categories to some of the plugins.22 #23 # Revision 1.2 2004/01/29 19:39:00 jimmyo24 # Generic plugins now use printf instead of echo -n, as this is more portable (SF#885564)25 #26 # Revision 1.1 2004/01/02 18:50:00 jimmyo27 # Renamed occurrances of lrrd -> munin28 #29 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo30 # Import of LRRD CVS tree after renaming to Munin31 #32 # Revision 1.2 2003/11/07 17:43:16 jimmyo33 # Cleanups and log entries34 #35 #36 15 # 37 16 # Magic markers (optional): people/ilmari/modularisation-branch/node/node.d/samba.in
r864 r1012 3 3 # Plugin to monitor the number of open files in the system. 4 4 # 5 # $Log$ 6 # Revision 1.8 2005/01/29 20:14:21 jimmyo 7 # Made generic/samba more portable (fixes by Nicolas Stransky). 8 # 9 # Revision 1.7 2005/01/05 15:18:13 jimmyo 10 # Made generic/samba more portable (fixes by Nicolas Stransky). 11 # 12 # Revision 1.6 2005/01/04 18:25:33 jimmyo 13 # Made generic/samba more portable. 14 # 15 # Revision 1.5 2005/01/03 22:22:58 jimmyo 16 # Plugins: Made generic/samba more portable. 17 # 18 # Revision 1.4 2004/12/22 21:21:18 jimmyo 19 # Cleaned up generic/samba a bit (SF#1087961). 20 # 21 # Revision 1.3 2004/05/20 19:02:36 jimmyo 22 # Set categories on a bunch of plugins 23 # 24 # Revision 1.2 2004/01/29 19:39:00 jimmyo 25 # Generic plugins now use printf instead of echo -n, as this is more portable (SF#885564) 26 # 27 # Revision 1.1 2004/01/02 18:50:00 jimmyo 28 # Renamed occurrances of lrrd -> munin 29 # 30 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo 31 # Import of LRRD CVS tree after renaming to Munin 32 # 33 # Revision 1.1 2003/11/24 10:01:53 jimmyo 34 # New plugin by Finn-Arne Johansen 35 # 5 # client-conf.d/-options: 6 # 7 # smbstatus -- path to smbstatus executable 8 # ignoreipcshare -- ignore IPC$ whan counting shares 9 # any string will do 36 10 # 37 11 # Parameters: … … 46 20 #%# capabilities=autoconf 47 21 48 22 SMBSTATUS=${smbstatus:-`which smbstatus`} 23 SMBSTATUS=${SMBSTATUS:-/usr/bin/smbstatus} 49 24 50 25 if [ "$1" = "autoconf" ]; then 51 if [ -x /usr/bin/smbstatus]; then26 if [ -x $SMBSTATUS ]; then 52 27 echo yes 53 28 exit 0 54 29 else 55 echo no 30 echo no '(smbstatus not found)' 56 31 exit 1 57 32 fi … … 72 47 fi 73 48 74 printf "proc.value " 75 smbstatus -p | awk '$1 ~ /[0123456789]+/' | wc -l 76 printf "lock.value " 77 smbstatus -L | awk '$1 ~ /[0123456789]+/' | wc -l 78 printf "share.value " 79 smbstatus -S | awk '$2 ~ /[0123456789]+/ && $1 !~ /^IPC\$/ ' | wc -l 49 $SMBSTATUS -p 2>/dev/null | awk 'BEGIN {lines=0} $1 ~ /^[0-9]+/ {lines++} END {print "proc.value " lines}' 50 $SMBSTATUS -L 2>/dev/null | awk 'BEGIN {lines=0} $1 ~ /^[0-9]+/ {lines++} END {print "lock.value " lines}' 51 if [ -n "$ignoreipcshare" ]; then 52 IGNORE='$1=="IPC$" {next}' 53 fi 54 $SMBSTATUS -S 2>/dev/null | awk ' 55 BEGIN {lines=0;state=0} 56 $1=="Service"&&state==0 {state=1;next} 57 /^--*$/&&state==1 {state=2;next} 58 state<2 {next} 59 /^$/ {next} 60 '"$IGNORE"' 61 {lines++} 62 END {print "share.value " lines}' people/ilmari/modularisation-branch/node/node.d/sendmail_mailqueue.in
r864 r1012 14 14 # mspqueue - MSQ queue directory 15 15 # mtaqueue - MTA queue directory 16 #17 # $Log$18 # Revision 1.6 2005/02/16 19:06:11 jimmyo19 # generic/sendmail_mailqueue handles bigger queues (fix by Mickey Everts).20 #21 # Revision 1.5 2004/11/20 19:31:59 jimmyo22 # Fixed bug in generic/sendmail_mailqueue, when queue is empty.23 #24 # Revision 1.4 2004/05/20 19:02:36 jimmyo25 # Set categories on a bunch of plugins26 #27 # Revision 1.3 2004/05/14 21:16:46 jimmyo28 # "Upped" som plugins from contrib/manual to auto.29 #30 # Revision 1.2 2004/02/18 18:40:02 jimmyo31 # Added Log:32 16 # 33 17 #%# family=auto people/ilmari/modularisation-branch/node/node.d/sendmail_mailstats.in
r864 r1012 13 13 # config (required) 14 14 # autoconf (optional) 15 #16 # $Log$17 # Revision 1.6 2005/01/24 19:16:32 jimmyo18 # Bugfix in generic/sendmail_* autoconf.19 #20 # Revision 1.5 2005/01/03 14:17:30 jimmyo21 # Plugins generic/sendmail_mail{stats,traffic} updated.22 #23 15 # 24 16 # Magic markers (used by munin-node-configure) people/ilmari/modularisation-branch/node/node.d/sendmail_mailtraffic.in
r864 r1012 13 13 # config (required) 14 14 # autoconf (optional) 15 #16 # $Log$17 # Revision 1.7 2005/01/24 19:16:33 jimmyo18 # Bugfix in generic/sendmail_* autoconf.19 #20 # Revision 1.6 2005/01/03 14:17:30 jimmyo21 # Plugins generic/sendmail_mail{stats,traffic} updated.22 #23 15 # 24 16 # Magic markers (used by munin-node-configure) people/ilmari/modularisation-branch/node/node.d/smart_.in
r864 r1012 18 18 # Parameters 19 19 # smartpath - Specify path to smartctl program (Default: /usr/sbin/smartctl) 20 # smartargs - Override '-a' argument passed to smartctl with '-A '+smartargs20 # smartargs - Override '-a' argument passed to smartctl with '-A -i'+smartargs 21 21 # 22 22 # Parameters can be specified on a per-drive basis, eg: … … 24 24 # user root 25 25 # group disk 26 # env.smartargs -H - i -c -l error -l selftest -l selective -d ata26 # env.smartargs -H -c -l error -l selftest -l selective -d ata 27 27 # env.smartpath /usr/local/sbin/smartctl 28 28 # 29 # [smart_ sda]29 # [smart_twa0-1] 30 30 # user root 31 31 # group disk 32 # env.smartargs -H -i -l error -d 3ware,2 33 # 32 # env.smartargs -H -l error -d 3ware,1 33 # 34 # [smart_twa0-2] 35 # user root 36 # group disk 37 # env.smartargs -H -l error -d 3ware,2 34 38 # 35 39 # Author: Nicolas Stransky <Nico@neo-lan.net> … … 46 50 # v1.7 29/11/2004 - Add suggest capabilities for NetBSD, OpenBSD, FreeBSD and SunOS. 47 51 # - Allow to override completely the smartctl arguments with "smartargs" 48 # v1.8 16/02/2005 - Exit status field now only triggers warnings, not criitcals. 49 # 50 # Copyright (c) 2004 Nicolas Stransky. 52 # v1.8 16/02/2005 - Exit status field now only triggers warnings, not criticals. 53 # v1.9 07/07/2005 - Allow to query several drives on the same 3ware card. 54 # - Correct a bug when '-i' was not listed in smartargs 55 # - Don't fail if no value was obtained for hard drive model 56 # v1.10 19/08/2005 - smartctl_exit_code is now a numerical value 57 # 58 # Copyright (c) 2004,2005 Nicolas Stransky. 51 59 # 52 60 # Permission to use, copy, and modify this software with or without fee … … 66 74 #%# family=auto 67 75 68 69 76 import os, sys, string, pickle 70 77 from math import log … … 90 97 verboselog('Reading S.M.A.R.T values') 91 98 os.putenv('LC_ALL','C') 92 smart_output=os.popen(os.getenv('smartpath','/usr/sbin/smartctl')+' '+os.getenv('smartargs','-a')+' -A /dev/'+hard_drive)99 smart_output=os.popen(os.getenv('smartpath','/usr/sbin/smartctl')+' '+os.getenv('smartargs','-a')+' -A -i /dev/'+hard_drive) 93 100 read_values=0 94 101 # For python < 2.2 compliance, switch comments on next 2 lines. … … 101 108 try: model_list.remove('Version') 102 109 except : None 103 model= ' ('+string.join(model_list)+')'110 model=string.join(model_list) 104 111 if read_values==1 : 105 112 smart_attribute=string.split(l) 106 113 smart_values[string.replace(smart_attribute[1],'-','_')]={"value":smart_attribute[3],"threshold":smart_attribute[5]} 107 114 elif l[:18]=="ID# ATTRIBUTE_NAME" : 115 # Start reading the Attributes block 108 116 read_values=1 109 117 exit_status=smart_output.close() 110 118 if exit_status!=None : 111 # smartctl exit code is a bitmask 112 num_exit_status=int( log(exit_status/256,2))119 # smartctl exit code is a bitmask, check man page. 120 num_exit_status=int(exit_status/256) 113 121 if num_exit_status<=2 : 114 verboselog('smartctl cannot access S.M.A.R.T values on drive '+hard_drive+'. Command exited with Bit'+str(num_exit_status)+' ('+str(exit_status/256)+')')122 verboselog('smartctl cannot access S.M.A.R.T values on drive '+hard_drive+'. Command exited with code '+str(num_exit_status)+' ('+str(exit_status/256)+')') 115 123 sys.exit(1) 116 124 else : 117 verboselog('smartctl exited with Bit'+str(num_exit_status)+'. '+hard_drive+' may be FAILING RIGHT NOW !')125 verboselog('smartctl exited with code '+str(num_exit_status)+'. '+hard_drive+' may be FAILING RIGHT NOW !') 118 126 except : 119 127 verboselog('Cannot access S.M.A.R.T values ! Check user rights or propper smartmontools installation. Quitting...') … … 123 131 sys.exit(1) 124 132 smart_values["smartctl_exit_status"]={"value":str(num_exit_status),"threshold":"1"} 125 smart_values["model"]=model 133 try: smart_values["model"]=model 134 # For some reason we may have no value for "model" 135 except : smart_values["model"]="unknown" 126 136 127 137 def open_state_file(mode) : 128 return open(statefiledir+'/smart-'+ hard_drive+'.state',mode)138 return open(statefiledir+'/smart-'+string.join(hard_drive,"-")+'.state',mode) 129 139 130 140 def update_state_file() : … … 142 152 143 153 def print_config(hard_drive,smart_values) : 144 if os.path.exists(statefiledir+'/smart-'+ hard_drive+'.state'):145 try : 146 verboselog('Try to recall previous S.M.A.R.T attributes for '+ hard_drive)154 if os.path.exists(statefiledir+'/smart-'+string.join(hard_drive,"-")+'.state'): 155 try : 156 verboselog('Try to recall previous S.M.A.R.T attributes for '+string.join(hard_drive,",")) 147 157 smart_values_state=pickle.load(open_state_file("r")) 148 158 except : … … 151 161 else : 152 162 verboselog('No state file, reading S.M.A.R.T values for the first time') 153 read_values(hard_drive )163 read_values(hard_drive[0]) 154 164 pickle.dump(smart_values,open_state_file("w")) 155 165 smart_values_state=smart_values 156 166 157 167 verboselog('Printing configuration') 158 print('graph_title S.M.A.R.T values for drive '+ hard_drive)168 print('graph_title S.M.A.R.T values for drive '+string.join(hard_drive,",")) 159 169 print('graph_vlabel Attribute S.M.A.R.T value') 160 170 print('graph_args --base 1000 --lower-limit 0') 161 171 print('graph_category disk') 162 print('graph_info This graph shows the value of all S.M.A.R.T attributes of drive '+ hard_drive+smart_values_state['model']+'. smartctl_exit_status is the return value of smartctl. A non-zero return value indicates an error, a potential error, or a fault on the drive.')172 print('graph_info This graph shows the value of all S.M.A.R.T attributes of drive '+string.join(hard_drive,",")+' ('+smart_values_state['model']+'). smartctl_exit_status is the return value of smartctl. A non-zero return value indicates an error, a potential error, or a fault on the drive.') 163 173 attributes=smart_values_state.keys() 164 174 attributes.sort() … … 167 177 print(key+'.label '+key) 168 178 print(key+'.draw LINE2') 169 # Following line can be commented out . Only useful for warning reports about S.M.A.R.T values179 # Following line can be commented out if necessary. Only useful for warning reports about S.M.A.R.T values 170 180 print(key+'.critical '+smart_values_state[key]["threshold"]+':') 171 181 # Let's place smartctl_exit_status at the end 172 182 print('smartctl_exit_status.label smartctl_exit_status') 173 183 print('smartctl_exit_status.draw LINE2') 174 # Following line can be commented out . Only useful for warning reports about S.M.A.R.T values184 # Following line can be commented out if necessary. Only useful for warning reports about S.M.A.R.T values 175 185 print('smartctl_exit_status.warning '+smart_values_state['smartctl_exit_status']["threshold"]) 176 186 177 187 def get_hard_drive_name() : 178 188 try : 179 hard_drive= plugin_name[string.rindex(plugin_name,'_')+1:]189 hard_drive=[plugin_name[string.rindex(plugin_name,'_')+1:]] 180 190 if os.uname()[0]=="SunOS" : 181 191 try : 182 hard_drive_path=hard_drive183 if hard_drive[0 :4]=="rdsk":184 hard_drive =os.path.join("rdsk",hard_drive_path[4:])185 elif hard_drive[0 :3]=="rmt":186 hard_drive =os.path.join("rmt",hard_drive_path[3:])192 # if hard_drive name starts with "rdsk" or "rmt", try to reconstruct the path 193 if hard_drive[0][0:4]=="rdsk": 194 hard_drive[0]=os.path.join("rdsk",hard_drive[0][4:]) 195 elif hard_drive[0][0:3]=="rmt": 196 hard_drive[0]=os.path.join("rmt",hard_drive[0][3:]) 187 197 except : 188 198 verboselog('Failed to find SunOS hard_drive') 189 if not os.path.exists('/dev/'+hard_drive): 190 verboselog('/dev/'+hard_drive+' not found !') 199 # For 3ware cards, we have to set multiple plugins for the same hard drive name. 200 # Let's see if we find a '-' in the drive name. 201 if hard_drive[0].find('-')!=-1: 202 # Put the drive name and it's number in a list 203 hard_drive=[hard_drive[0][:string.rindex(hard_drive[0],'-')],hard_drive[0][string.rindex(hard_drive[0],'-')+1:]] 204 # Chech that the drive exists in /dev 205 if not os.path.exists('/dev/'+hard_drive[0]): 206 verboselog('/dev/'+hard_drive[0]+' not found !') 191 207 sys.exit(1) 192 208 return(hard_drive) … … 196 212 197 213 def find_smart_drives() : 214 # Try to autodetect Linux, *BSD, SunOS drives. Don't try to autodetect drives on a 3Ware card. 198 215 drives=[] 199 216 if os.uname()[0]=="Linux" : … … 202 219 try : 203 220 for drive in os.listdir('/sys/block/') : 221 if drive[:2] in ['md','fd','lo','ra','dm'] : continue # Ignore MD, Floppy, loop , RAM and LVM devices. 204 222 try : 205 223 read_values(drive) … … 317 335 # No argument given, doing the real job: 318 336 hard_drive=get_hard_drive_name() 319 read_values(hard_drive )337 read_values(hard_drive[0]) 320 338 update_state_file() 321 339 print_plugin_values() people/ilmari/modularisation-branch/node/node.d/snmp__cpuload.in
r865 r1012 16 16 # along with this program; if not, write to the Free Software 17 17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 #19 #20 # $Log$21 # Revision 1.1 2005/02/17 19:42:46 jimmyo22 # Added plugin generic/snmp__cpuload.23 #24 # Revision 1.7 2004/11/16 20:08:26 jimmyo25 # License cleanups.26 #27 # Revision 1.6 2004/09/08 15:25:33 ilmari28 # Use @@PERL@@ in all perl shebang lines.29 #30 # Revision 1.5 2004/09/07 13:19:22 ilmari31 # SNMP plugins now honour the "host" environment variable if they can't deduce the hostname from zsh.32 #33 # Revision 1.4 2004/09/05 12:00:18 jimmyo34 # Set family and capabilities.35 #36 # Revision 1.3 2004/09/04 21:58:28 jimmyo37 # Set category and info fields.38 #39 # Revision 1.2 2004/09/03 22:56:51 jimmyo40 # Added support for SNMP probing.41 #42 # Revision 1.1 2004/05/01 10:50:53 jimmyo43 # New SNMP plugins users and load.44 #45 # Revision 1.1 2004/04/30 20:13:53 jimmyo46 # New SNMP plugin for number of procs.47 #48 # Revision 1.1 2004/04/29 22:29:57 jimmyo49 # New SNMP plugin for disk usage.50 #51 # Revision 1.3 2004/02/22 20:17:58 jimmyo52 # Typo fix53 #54 # Revision 1.2 2004/02/18 21:54:56 jimmyo55 # Did a bit of work on the snmp-thingie.56 #57 # Revision 1.1 2004/01/02 18:50:00 jimmyo58 # Renamed occurrances of lrrd -> munin59 #60 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo61 # Import of LRRD CVS tree after renaming to Munin62 #63 # Revision 1.1 2003/12/19 20:53:45 jimmyo64 # Created by jo65 18 # 66 19 # … … 89 42 if (defined $ARGV[0] and $ARGV[0] eq "config") 90 43 { 91 print "host_name ", $session->hostname(), "\n"; 44 print "host_name ", $session->hostname(), "\n" 45 unless $session->hostname eq 'localhost'; 92 46 print "graph_title CPU utilisation 93 47 graph_args --base 1000 -l 0 -u 100 people/ilmari/modularisation-branch/node/node.d/snmp__df.in
r903 r1012 17 17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 18 # 19 #20 # $Log$21 # Revision 1.10 2004/11/16 20:08:26 jimmyo22 # License cleanups.23 #24 # Revision 1.9 2004/09/08 15:25:33 ilmari25 # Use @@PERL@@ in all perl shebang lines.26 #27 # Revision 1.8 2004/09/07 13:19:22 ilmari28 # SNMP plugins now honour the "host" environment variable if they can't deduce the hostname from zsh.29 #30 # Revision 1.7 2004/09/07 12:58:41 ilmari31 # SNMP plugin "df" properly strips the label and serial number fromWindows drive labels.32 #33 # Revision 1.6 2004/09/05 12:00:18 jimmyo34 # Set family and capabilities.35 #36 # Revision 1.5 2004/09/04 21:58:28 jimmyo37 # Set category and info fields.38 #39 # Revision 1.4 2004/09/04 21:33:12 jimmyo40 # Handle strange characters better.41 #42 # Revision 1.3 2004/09/04 21:08:16 jimmyo43 # SNMP df plugin now talks Windowese.44 #45 # Revision 1.2 2004/09/03 22:56:51 jimmyo46 # Added support for SNMP probing.47 #48 # Revision 1.1 2004/04/29 22:29:57 jimmyo49 # New SNMP plugin for disk usage.50 #51 # Revision 1.3 2004/02/22 20:17:58 jimmyo52 # Typo fix53 #54 # Revision 1.2 2004/02/18 21:54:56 jimmyo55 # Did a bit of work on the snmp-thingie.56 #57 # Revision 1.1 2004/01/02 18:50:00 jimmyo58 # Renamed occurrances of lrrd -> munin59 #60 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo61 # Import of LRRD CVS tree after renaming to Munin62 #63 # Revision 1.1 2003/12/19 20:53:45 jimmyo64 # Created by jo65 19 # 66 20 #%# family=snmpauto … … 169 123 if (defined $ARGV[0] and $ARGV[0] eq "config") 170 124 { 171 print "host_name ", $session->hostname(), "\n"; 125 print "host_name ", $session->hostname(), "\n" 126 unless $session->hostname eq 'localhost'; 172 127 print "graph_title Filesystem usage (in %)\n"; 173 128 print "graph_args --upper-limit 100 -l 0\n"; people/ilmari/modularisation-branch/node/node.d/snmp__fc_if_.in
r903 r1012 16 16 # along with this program; if not, write to the Free Software 17 17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 #19 #20 # $Log$21 # Revision 1.11 2004/12/10 18:51:43 jimmyo22 # linux/apt* has been forced to LANG=C, to get predictable output.23 #24 # Revision 1.10 2004/12/10 10:47:47 jimmyo25 # Change name from ${scale} to ${graph_period}, to be more consistent.26 #27 # Revision 1.9 2004/12/09 22:12:55 jimmyo28 # Added "graph_period" option, to make "graph_sums" usable.29 #30 # Revision 1.8 2004/11/21 00:16:56 jimmyo31 # Changed a lot of plugins so they use DERIVE instead of COUNTER.32 #33 # Revision 1.7 2004/11/16 20:08:26 jimmyo34 # License cleanups.35 #36 # Revision 1.6 2004/11/12 20:28:03 ilmari37 # No debugging info by default38 #39 # Revision 1.5 2004/09/08 15:25:33 ilmari40 # Use @@PERL@@ in all perl shebang lines.41 #42 # Revision 1.4 2004/09/07 13:19:22 ilmari43 # SNMP plugins now honour the "host" environment variable if they can't deduce the hostname from zsh.44 #45 # Revision 1.3 2004/09/05 12:00:18 jimmyo46 # Set family and capabilities.47 #48 # Revision 1.2 2004/09/04 21:58:28 jimmyo49 # Set category and info fields.50 #51 # Revision 1.1 2004/04/30 22:22:07 jimmyo52 # Added to SNMP based fibre-channel plugins: fc_if and fc_if_err.53 #54 # Revision 1.4 2004/04/30 16:58:14 jimmyo55 # Added max.56 #57 # Revision 1.3 2004/02/22 20:17:58 jimmyo58 # Typo fix59 #60 # Revision 1.2 2004/02/18 21:54:56 jimmyo61 # Did a bit of work on the snmp-thingie.62 #63 # Revision 1.1 2004/01/02 18:50:00 jimmyo64 # Renamed occurrances of lrrd -> munin65 #66 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo67 # Import of LRRD CVS tree after renaming to Munin68 #69 # Revision 1.1 2003/12/19 20:53:45 jimmyo70 # Created by jo71 18 # 72 19 # … … 108 55 if ($ARGV[0] and $ARGV[0] eq "config") 109 56 { 110 print "host_name ", $session->hostname(), "\n"; 57 print "host_name ", $session->hostname(), "\n" 58 unless $session->hostname eq 'localhost'; 111 59 if (!defined ($response = $session->get_request($fcEntryDescr))) 112 60 { people/ilmari/modularisation-branch/node/node.d/snmp__fc_if_err_.in
r903 r1012 16 16 # along with this program; if not, write to the Free Software 17 17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 #19 #20 # $Log$21 # Revision 1.11 2004/12/10 18:51:43 jimmyo22 # linux/apt* has been forced to LANG=C, to get predictable output.23 #24 # Revision 1.10 2004/12/10 10:47:47 jimmyo25 # Change name from ${scale} to ${graph_period}, to be more consistent.26 #27 # Revision 1.9 2004/12/09 22:12:55 jimmyo28 # Added "graph_period" option, to make "graph_sums" usable.29 #30 # Revision 1.8 2004/11/21 00:16:56 jimmyo31 # Changed a lot of plugins so they use DERIVE instead of COUNTER.32 #33 # Revision 1.7 2004/11/16 20:08:26 jimmyo34 # License cleanups.35 #36 # Revision 1.6 2004/11/12 20:28:03 ilmari37 # No debugging info by default38 #39 # Revision 1.5 2004/09/08 15:25:33 ilmari40 # Use @@PERL@@ in all perl shebang lines.41 #42 # Revision 1.4 2004/09/07 13:19:22 ilmari43 # SNMP plugins now honour the "host" environment variable if they can't deduce the hostname from zsh.44 #45 # Revision 1.3 2004/09/05 12:00:18 jimmyo46 # Set family and capabilities.47 #48 # Revision 1.2 2004/09/04 21:58:28 jimmyo49 # Set category and info fields.50 #51 # Revision 1.1 2004/04/30 22:22:07 jimmyo52 # Added to SNMP based fibre-channel plugins: fc_if and fc_if_err.53 #54 # Revision 1.4 2004/04/30 16:58:14 jimmyo55 # Added max.56 #57 # Revision 1.3 2004/02/22 20:17:58 jimmyo58 # Typo fix59 #60 # Revision 1.2 2004/02/18 21:54:56 jimmyo61 # Did a bit of work on the snmp-thingie.62 #63 # Revision 1.1 2004/01/02 18:50:00 jimmyo64 # Renamed occurrances of lrrd -> munin65 #66 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo67 # Import of LRRD CVS tree after renaming to Munin68 #69 # Revision 1.1 2003/12/19 20:53:45 jimmyo70 # Created by jo71 18 # 72 19 # … … 107 54 if ($ARGV[0] and $ARGV[0] eq "config") 108 55 { 109 print "host_name ", $session->hostname(), "\n"; 56 print "host_name ", $session->hostname(), "\n" 57 unless $session->hostname eq 'localhost'; 110 58 if (!defined ($response = $session->get_request($fcEntryDescr))) 111 59 { people/ilmari/modularisation-branch/node/node.d/snmp__if_.in
r898 r1012 16 16 # along with this program; if not, write to the Free Software 17 17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 #19 #20 # $Log$21 # Revision 1.18 2004/12/10 18:51:43 jimmyo22 # linux/apt* has been forced to LANG=C, to get predictable output.23 #24 # Revision 1.17 2004/12/10 10:47:47 jimmyo25 # Change name from ${scale} to ${graph_period}, to be more consistent.26 #27 # Revision 1.16 2004/12/09 22:12:55 jimmyo28 # Added "graph_period" option, to make "graph_sums" usable.29 #30 # Revision 1.15 2004/11/21 00:16:56 jimmyo31 # Changed a lot of plugins so they use DERIVE instead of COUNTER.32 #33 # Revision 1.14 2004/11/20 22:37:21 jimmyo34 # Strip strange characters.35 #36 # Revision 1.13 2004/11/20 22:10:49 jimmyo37 # Clean up output of plugin a bit.38 #39 # Revision 1.12 2004/11/20 22:06:22 jimmyo40 # Clean up output of plugin a bit.41 #42 # Revision 1.11 2004/11/16 20:08:26 jimmyo43 # License cleanups.44 #45 # Revision 1.10 2004/11/12 20:28:03 ilmari46 # No debugging info by default47 #48 # Revision 1.9 2004/09/08 15:25:33 ilmari49 # Use @@PERL@@ in all perl shebang lines.50 #51 # Revision 1.8 2004/09/07 13:19:22 ilmari52 # SNMP plugins now honour the "host" environment variable if they can't deduce the hostname from zsh.53 #54 # Revision 1.7 2004/09/05 12:00:18 jimmyo55 # Set family and capabilities.56 #57 # Revision 1.6 2004/09/04 21:58:28 jimmyo58 # Set category and info fields.59 #60 # Revision 1.5 2004/09/04 19:12:14 jimmyo61 # Accept ppp interfaces as well as ethernet interfaces.62 #63 # Revision 1.4 2004/04/30 16:58:14 jimmyo64 # Added max.65 #66 # Revision 1.3 2004/02/22 20:17:58 jimmyo67 # Typo fix68 #69 # Revision 1.2 2004/02/18 21:54:56 jimmyo70 # Did a bit of work on the snmp-thingie.71 #72 # Revision 1.1 2004/01/02 18:50:00 jimmyo73 # Renamed occurrances of lrrd -> munin74 #75 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo76 # Import of LRRD CVS tree after renaming to Munin77 #78 # Revision 1.1 2003/12/19 20:53:45 jimmyo79 # Created by jo80 18 # 81 19 # … … 126 64 if ($ARGV[0] and $ARGV[0] eq "config") 127 65 { 128 print 'host_name ', $session->hostname(), "\n"; 66 print 'host_name ', $session->hostname(), "\n" 67 unless $session->hostname eq 'localhost'; 129 68 my $name = $info->{'descr'}; 130 69 $name =~ s/[^\w\s]//g; people/ilmari/modularisation-branch/node/node.d/snmp__if_err_.in
r898 r1012 16 16 # along with this program; if not, write to the Free Software 17 17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 #19 #20 # $Log$21 # Revision 1.16 2004/12/10 18:51:43 jimmyo22 # linux/apt* has been forced to LANG=C, to get predictable output.23 #24 # Revision 1.15 2004/12/10 10:47:47 jimmyo25 # Change name from ${scale} to ${graph_period}, to be more consistent.26 #27 # Revision 1.14 2004/12/09 22:12:55 jimmyo28 # Added "graph_period" option, to make "graph_sums" usable.29 #30 # Revision 1.13 2004/11/21 00:16:56 jimmyo31 # Changed a lot of plugins so they use DERIVE instead of COUNTER.32 #33 # Revision 1.12 2004/11/20 22:37:21 jimmyo34 # Strip strange characters.35 #36 # Revision 1.11 2004/11/20 22:10:49 jimmyo37 # Clean up output of plugin a bit.38 #39 # Revision 1.10 2004/11/20 22:06:22 jimmyo40 # Clean up output of plugin a bit.41 #42 # Revision 1.9 2004/11/16 20:08:26 jimmyo43 # License cleanups.44 #45 # Revision 1.8 2004/11/12 20:28:03 ilmari46 # No debugging info by default47 #48 # Revision 1.7 2004/09/08 15:25:33 ilmari49 # Use @@PERL@@ in all perl shebang lines.50 #51 # Revision 1.6 2004/09/07 13:19:22 ilmari52 # SNMP plugins now honour the "host" environment variable if they can't deduce the hostname from zsh.53 #54 # Revision 1.5 2004/09/05 12:00:18 jimmyo55 # Set family and capabilities.56 #57 # Revision 1.4 2004/09/04 21:58:28 jimmyo58 # Set category and info fields.59 #60 # Revision 1.3 2004/09/04 19:12:14 jimmyo61 # Accept ppp interfaces as well as ethernet interfaces.62 #63 # Revision 1.2 2004/04/30 22:20:22 jimmyo64 # It should now even work. :-)65 #66 # Revision 1.1 2004/04/30 16:59:45 jimmyo67 # New SNMP plugin: if_err68 #69 # Revision 1.3 2004/02/22 20:17:58 jimmyo70 # Typo fix71 #72 # Revision 1.2 2004/02/18 21:54:56 jimmyo73 # Did a bit of work on the snmp-thingie.74 #75 # Revision 1.1 2004/01/02 18:50:00 jimmyo76 # Renamed occurrances of lrrd -> munin77 #78 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo79 # Import of LRRD CVS tree after renaming to Munin80 #81 # Revision 1.1 2003/12/19 20:53:45 jimmyo82 # Created by jo83 18 # 84 19 # … … 129 64 if ($ARGV[0] and $ARGV[0] eq "config") 130 65 { 131 print 'host_name ', $session->hostname(), "\n"; 66 print 'host_name ', $session->hostname(), "\n" 67 unless $session->hostname eq 'localhost'; 132 68 my $name = $info->{'descr'}; 133 69 $name =~ s/[^\w\s]//g; people/ilmari/modularisation-branch/node/node.d/snmp__load.in
r865 r1012 16 16 # along with this program; if not, write to the Free Software 17 17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 #19 #20 # $Log$21 # Revision 1.7 2004/11/16 20:08:26 jimmyo22 # License cleanups.23 #24 # Revision 1.6 2004/09/08 15:25:33 ilmari25 # Use @@PERL@@ in all perl shebang lines.26 #27 # Revision 1.5 2004/09/07 13:19:22 ilmari28 # SNMP plugins now honour the "host" environment variable if they can't deduce the hostname from zsh.29 #30 # Revision 1.4 2004/09/05 12:00:18 jimmyo31 # Set family and capabilities.32 #33 # Revision 1.3 2004/09/04 21:58:28 jimmyo34 # Set category and info fields.35 #36 # Revision 1.2 2004/09/03 22:56:51 jimmyo37 # Added support for SNMP probing.38 #39 # Revision 1.1 2004/05/01 10:50:53 jimmyo40 # New SNMP plugins users and load.41 #42 # Revision 1.1 2004/04/30 20:13:53 jimmyo43 # New SNMP plugin for number of procs.44 #45 # Revision 1.1 2004/04/29 22:29:57 jimmyo46 # New SNMP plugin for disk usage.47 #48 # Revision 1.3 2004/02/22 20:17:58 jimmyo49 # Typo fix50 #51 # Revision 1.2 2004/02/18 21:54:56 jimmyo52 # Did a bit of work on the snmp-thingie.53 #54 # Revision 1.1 2004/01/02 18:50:00 jimmyo55 # Renamed occurrances of lrrd -> munin56 #57 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo58 # Import of LRRD CVS tree after renaming to Munin59 #60 # Revision 1.1 2003/12/19 20:53:45 jimmyo61 # Created by jo62 18 # 63 19 # … … 86 42 if (defined $ARGV[0] and $ARGV[0] eq "config") 87 43 { 88 print 'host_name ', $session->hostname(), "\n"; 44 print 'host_name ', $session->hostname(), "\n" 45 unless $session->hostname eq 'localhost'; 89 46 print "graph_title Load average 90 47 graph_args --base 1000 -l 0 people/ilmari/modularisation-branch/node/node.d/snmp__processes.in
r865 r1012 16 16 # along with this program; if not, write to the Free Software 17 17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 #19 #20 # $Log$21 # Revision 1.7 2004/11/16 20:08:26 jimmyo22 # License cleanups.23 #24 # Revision 1.6 2004/09/08 15:25:33 ilmari25 # Use @@PERL@@ in all perl shebang lines.26 #27 # Revision 1.5 2004/09/07 13:19:22 ilmari28 # SNMP plugins now honour the "host" environment variable if they can't deduce the hostname from zsh.29 #30 # Revision 1.4 2004/09/05 12:00:18 jimmyo31 # Set family and capabilities.32 #33 # Revision 1.3 2004/09/04 21:58:28 jimmyo34 # Set category and info fields.35 #36 # Revision 1.2 2004/09/03 22:56:51 jimmyo37 # Added support for SNMP probing.38 #39 # Revision 1.1 2004/04/30 20:13:53 jimmyo40 # New SNMP plugin for number of procs.41 #42 # Revision 1.1 2004/04/29 22:29:57 jimmyo43 # New SNMP plugin for disk usage.44 #45 # Revision 1.3 2004/02/22 20:17:58 jimmyo46 # Typo fix47 #48 # Revision 1.2 2004/02/18 21:54:56 jimmyo49 # Did a bit of work on the snmp-thingie.50 #51 # Revision 1.1 2004/01/02 18:50:00 jimmyo52 # Renamed occurrances of lrrd -> munin53 #54 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo55 # Import of LRRD CVS tree after renaming to Munin56 #57 # Revision 1.1 2003/12/19 20:53:45 jimmyo58 # Created by jo59 18 # 60 19 # … … 83 42 if (defined $ARGV[0] and $ARGV[0] eq "config") 84 43 { 85 print "host_name ", $session->hostname(), "\n"; 44 print "host_name ", $session->hostname(), "\n" 45 unless $session->hostname eq 'localhost'; 86 46 print "graph_title Number of Processes 87 47 graph_args --base 1000 -l 0 people/ilmari/modularisation-branch/node/node.d/snmp__sensors_fsc_bx_fan.in
r864 r1012 20 20 # Plugin to fetch fan data from the SNMP agent on the management blade 21 21 # on Fujitsu Simens BX series blade servers 22 #23 # $Log$24 # Revision 1.4 2004/11/16 20:08:26 jimmyo25 # License cleanups.26 #27 # Revision 1.3 2004/11/12 20:28:03 ilmari28 # No debugging info by default29 #30 # Revision 1.2 2004/11/12 20:23:56 ilmari31 # Rename Munin::Node::SNMP to Munin::Plugin::SNMP32 #33 # Revision 1.1 2004/10/27 18:58:26 ilmari34 # Added SNMP plugins for Fujitsu Siemens ServerView temperature and fan sensors35 #36 22 # 37 23 #%# family=snmpauto … … 99 85 EOM 100 86 print 'graph_order ', join(' ', map { get_id($_) } oid_lex_sort keys %$fans), "\n"; 101 print 'host_name ', $session->hostname(), "\n"; 87 print 'host_name ', $session->hostname(), "\n" 88 unless $session->hostname eq 'localhost'; 102 89 103 90 for my $fan (keys %$fans) { people/ilmari/modularisation-branch/node/node.d/snmp__sensors_fsc_bx_temp.in
r864 r1012 20 20 # Plugin to fetch temperature data from the SNMP agent on the management 21 21 # blade on Fujitsu Simens BX series blade servers 22 #23 # $Log$24 # Revision 1.4 2004/11/16 20:08:26 jimmyo25 # License cleanups.26 #27 # Revision 1.3 2004/11/12 20:28:03 ilmari28 # No debugging info by default29 #30 # Revision 1.2 2004/11/12 20:23:57 ilmari31 # Rename Munin::Node::SNMP to Munin::Plugin::SNMP32 #33 # Revision 1.1 2004/10/27 18:58:26 ilmari34 # Added SNMP plugins for Fujitsu Siemens ServerView temperature and fan sensors35 #36 22 # 37 23 #%# family=snmpauto … … 106 92 EOM 107 93 print 'graph_order ', join(' ', map { get_id($_) } oid_lex_sort keys %$temps), "\n"; 108 print 'host_name ', $session->hostname(), "\n"; 94 print 'host_name ', $session->hostname(), "\n" 95 unless $session->hostname eq 'localhost'; 109 96 110 97 for my $sensor (keys %$temps) { people/ilmari/modularisation-branch/node/node.d/snmp__sensors_fsc_fan.in
r864 r1012 20 20 # Plugin to fetch fan data from the ServerView SNMP agent on Fujitsu 21 21 # Simens servers 22 #23 # $Log$24 # Revision 1.4 2004/11/16 20:08:26 jimmyo25 # License cleanups.26 #27 # Revision 1.3 2004/11/12 20:28:03 ilmari28 # No debugging info by default29 #30 # Revision 1.2 2004/11/12 20:23:57 ilmari31 # Rename Munin::Node::SNMP to Munin::Plugin::SNMP32 #33 # Revision 1.1 2004/10/27 18:58:26 ilmari34 # Added SNMP plugins for Fujitsu Siemens ServerView temperature and fan sensors35 #36 22 # 37 23 #%# family=snmpauto … … 104 90 EOM 105 91 print 'graph_order ', join(' ', map { get_id($_) } oid_lex_sort keys %$fans), "\n"; 106 print 'host_name ', $session->hostname(), "\n"; 92 print 'host_name ', $session->hostname(), "\n" 93 unless $session->hostname eq 'localhost'; 107 94 108 95 for my $fan (keys %$fans) { people/ilmari/modularisation-branch/node/node.d/snmp__sensors_fsc_temp.in
r864 r1012 20 20 # Plugin to fetch temperature data from the ServerView SNMP agent on 21 21 # Fujitsu Simens servers 22 #23 # $Log$24 # Revision 1.4 2004/11/16 20:08:26 jimmyo25 # License cleanups.26 #27 # Revision 1.3 2004/11/12 20:28:03 ilmari28 # No debugging info by default29 #30 # Revision 1.2 2004/11/12 20:23:57 ilmari31 # Rename Munin::Node::SNMP to Munin::Plugin::SNMP32 #33 # Revision 1.1 2004/10/27 18:58:26 ilmari34 # Added SNMP plugins for Fujitsu Siemens ServerView temperature and fan sensors35 #36 22 # 37 23 #%# family=snmpauto … … 108 94 EOM 109 95 print 'graph_order ', join(' ', map { get_id($_) } oid_lex_sort keys %$temps), "\n"; 110 print 'host_name ', $session->hostname(), "\n"; 96 print 'host_name ', $session->hostname(), "\n" 97 unless $session->hostname eq 'localhost'; 111 98 112 99 for my $sensor (keys %$temps) { people/ilmari/modularisation-branch/node/node.d/snmp__sensors_mbm_fan.in
r903 r1012 27 27 # port - SNMP port 28 28 # community - SNMP community 29 #30 # $Log$31 # Revision 1.3 2004/11/16 20:08:26 jimmyo32 # License cleanups.33 #34 # Revision 1.2 2004/09/12 10:15:07 jimmyo35 # Added some documentation.36 #37 # Revision 1.1 2004/09/12 00:26:52 jimmyo38 # Added new SNMP plugins for sensors, reading info from System-Informant on Windows boxes.39 #40 29 # 41 30 #%# family=snmpauto … … 92 81 if (defined $ARGV[0] and $ARGV[0] eq "config") 93 82 { 94 print "host_name ", $session->hostname(), "\n"; 83 print "host_name ", $session->hostname(), "\n" 84 unless $session->hostname eq 'localhost'; 95 85 print "graph_title Fan speed\n"; 96 86 print "graph_args --upper-limit 100 -l 0\n"; people/ilmari/modularisation-branch/node/node.d/snmp__sensors_mbm_temp.in
r903 r1012 27 27 # port - SNMP port 28 28 # community - SNMP community 29 #30 # $Log$31 # Revision 1.3 2004/11/16 20:08:26 jimmyo32 # License cleanups.33 #34 # Revision 1.2 2004/09/12 10:15:07 jimmyo35 # Added some documentation.36 #37 # Revision 1.1 2004/09/12 00:26:52 jimmyo38 # Added new SNMP plugins for sensors, reading info from System-Informant on Windows boxes.39 #40 29 # 41 30 #%# family=snmpauto … … 92 81 if (defined $ARGV[0] and $ARGV[0] eq "config") 93 82 { 94 print "host_name ", $session->hostname(), "\n"; 83 print "host_name ", $session->hostname(), "\n" 84 unless $session->hostname eq 'localhost'; 95 85 print "graph_title Temperatures\n"; 96 86 print "graph_args --upper-limit 100 -l 0\n"; people/ilmari/modularisation-branch/node/node.d/snmp__sensors_mbm_volt.in
r903 r1012 27 27 # port - SNMP port 28 28 # community - SNMP community 29 #30 # $Log$31 # Revision 1.4 2004/11/16 20:08:26 jimmyo32 # License cleanups.33 #34 # Revision 1.3 2004/09/25 22:36:10 jimmyo35 # Removed graph_args.36 #37 # Revision 1.2 2004/09/12 10:15:07 jimmyo38 # Added some documentation.39 #40 # Revision 1.1 2004/09/12 00:26:52 jimmyo41 # Added new SNMP plugins for sensors, reading info from System-Informant on Windows boxes.42 #43 29 # 44 30 #%# family=snmpauto … … 95 81 if (defined $ARGV[0] and $ARGV[0] eq "config") 96 82 { 97 print "host_name ", $session->hostname(), "\n"; 83 print "host_name ", $session->hostname(), "\n" 84 unless $session->hostname eq 'localhost'; 98 85 print "graph_title Voltages\n"; 99 86 print "graph_vlabel Volt\n"; people/ilmari/modularisation-branch/node/node.d/snmp__users.in
r865 r1012 16 16 # along with this program; if not, write to the Free Software 17 17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 #19 #20 # $Log$21 # Revision 1.7 2004/11/16 20:08:26 jimmyo22 # License cleanups.23 #24 # Revision 1.6 2004/09/08 15:25:33 ilmari25 # Use @@PERL@@ in all perl shebang lines.26 #27 # Revision 1.5 2004/09/07 13:19:22 ilmari28 # SNMP plugins now honour the "host" environment variable if they can't deduce the hostname from zsh.29 #30 # Revision 1.4 2004/09/05 12:00:18 jimmyo31 # Set family and capabilities.32 #33 # Revision 1.3 2004/09/04 21:58:28 jimmyo34 # Set category and info fields.35 #36 # Revision 1.2 2004/09/03 22:56:51 jimmyo37 # Added support for SNMP probing.38 #39 # Revision 1.1 2004/05/01 10:50:53 jimmyo40 # New SNMP plugins users and load.41 #42 # Revision 1.1 2004/04/30 20:13:53 jimmyo43 # New SNMP plugin for number of procs.44 #45 # Revision 1.1 2004/04/29 22:29:57 jimmyo46 # New SNMP plugin for disk usage.47 #48 # Revision 1.3 2004/02/22 20:17:58 jimmyo49 # Typo fix50 #51 # Revision 1.2 2004/02/18 21:54:56 jimmyo52 # Did a bit of work on the snmp-thingie.53 #54 # Revision 1.1 2004/01/02 18:50:00 jimmyo55 # Renamed occurrances of lrrd -> munin56 #57 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo58 # Import of LRRD CVS tree after renaming to Munin59 #60 # Revision 1.1 2003/12/19 20:53:45 jimmyo61 # Created by jo62 18 # 63 19 # … … 86 42 if (defined $ARGV[0] and $ARGV[0] eq "config") 87 43 { 88 print "host_name ", $session->hostname(), "\n"; 44 print "host_name ", $session->hostname(), "\n" 45 unless $session->hostname eq 'localhost'; 89 46 print "graph_title Number of users 90 47 graph_args --base 1000 -l 0 people/ilmari/modularisation-branch/node/node.d/spamstats.in
r864 r1012 1 1 #!@@PERL@@ 2 #3 # $Log$4 # Revision 1.5 2004/12/10 18:51:43 jimmyo5 # linux/apt* has been forced to LANG=C, to get predictable output.6 #7 # Revision 1.4 2004/12/10 10:47:47 jimmyo8 # Change name from ${scale} to ${graph_period}, to be more consistent.9 #10 # Revision 1.3 2004/12/09 22:12:55 jimmyo11 # Added "graph_period" option, to make "graph_sums" usable.12 #13 # Revision 1.2 2004/11/21 00:16:56 jimmyo14 # Changed a lot of plugins so they use DERIVE instead of COUNTER.15 #16 # Revision 1.1 2004/01/02 18:50:00 jimmyo17 # Renamed occurrances of lrrd -> munin18 #19 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo20 # Import of LRRD CVS tree after renaming to Munin21 #22 # Revision 1.1 2003/11/10 18:51:50 jimmyo23 # Initial entries24 #25 2 # 26 3 people/ilmari/modularisation-branch/node/node.d/squid_cache.in
r864 r1012 31 31 # config (required) 32 32 # autoconf (optional - only used by munin-config) 33 #34 # $Log$35 # Revision 1.5 2005/01/24 21:44:06 jimmyo36 # Plugin generic/squid_cache now handles multiple caches (Deb#288579).37 #38 # Revision 1.4 2004/11/16 20:18:09 jimmyo39 # License cleanups.40 #41 # Revision 1.3 2004/05/20 13:57:12 jimmyo42 # Set categories to some of the plugins.43 #44 # Revision 1.2 2004/03/14 11:33:13 auduny45 # Added squidpatch from Jacques Caruso46 #47 # Revision 1.1 2004/01/02 18:50:00 jimmyo48 # Renamed occurrances of lrrd -> munin49 #50 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo51 # Import of LRRD CVS tree after renaming to Munin52 #53 # Revision 1.7 2003/12/18 17:26:26 jimmyo54 # Remove use of "use"55 #56 # Revision 1.6 2003/11/10 18:41:32 jimmyo57 # Removed Data::Dumper dependency.58 #59 # Revision 1.5 2003/11/07 21:36:25 jimmyo60 # Fixed typos and mental typos61 #62 # Revision 1.4 2003/11/07 17:43:16 jimmyo63 # Cleanups and log entries64 #65 #66 33 # 67 34 #%# family=auto people/ilmari/modularisation-branch/node/node.d/squid_icp.in
r864 r1012 32 32 # config (required) 33 33 # autoconf (optional - only used by munin-config) 34 #35 # $Log$36 # Revision 1.8 2004/12/10 18:51:43 jimmyo37 # linux/apt* has been forced to LANG=C, to get predictable output.38 #39 # Revision 1.7 2004/12/10 10:47:47 jimmyo40 # Change name from ${scale} to ${graph_period}, to be more consistent.41 #42 # Revision 1.6 2004/12/09 22:12:55 jimmyo43 # Added "graph_period" option, to make "graph_sums" usable.44 #45 # Revision 1.5 2004/11/16 20:18:09 jimmyo46 # License cleanups.47 #48 # Revision 1.4 2004/09/26 22:03:52 jimmyo49 # Changd COUNTER -> DERIVE for some plugins. Set min/max values.50 #51 # Revision 1.3 2004/05/20 13:57:12 jimmyo52 # Set categories to some of the plugins.53 #54 # Revision 1.2 2004/03/14 11:33:13 auduny55 # Added squidpatch from Jacques Caruso56 #57 # Revision 1.1 2004/01/02 18:50:00 jimmyo58 # Renamed occurrances of lrrd -> munin59 #60 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo61 # Import of LRRD CVS tree after renaming to Munin62 #63 # Revision 1.6 2003/12/18 17:26:26 jimmyo64 # Remove use of "use"65 #66 # Revision 1.5 2003/11/10 18:41:33 jimmyo67 # Removed Data::Dumper dependency.68 #69 # Revision 1.4 2003/11/07 21:36:25 jimmyo70 # Fixed typos and mental typos71 #72 # Revision 1.3 2003/11/07 17:43:16 jimmyo73 # Cleanups and log entries74 #75 #76 34 # 77 35 #%# family=manual people/ilmari/modularisation-branch/node/node.d/squid_requests.in
r864 r1012 31 31 # config (required) 32 32 # autoconf (optional - only used by munin-config) 33 #34 # $Log$35 # Revision 1.8 2004/12/10 18:51:43 jimmyo36 # linux/apt* has been forced to LANG=C, to get predictable output.37 #38 # Revision 1.7 2004/12/10 10:47:47 jimmyo39 # Change name from ${scale} to ${graph_period}, to be more consistent.40 #41 # Revision 1.6 2004/12/09 22:12:55 jimmyo42 # Added "graph_period" option, to make "graph_sums" usable.43 #44 # Revision 1.5 2004/11/16 20:18:09 jimmyo45 # License cleanups.46 #47 # Revision 1.4 2004/09/26 22:03:52 jimmyo48 # Changd COUNTER -> DERIVE for some plugins. Set min/max values.49 #50 # Revision 1.3 2004/05/20 13:57:12 jimmyo51 # Set categories to some of the plugins.52 #53 # Revision 1.2 2004/03/14 11:33:13 auduny54 # Added squidpatch from Jacques Caruso55 #56 # Revision 1.1 2004/01/02 18:50:00 jimmyo57 # Renamed occurrances of lrrd -> munin58 #59 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo60 # Import of LRRD CVS tree after renaming to Munin61 #62 # Revision 1.7 2003/12/18 17:26:26 jimmyo63 # Remove use of "use"64 #65 # Revision 1.6 2003/11/15 11:10:28 jimmyo66 # Various fixes67 #68 # Revision 1.5 2003/11/10 18:41:33 jimmyo69 # Removed Data::Dumper dependency.70 #71 # Revision 1.4 2003/11/07 17:43:16 jimmyo72 # Cleanups and log entries73 #74 #75 33 # 76 34 #%# family=auto … … 186 144 print "errors.max 500000\n"; 187 145 print "requests.label misses\n"; 146 print "requests.cdef requests,hits,-,errors,-\n"; 188 147 print "requests.type DERIVE\n"; 189 148 print "requests.draw STACK\n"; people/ilmari/modularisation-branch/node/node.d/squid_traffic.in
r864 r1012 31 31 # config (required) 32 32 # autoconf (optional - only used by munin-config) 33 #34 # $Log$35 # Revision 1.8 2004/12/10 18:51:43 jimmyo36 # linux/apt* has been forced to LANG=C, to get predictable output.37 #38 # Revision 1.7 2004/12/10 10:47:47 jimmyo39 # Change name from ${scale} to ${graph_period}, to be more consistent.40 #41 # Revision 1.6 2004/12/09 22:12:55 jimmyo42 # Added "graph_period" option, to make "graph_sums" usable.43 #44 # Revision 1.5 2004/11/16 20:18:09 jimmyo45 # License cleanups.46 #47 # Revision 1.4 2004/09/26 22:03:52 jimmyo48 # Changd COUNTER -> DERIVE for some plugins. Set min/max values.49 #50 # Revision 1.3 2004/05/20 13:57:12 jimmyo51 # Set categories to some of the plugins.52 #53 # Revision 1.2 2004/03/14 11:33:13 auduny54 # Added squidpatch from Jacques Caruso55 #56 # Revision 1.1 2004/01/02 18:50:00 jimmyo57 # Renamed occurrances of lrrd -> munin58 #59 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo60 # Import of LRRD CVS tree after renaming to Munin61 #62 # Revision 1.7 2003/12/18 17:26:26 jimmyo63 # Remove use of "use"64 #65 # Revision 1.6 2003/11/10 18:41:33 jimmyo66 # Removed Data::Dumper dependency.67 #68 # Revision 1.5 2003/11/07 21:36:25 jimmyo69 # Fixed typos and mental typos70 #71 # Revision 1.4 2003/11/07 17:43:16 jimmyo72 # Cleanups and log entries73 #74 #75 33 # 76 34 #%# family=auto people/ilmari/modularisation-branch/node/node.d/surfboard.in
r864 r1012 10 10 # see how good my cable connection. good if you have choices in your area 11 11 # requires lwp::perl package. 12 #13 # $Log$14 # Revision 1.1 2004/01/02 18:50:00 jimmyo15 # Renamed occurrances of lrrd -> munin16 #17 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo18 # Import of LRRD CVS tree after renaming to Munin19 #20 # Revision 1.1 2003/11/17 09:29:34 jimmyo21 # New plugin surfboard contributed by Andrew Ryder22 #23 12 # 24 13 #%# family=contrib people/ilmari/modularisation-branch/node/node.d/sybase_space.in
r864 r1012 33 33 # SYBASE_HOST - Host 34 34 # 35 # $Log$36 # Revision 1.4 2004/12/09 18:39:01 jimmyo37 # Added more sensible autoconf to generic/munin_graph,munin_update,sybase_space.38 #39 # Revision 1.3 2004/11/16 20:10:53 jimmyo40 # License cleanups.41 #42 # Revision 1.2 2004/05/20 19:02:36 jimmyo43 # Set categories on a bunch of plugins44 #45 # Revision 1.1 2004/01/02 18:50:00 jimmyo46 # Renamed occurrances of lrrd -> munin47 #48 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo49 # Import of LRRD CVS tree after renaming to Munin50 #51 # Revision 1.3 2003/11/10 18:41:33 jimmyo52 # Removed Data::Dumper dependency.53 #54 # Revision 1.2 2003/11/07 17:43:16 jimmyo55 # Cleanups and log entries56 #57 #58 #59 35 #%# family=manual 60 36 #%# capabilities= … … 91 67 my $databases = &list_dbs ($dbh); 92 68 93 if ( exists$ARGV[0] and $ARGV[0] =~ /^config$/)69 if (defined $ARGV[0] and $ARGV[0] =~ /^config$/) 94 70 { 95 71 print "host_name sybase-i.fileflow.com\n"; people/ilmari/modularisation-branch/node/node.d/vmstat.in
r864 r1012 8 8 # config (required) 9 9 # autoconf (optional - used by munin-config) 10 #11 # $Log$12 # Revision 1.4 2004/05/20 13:57:12 jimmyo13 # Set categories to some of the plugins.14 #15 # Revision 1.3 2004/01/30 14:40:08 jimmyo16 # Added max value to generic/vmstat plugin (Deb#225489).17 #18 # Revision 1.2 2004/01/29 19:00:42 jimmyo19 # Make vmstat plugin more portable (SF#882352).20 #21 # Revision 1.1 2004/01/02 18:50:00 jimmyo22 # Renamed occurrances of lrrd -> munin23 #24 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo25 # Import of LRRD CVS tree after renaming to Munin26 #27 # Revision 1.3 2003/12/06 16:32:29 jimmyo28 # Better names. Idea from Mike Fedyk.29 #30 # Revision 1.2 2003/11/07 17:43:16 jimmyo31 # Cleanups and log entries32 #33 #34 10 # 35 11 # Magick markers (optional): people/ilmari/modularisation-branch/node/plugins.history.in
r864 r1012 116 116 [1.1.8] 117 117 [1.1.9] 118 [1.3. 1]118 [1.3.0] 119 119 generic/hddtemp_smartctl 120 120 [1.3.1] 121 [1.3.2] people/ilmari/modularisation-branch/server/Munin.pm.in
r864 r1012 21 21 # 22 22 # $Id$ 23 #24 # $Log$25 # Revision 1.49 2005/03/09 17:57:07 jimmyo26 # Escape regexps more properly (Deb#296575).27 #28 # Revision 1.48 2005/03/06 22:23:10 jimmyo29 # Make sure all rrd-tunes are correct after an upgrade (Deb#296454, Deb#296645).30 #31 # Revision 1.47 2005/03/06 19:33:20 jimmyo32 # Make sure all rrd-tunes are correct after an upgrade (Deb#296454, Deb#296645).33 #34 # Revision 1.46 2005/02/01 21:51:50 jimmyo35 # Added category_order, to complete the *_order options.36 #37 # Revision 1.45 2005/01/10 20:48:58 jimmyo38 # Main/Node: Added support for TLS.39 #40 # Revision 1.44 2005/01/05 18:32:49 jimmyo41 # Main: Tables in service-view now containt the correct "Type" when using data aliases.42 #43 # Revision 1.43 2005/01/05 18:08:01 jimmyo44 # Main: Tables in service-view now sorted according to graph_order.45 #46 # Revision 1.42 2005/01/05 17:43:34 jimmyo47 # Main: Bugfix with graphs using both "graph_sums" and data aliases.48 #49 # Revision 1.41 2004/12/25 18:56:59 jimmyo50 # Allow dots in PNG paths (patch by Jacques Caruso).51 #52 # Revision 1.40 2004/12/22 21:08:30 jimmyo53 # Bugfix when using long labels and CGI graphing.54 #55 # Revision 1.39 2004/12/22 20:13:30 jimmyo56 # Added option cgiurl_graph.57 #58 # Revision 1.38 2004/12/22 20:01:14 jimmyo59 # Optimised munin-cgi-graph a bit.60 #61 # Revision 1.37 2004/12/09 22:12:56 jimmyo62 # Added "graph_period" option, to make "graph_sums" usable.63 #64 # Revision 1.36 2004/12/08 08:47:44 jimmyo65 # Fix bug where munin-limits didn't warn properly in all situations.66 #67 # Revision 1.35 2004/11/26 13:06:00 jimmyo68 # Bugfix in munin-html, when using groups/host names with more than one dot.69 #70 # Revision 1.34 2004/11/21 14:39:23 jimmyo71 # Renamed function munin_get_val to munin_get.72 #73 # Revision 1.33 2004/11/21 14:30:55 jimmyo74 # Added new field option "line", which draws HRULEs.75 #76 # Revision 1.32 2004/11/19 23:01:41 jimmyo77 # Fixed irqstats plugin so it doesn't use numbers as field names. Also expanded the label if possible, since munin-graph now handles long labels.78 #79 # Revision 1.31 2004/11/19 22:09:48 jimmyo80 # Write out contact info to datafile correctly.81 #82 # Revision 1.30 2004/11/19 21:32:38 jimmyo83 # Added a --force option to munin-limits, to force sending absolutely all messages.84 #85 # Revision 1.29 2004/11/19 20:51:24 jimmyo86 # New notification system finished (I think).87 #88 # Revision 1.28 2004/11/18 00:22:01 jimmyo89 # Midway implementation of new notification scheme.90 #91 # Revision 1.27 2004/11/16 20:00:43 jimmyo92 # License cleanups.93 #94 # Revision 1.26 2004/11/14 20:10:38 jimmyo95 # Made sure the latest feature additions also work with the CGI option.96 #97 # Revision 1.25 2004/11/12 23:18:52 jimmyo98 # Added new options notify_enable and notify_text, to allow more finely tuned notifications (both what to notify and what text to send.)99 #100 # Revision 1.24 2004/09/23 19:46:01 jimmyo101 # Added option "compare".102 #103 # Revision 1.23 2004/09/23 16:52:55 jimmyo104 # Don't show warnings/criticals in the HTML interface if the field/graph isn't plotted.105 #106 # Revision 1.22 2004/09/23 16:43:39 jimmyo107 # Don't show warnings/criticals in the HTML interface if the field/graph isn't plotted.108 #109 # Revision 1.21 2004/09/13 21:00:38 jimmyo110 # Added new config option "local_address", to specify which local address outgoing connections (from munin-update) should be used.111 #112 # Revision 1.20 2004/09/10 19:24:18 jimmyo113 # Added new option "graph_sums" which creates summarised graphs.114 #115 # Revision 1.19 2004/09/07 21:45:37 jimmyo116 # Changes of min and max values now causes corresponding changes in the RRD files.117 #118 # Revision 1.18 2004/09/04 21:33:13 jimmyo119 # Handle strange characters better.120 #121 # Revision 1.17 2004/09/01 19:00:22 jimmyo122 # Moved function get_picture_filename from munin-graph to Munin.pm.123 #124 # Revision 1.16 2004/09/01 18:30:21 jimmyo125 # Added new options "graph_height" and "graph_width", to beter control size.126 #127 # Revision 1.15 2004/08/23 10:01:07 jimmyo128 # Better error handling when fetching data from RRD files.129 #130 # Revision 1.14 2004/08/23 09:23:46 jimmyo131 # Better error handling when fetching data from rrd files.132 #133 # Revision 1.13 2004/07/02 14:19:06 jimmyo134 # * Munin-graph: Added 'graph_sources' option. This is (in effect) the same as135 # graph_order, but with a default of 'graph no'.136 #137 # Revision 1.12 2004/06/24 14:32:17 jimmyo138 # More work on output_graphs (renamed to graph_strategy, amongst others).139 #140 # Revision 1.11 2004/06/23 17:38:39 jimmyo141 # * Created munin-cgi-graph, which creates dynamic graphs.142 # * Added munin.conf option "output_graphs (cgi|cron)" which143 # defaults to cron.144 #145 # Revision 1.10 2004/06/08 15:30:31 jimmyo146 # The server programs now open the log file at an earlier point.147 #148 # Revision 1.9 2004/06/08 15:18:21 jimmyo149 # The server programs now open the log file at an earlier point.150 #151 # Revision 1.8 2004/05/20 22:30:08 jimmyo152 # * Munin-limits added to distro.153 # * Breached limis now show up in overview and node view.154 #155 # Revision 1.7 2004/05/20 20:47:19 jimmyo156 # The server programs now open the log file at an earlier point.157 #158 # Revision 1.6 2004/05/20 12:20:24 jimmyo159 # Added "graph_category" option, to categorise plugins.160 #161 # Revision 1.5 2004/05/16 11:27:39 jimmyo162 # Added warning and critical statuses to the info table in the service view.163 #164 # Revision 1.4 2004/05/16 00:33:07 jimmyo165 # Added a descriptionary table at the bottom of the service view page. Also added "graph_info" and "<field>.info" which can be used by plugins to supply supplementary information for it.166 #167 # Revision 1.3 2004/01/29 18:19:58 jimmyo168 # Made Munin compatible with perl 5.005_03 (patch by Lupe Christoph) (SF#884622)169 #170 # Revision 1.2 2004/01/15 15:20:01 jimmyo171 # Making things workable after name change. Upping for test verwion.172 #173 # Revision 1.1 2004/01/02 18:50:01 jimmyo174 # Renamed occurrances of lrrd -> munin175 #176 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo177 # Import of LRRD CVS tree after renaming to Munin178 #179 # Revision 1.29 2003/12/12 18:59:30 jimmyo180 # Change \1 to to make lrrd-update shut up.181 #182 # Revision 1.28 2003/12/10 11:59:39 jimmyo183 # Enable/disable notifications at any level184 #185 # Revision 1.27 2003/12/06 20:19:55 jimmyo186 # Typo fix187 #188 # Revision 1.26 2003/12/06 19:12:57 jimmyo189 # Added max_processes config variable. Also, removed zombie-generation code. :-P190 #191 # Revision 1.25 2003/12/06 17:13:56 jimmyo192 # Can now escape #. Can now use \ to join lines.193 #194 # Revision 1.24 2003/12/02 11:48:56 jimmyo195 # Forgot small change196 #197 # Revision 1.23 2003/12/02 10:14:43 jimmyo198 # Moved some functions to LRRD.pm, since other programs use them as well.199 #200 # Revision 1.22 2003/11/24 16:25:51 jimmyo201 # Make sure LRRD doesn't write any illegal lines to the datafile202 #203 # Revision 1.21 2003/11/24 14:22:10 jimmyo204 # 0.9.9 release 2. Fixes a couple of stupid (minor) bugs205 #206 # Revision 1.20 2003/11/24 12:58:01 jimmyo207 # minor bugfix - no noise about "extinfo"208 #209 # Revision 1.19 2003/11/16 11:33:16 jimmyo210 # Minor bugfixes211 #212 # Revision 1.18 2003/11/15 13:26:01 jimmyo213 # Added warn to legal options214 #215 # Revision 1.17 2003/11/15 11:10:29 jimmyo216 # Various fixes217 #218 # Revision 1.16 2003/11/10 16:09:00 jimmyo219 # Be nice to Nagios - don't DOS it.220 #221 # Revision 1.15 2003/11/07 23:57:05 jimmyo222 # Remove trailing whitespace from config file223 #224 # Revision 1.14 2003/11/07 22:58:09 jimmyo225 # Documentation of new features/changes226 #227 # Revision 1.13 2003/11/07 20:46:12 jimmyo228 # Only require Config::General if using old config format.229 #230 # Revision 1.12 2003/11/07 20:12:02 jimmyo231 # datafile now saved in new config format232 #233 # Revision 1.11 2003/11/07 17:43:16 jimmyo234 # Cleanups and log entries235 #236 23 # 237 24 … … 296 83 "always_send", "notify_alias", "line", "state", "graph_period", 297 84 "cgiurl_graph", "cgiurl", "tls", "service_order", "category_order", 298 "version" 85 "version", "tls_certificate", "tls_private_key", "tls_pem", 86 "tls_verify_certificate", "tls_verify_depth", "graph_data_size" 299 87 ); 300 88 people/ilmari/modularisation-branch/server/definitions.html
- Property svn:mime-type set to text/html
- Property svn:eol-style deleted
- Property svn:keywords deleted
people/ilmari/modularisation-branch/server/logo.png
- Property svn:mime-type changed from application/octet-stream to image/png
people/ilmari/modularisation-branch/server/munin-cgi-graph.in
r864 r1012 20 20 # 21 21 # $Id$ 22 #23 # $Log$24 # Revision 1.7 2005/03/09 20:12:21 jimmyo25 # Correct expires-headers in CGI output (SF#1159742).26 #27 # Revision 1.6 2005/01/29 18:21:41 jimmyo28 # Bugfix in munin-cgi-graph with hostnames including - (SF#1111510).29 #30 # Revision 1.5 2004/12/22 20:01:15 jimmyo31 # Optimised munin-cgi-graph a bit.32 #33 # Revision 1.4 2004/11/16 20:00:44 jimmyo34 # License cleanups.35 #36 22 37 23 use RRDs; people/ilmari/modularisation-branch/server/munin-comparison-day.tmpl.in
r864 r1012 6 6 <link rel="stylesheet" href="../style.css" type="text/css" /> 7 7 <meta http-equiv="refresh" content="300" /> 8 <title>Munin :: <TMPL_VAR ESCAPE="HTML" NAME="DOMAIN"> :: <TMPL_VAR ESCAPE="HTML" NAME="NODE"></title>8 <title>Munin :: <TMPL_VAR ESCAPE="HTML" NAME="DOMAIN"> :: day</title> 9 9 <meta http-equiv="content-type" content="application/xhtml+xml; charset=iso-8859-1" /> 10 10 <meta name="author" content="Auto-generated by Munin" /> … … 43 43 <table class="invisiblebox"> 44 44 <tr><td colspan="2"></td></tr> 45 <tr><td colspan="2"><div class="lighttext">< TMPL_VAR ESCAPE="HTML" NAME="NODE"> :: <TMPL_IF NAME="URL"><a <TMPL_IF NAME="STATE_WARNING">class="warn"</TMPL_IF><TMPL_IF NAME="STATE_CRITICAL">class="crit"</TMPL_IF> href="<TMPL_VAR NAME="URL">"></TMPL_IF><TMPL_VAR ESCAPE="HTML" NAME="LABEL"><TMPL_IF NAME="URL"></a></TMPL_IF></div></td></tr>45 <tr><td colspan="2"><div class="lighttext"><a href="<TMPL_VAR ESCAPE="URL" NAME="NODE">.html"><TMPL_VAR ESCAPE="HTML" NAME="NODE"></a> :: <TMPL_IF NAME="URL"><a <TMPL_IF NAME="STATE_WARNING">class="warn"</TMPL_IF><TMPL_IF NAME="STATE_CRITICAL">class="crit"</TMPL_IF> href="<TMPL_VAR NAME="URL">"></TMPL_IF><TMPL_VAR ESCAPE="HTML" NAME="LABEL"><TMPL_IF NAME="URL"></a></TMPL_IF></div></td></tr> 46 46 <tr><td> 47 47 <a title="<TMPL_VAR ESCAPE="HTML" NAME="LABEL">"/><TMPL_IF NAME="IMGDAY"><a href="<TMPL_VAR NAME="URL">"><img src="<TMPL_VAR NAME="IMGDAY">" alt="<TMPL_VAR ESCAPE="HTML" NAME="LABEL">" <TMPL_IF NAME="IMGDAYWIDTH">width="<TMPL_VAR NAME="IMGDAYWIDTH">" </TMPL_IF> <TMPL_IF NAME="IMGDAYHEIGHT">height="<TMPL_VAR NAME="IMGDAYHEIGHT">"</TMPL_IF>/></a></TMPL_IF> people/ilmari/modularisation-branch/server/munin-comparison-month.tmpl.in
r864 r1012 6 6 <link rel="stylesheet" href="../style.css" type="text/css" /> 7 7 <meta http-equiv="refresh" content="300" /> 8 <title>Munin :: <TMPL_VAR ESCAPE="HTML" NAME="DOMAIN"> :: <TMPL_VAR ESCAPE="HTML" NAME="NODE"></title>8 <title>Munin :: <TMPL_VAR ESCAPE="HTML" NAME="DOMAIN"> :: month</title> 9 9 <meta http-equiv="content-type" content="application/xhtml+xml; charset=iso-8859-1" /> 10 10 <meta name="author" content="Auto-generated by Munin" /> … … 43 43 <table class="invisiblebox"> 44 44 <tr><td colspan="2"></td></tr> 45 <tr><td colspan="2"><div class="lighttext">< TMPL_VAR ESCAPE="HTML" NAME="NODE"> :: <TMPL_IF NAME="URL"><a <TMPL_IF NAME="STATE_WARNING">class="warn"</TMPL_IF> <TMPL_IF NAME="STATE_CRITICAL">class="crit"</TMPL_IF> href="<TMPL_VAR NAME="URL">"></TMPL_IF><TMPL_VAR ESCAPE="HTML" NAME="LABEL"><TMPL_IF NAME="URL"></a></TMPL_IF></div></td></tr>45 <tr><td colspan="2"><div class="lighttext"><a href="<TMPL_VAR ESCAPE="URL" NAME="NODE">.html"><TMPL_VAR ESCAPE="HTML" NAME="NODE"></a> :: <TMPL_IF NAME="URL"><a <TMPL_IF NAME="STATE_WARNING">class="warn"</TMPL_IF> <TMPL_IF NAME="STATE_CRITICAL">class="crit"</TMPL_IF> href="<TMPL_VAR NAME="URL">"></TMPL_IF><TMPL_VAR ESCAPE="HTML" NAME="LABEL"><TMPL_IF NAME="URL"></a></TMPL_IF></div></td></tr> 46 46 <tr><td> 47 47 <a title="<TMPL_VAR ESCAPE="HTML" NAME="LABEL">"/><TMPL_IF NAME="IMGMONTH"><a href="<TMPL_VAR NAME="URL">"><img src="<TMPL_VAR NAME="IMGMONTH">" alt="<TMPL_VAR ESCAPE="HTML" NAME="LABEL">" <TMPL_IF NAME="IMGMONTHWIDTH">width="<TMPL_VAR NAME="IMGMONTHWIDTH">" </TMPL_IF> <TMPL_IF NAME="IMGMONTHHEIGHT">height="<TMPL_VAR NAME="IMGMONTHHEIGHT">"</TMPL_IF>/></a></TMPL_IF> people/ilmari/modularisation-branch/server/munin-comparison-week.tmpl.in
r864 r1012 6 6 <link rel="stylesheet" href="../style.css" type="text/css" /> 7 7 <meta http-equiv="refresh" content="300" /> 8 <title>Munin :: <TMPL_VAR ESCAPE="HTML" NAME="DOMAIN"> :: <TMPL_VAR ESCAPE="HTML" NAME="NODE"></title>8 <title>Munin :: <TMPL_VAR ESCAPE="HTML" NAME="DOMAIN"> :: week</title> 9 9 <meta http-equiv="content-type" content="application/xhtml+xml; charset=iso-8859-1" /> 10 10 <meta name="author" content="Auto-generated by Munin" /> … … 43 43 <table class="invisiblebox"> 44 44 <tr><td colspan="2"></td></tr> 45 <tr><td colspan="2"><div class="lighttext">< TMPL_VAR ESCAPE="HTML" NAME="NODE"> :: <TMPL_IF NAME="URL"><a <TMPL_IF NAME="STATE_WARNING">class="warn"</TMPL_IF> <TMPL_IF NAME="STATE_CRITICAL">class="crit"</TMPL_IF> href="<TMPL_VAR NAME="URL">"></TMPL_IF><TMPL_VAR ESCAPE="HTML" NAME="LABEL"><TMPL_IF NAME="URL"></a></TMPL_IF></div></td></tr>45 <tr><td colspan="2"><div class="lighttext"><a href="<TMPL_VAR ESCAPE="URL" NAME="NODE">.html"><TMPL_VAR ESCAPE="HTML" NAME="NODE"></a> :: <TMPL_IF NAME="URL"><a <TMPL_IF NAME="STATE_WARNING">class="warn"</TMPL_IF> <TMPL_IF NAME="STATE_CRITICAL">class="crit"</TMPL_IF> href="<TMPL_VAR NAME="URL">"></TMPL_IF><TMPL_VAR ESCAPE="HTML" NAME="LABEL"><TMPL_IF NAME="URL"></a></TMPL_IF></div></td></tr> 46 46 <tr><td> 47 47 <a title="<TMPL_VAR ESCAPE="HTML" NAME="LABEL">"/><TMPL_IF NAME="IMGWEEK"><a href="<TMPL_VAR NAME="URL">"><img src="<TMPL_VAR NAME="IMGWEEK">" alt="<TMPL_VAR ESCAPE="HTML" NAME="LABEL">" <TMPL_IF NAME="IMGWEEKWIDTH">width="<TMPL_VAR NAME="IMGWEEKWIDTH">" </TMPL_IF> <TMPL_IF NAME="IMGWEEKHEIGHT">height="<TMPL_VAR NAME="IMGWEEKHEIGHT">"</TMPL_IF>/></a></TMPL_IF> people/ilmari/modularisation-branch/server/munin-comparison-year.tmpl.in
r864 r1012 6 6 <link rel="stylesheet" href="../style.css" type="text/css" /> 7 7 <meta http-equiv="refresh" content="300" /> 8 <title>Munin :: <TMPL_VAR ESCAPE="HTML" NAME="DOMAIN"> :: <TMPL_VAR ESCAPE="HTML" NAME="NODE"></title>8 <title>Munin :: <TMPL_VAR ESCAPE="HTML" NAME="DOMAIN"> :: year</title> 9 9 <meta http-equiv="content-type" content="application/xhtml+xml; charset=iso-8859-1" /> 10 10 <meta name="author" content="Auto-generated by Munin" /> … … 43 43 <table class="invisiblebox"> 44 44 <tr><td colspan="2"></td></tr> 45 <tr><td colspan="2"><div class="lighttext">< TMPL_VAR ESCAPE="HTML" NAME="NODE"> :: <TMPL_IF NAME="URL"><a <TMPL_IF NAME="STATE_WARNING">class="warn"</TMPL_IF> <TMPL_IF NAME="STATE_CRITICAL">class="crit"</TMPL_IF> href="<TMPL_VAR NAME="URL">"></TMPL_IF><TMPL_VAR ESCAPE="HTML" NAME="LABEL"><TMPL_IF NAME="URL"></a></TMPL_IF></div></td></tr>45 <tr><td colspan="2"><div class="lighttext"><a href="<TMPL_VAR ESCAPE="URL" NAME="NODE">.html"><TMPL_VAR ESCAPE="HTML" NAME="NODE"></a> :: <TMPL_IF NAME="URL"><a <TMPL_IF NAME="STATE_WARNING">class="warn"</TMPL_IF> <TMPL_IF NAME="STATE_CRITICAL">class="crit"</TMPL_IF> href="<TMPL_VAR NAME="URL">"></TMPL_IF><TMPL_VAR ESCAPE="HTML" NAME="LABEL"><TMPL_IF NAME="URL"></a></TMPL_IF></div></td></tr> 46 46 <tr><td> 47 47 <a title="<TMPL_VAR ESCAPE="HTML" NAME="LABEL">"/><TMPL_IF NAME="IMGYEAR"><a href="<TMPL_VAR NAME="URL">"><img src="<TMPL_VAR NAME="IMGYEAR">" alt="<TMPL_VAR ESCAPE="HTML" NAME="LABEL">" <TMPL_IF NAME="IMGYEARWIDTH">width="<TMPL_VAR NAME="IMGYEARWIDTH">" </TMPL_IF> <TMPL_IF NAME="IMGYEARHEIGHT">height="<TMPL_VAR NAME="IMGYEARHEIGHT">"</TMPL_IF>/></a></TMPL_IF> people/ilmari/modularisation-branch/server/munin-cron.in
r864 r1012 2 2 [ -x @@LIBDIR@@/munin-update ] && @@LIBDIR@@/munin-update $@; 3 3 [ -x @@LIBDIR@@/munin-limits ] && @@LIBDIR@@/munin-limits $@; 4 [ -x @@LIBDIR@@/munin-graph ] && nice @@LIBDIR@@/munin-graph --cron $@ ;4 [ -x @@LIBDIR@@/munin-graph ] && nice @@LIBDIR@@/munin-graph --cron $@ 2>&1 | while read line; do [ x"$line" = x"*** attempt to put segment in horiz list twice" ] && continue; echo $line; done; 5 5 [ -x @@LIBDIR@@/munin-html ] && nice @@LIBDIR@@/munin-html $@; 6 6 people/ilmari/modularisation-branch/server/munin-graph.in
r864 r1012 20 20 # $Id$ 21 21 # 22 # $Log$23 # Revision 1.52 2005/01/08 22:34:38 jimmyo24 # Main: Fix bug with calculation of "Avg:" field when using graph_sums.25 #26 # Revision 1.51 2005/01/05 18:32:49 jimmyo27 # Main: Tables in service-view now containt the correct "Type" when using data aliases.28 #29 # Revision 1.50 2005/01/05 18:08:01 jimmyo30 # Main: Tables in service-view now sorted according to graph_order.31 #32 # Revision 1.49 2005/01/05 17:43:34 jimmyo33 # Main: Bugfix with graphs using both "graph_sums" and data aliases.34 #35 # Revision 1.48 2005/01/04 08:38:51 jimmyo36 # Fix bug which lead to some graphs failing with STACK error.37 #38 # Revision 1.47 2005/01/04 08:10:51 jimmyo39 # Fix help text (it was modified by accident).40 #41 # Revision 1.46 2004/12/22 20:01:16 jimmyo42 # Optimised munin-cgi-graph a bit.43 #44 # Revision 1.45 2004/12/10 10:47:50 jimmyo45 # Change name from ${scale} to ${graph_period}, to be more consistent.46 #47 # Revision 1.44 2004/12/09 22:30:36 jimmyo48 # Make sure graph_sums arent applied to GAUGE graphs.49 #50 # Revision 1.43 2004/12/09 22:12:57 jimmyo51 # Added "graph_period" option, to make "graph_sums" usable.52 #53 # Revision 1.42 2004/12/09 16:06:40 jimmyo54 # munin-graph now logs an illegal STACK in the first field better (SF#1081903).55 #56 # Revision 1.41 2004/12/09 12:40:08 jimmyo57 # mumin-graph now treats CDEFs in fields with long names properly.58 #59 # Revision 1.40 2004/11/26 13:24:16 jimmyo60 # Added --stdout-option to all programs.61 #62 # Revision 1.39 2004/11/21 15:43:08 jimmyo63 # Copy info fields when using aliases.64 #65 # Revision 1.38 2004/11/21 14:39:23 jimmyo66 # Renamed function munin_get_val to munin_get.67 #68 # Revision 1.37 2004/11/21 14:30:55 jimmyo69 # Added new field option "line", which draws HRULEs.70 #71 # Revision 1.36 2004/11/19 23:01:46 jimmyo72 # Fixed irqstats plugin so it doesn't use numbers as field names. Also expanded the label if possible, since munin-graph now handles long labels.73 #74 # Revision 1.35 2004/11/19 22:26:57 jimmyo75 # Use column headers for min/max/cur/avg if label is too long.76 #77 # Revision 1.34 2004/11/16 20:00:44 jimmyo78 # License cleanups.79 #80 # Revision 1.33 2004/11/13 22:50:49 jimmyo81 # Draw min/max ranges in all graphs with only one visible field.82 #83 # Revision 1.32 2004/09/10 20:47:20 jimmyo84 # Changed the calculation of daily sums on the summed year graph.85 #86 # Revision 1.31 2004/09/10 19:24:18 jimmyo87 # Added new option "graph_sums" which creates summarised graphs.88 #89 # Revision 1.30 2004/09/08 15:25:33 ilmari90 # Use @@PERL@@ in all perl shebang lines.91 #92 # Revision 1.29 2004/09/07 21:45:38 jimmyo93 # Changes of min and max values now causes corresponding changes in the RRD files.94 #95 # Revision 1.28 2004/09/04 21:33:13 jimmyo96 # Handle strange characters better.97 #98 # Revision 1.27 2004/09/01 19:00:22 jimmyo99 # Moved function get_picture_filename from munin-graph to Munin.pm.100 #101 # Revision 1.26 2004/09/01 18:30:21 jimmyo102 # Added new options "graph_height" and "graph_width", to beter control size.103 #104 # Revision 1.25 2004/08/23 10:37:31 jimmyo105 # Fixed bug in munin-graph when choosing colours (Deb#267185).106 #107 # Revision 1.24 2004/08/18 15:32:20 jimmyo108 # Applied patch from Matthieu Lochegnies to munin-graph, and fixed the same problem elsewhere in the code (Deb#250982, SF#924561).109 #110 # Revision 1.23 2004/07/02 14:19:06 jimmyo111 # * Munin-graph: Added 'graph_sources' option. This is (in effect) the same as112 # graph_order, but with a default of 'graph no'.113 #114 # Revision 1.22 2004/06/28 12:07:00 jimmyo115 # * Munin-graph: fixed bug when combining graph_order aliases with116 # "normal" fields, as reported by Jacques Caruso.117 #118 # Revision 1.21 2004/06/24 14:32:17 jimmyo119 # More work on output_graphs (renamed to graph_strategy, amongst others).120 #121 # Revision 1.20 2004/06/23 17:48:06 jimmyo122 # Bugfix in cdef calculations.123 #124 # Revision 1.19 2004/06/22 22:04:45 jimmyo125 # Added --cron option to munin-graph.126 #127 # Revision 1.18 2004/06/19 21:29:35 jimmyo128 # Added option to munin-graph to skip stats generation.129 #130 # Revision 1.17 2004/06/19 21:21:44 jimmyo131 # Added option to munin-graph to skip locking.132 #133 # Revision 1.16 2004/06/19 21:19:28 jimmyo134 # Log to correct log135 #136 # Revision 1.15 2004/06/16 21:08:33 jimmyo137 # Added automatic "graph no" to negative field when using negatives.138 #139 # Revision 1.14 2004/06/08 15:30:34 jimmyo140 # The server programs now open the log file at an earlier point.141 #142 # Revision 1.13 2004/05/20 20:47:19 jimmyo143 # The server programs now open the log file at an earlier point.144 #145 # Revision 1.12 2004/05/20 11:14:17 jimmyo146 # Tuned cdef-code to make it work properly after clean-up.147 #148 # Revision 1.11 2004/05/16 00:33:07 jimmyo149 # Added a descriptionary table at the bottom of the service view page. Also added "graph_info" and "<field>.info" which can be used by plugins to supply supplementary information for it.150 #151 # Revision 1.10 2004/05/14 20:22:41 jimmyo152 # Code cleanups.153 #154 # Revision 1.9 2004/05/13 21:48:49 jimmyo155 # Code cleanups.156 #157 # Revision 1.8 2004/05/09 21:11:16 jimmyo158 # New plugin (pm3users) and a bunch of patches from Jacques Caruso.159 #160 # Revision 1.7 2004/04/28 21:32:26 jimmyo161 # Make "graph_scale no" affect y-axis as well as numbers below the graph (Deb#236834).162 #163 # Revision 1.6 2004/02/02 17:28:22 jimmyo164 # Munin-graph now escapes ':' in labels properly.; Fixed bug in munin-graph where it caused a flood of cron-mail.165 #166 # Revision 1.5 2004/02/01 18:28:58 jimmyo167 # A perl 5.005_03 compatabilty problem, which slipped through to version pre2.168 #169 # Revision 1.4 2004/01/30 15:04:02 jimmyo170 # Code tidying in munin-graph (SF#884625).171 #172 # Revision 1.3 2004/01/29 17:34:06 jimmyo173 # Updated copyright information174 #175 # Revision 1.2 2004/01/15 15:20:01 jimmyo176 # Making things workable after name change. Upping for test verwion.177 #178 # Revision 1.1 2004/01/02 18:50:01 jimmyo179 # Renamed occurrances of lrrd -> munin180 #181 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo182 # Import of LRRD CVS tree after renaming to Munin183 #184 # Revision 1.28 2003/12/22 15:40:08 jimmyo185 # Keep quiet when not able to get lastupdate.186 #187 # Revision 1.27 2003/12/18 15:15:08 jimmyo188 # Only log graphing errors (== less cron-mail).189 #190 # Revision 1.26 2003/12/02 11:52:25 jimmyo191 # Bugfix when aliasing fields.192 #193 # Revision 1.25 2003/12/02 10:14:43 jimmyo194 # Moved some functions to LRRD.pm, since other programs use them as well.195 #196 # Revision 1.24 2003/11/24 14:22:10 jimmyo197 # 0.9.9 release 2. Fixes a couple of stupid (minor) bugs198 #199 # Revision 1.23 2003/11/15 11:10:29 jimmyo200 # Various fixes201 #202 # Revision 1.22 2003/11/07 23:57:18 jimmyo203 # More debug information204 #205 # Revision 1.21 2003/11/07 22:58:09 jimmyo206 # Documentation of new features/changes207 #208 # Revision 1.20 2003/11/07 21:31:03 jimmyo209 # Minor cleanup210 #211 # Revision 1.19 2003/11/07 20:46:12 jimmyo212 # Only require Config::General if using old config format.213 #214 # Revision 1.18 2003/11/07 19:00:15 jimmyo215 # Put lockfiles in the right place216 #217 # Revision 1.17 2003/11/07 17:43:16 jimmyo218 # Cleanups and log entries219 #220 #221 22 $|=1; 222 23 … … 237 38 my @limit_hosts = (); 238 39 my @limit_services = (); 40 41 # RRDtool 1.2 requires \\: in comments 42 my $RRDkludge = $RRDs::VERSION < 1.2 ? '' : '\\'; 239 43 240 44 # Force drawing of "graph no". … … 311 115 if ($do_version) 312 116 { 313 print "munin-graph version $VERSION.\n"; 314 print "Written by Audun Ytterdal, Jimmy Olsen, Tore Anderson / Linpro AS\n"; 315 print "\n"; 316 print "Copyright (C) 2002-2004\n"; 317 print "This is free software released under the GNU Public License. There is NO\n"; 318 print "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"; 117 print <<"EOT"; 118 munin-graph version $VERSION. 119 Written by Audun Ytterdal, Jimmy Olsen, Tore Anderson / Linpro AS 120 121 Copyright (C) 2002-2005 122 123 This is free software released under the GNU General Public License. There 124 is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 125 PURPOSE. For details, please refer to the file COPYING that is included 126 with this software or refer to 127 http://www.fsf.org/licensing/licenses/gpl.txt 128 EOT 319 129 exit 0; 320 130 } … … 849 659 { 850 660 push (@rrd, "COMMENT:" . (" " x $max_field_len)); 851 push (@rrd, "COMMENT: Cur :");852 push (@rrd, "COMMENT:Min :");853 push (@rrd, "COMMENT:Avg :");854 push (@rrd, "COMMENT:Max : \\j");661 push (@rrd, "COMMENT: Cur$RRDkludge:"); 662 push (@rrd, "COMMENT:Min$RRDkludge:"); 663 push (@rrd, "COMMENT:Avg$RRDkludge:"); 664 push (@rrd, "COMMENT:Max$RRDkludge: \\j"); 855 665 $global_headers++; 856 666 } … … 925 735 else 926 736 { 927 push (@rrd, "COMMENT: Cur :") unless $global_headers;737 push (@rrd, "COMMENT: Cur$RRDkludge:") unless $global_headers; 928 738 push (@rrd, "GPRINT:c$rrdname:LAST:%6.2lf" . (munin_get_bool_val ($node->{client}->{$service}->{graph_scale}, "yes")?"%s":"") . ""); 929 push (@rrd, "COMMENT: Min :") unless $global_headers;739 push (@rrd, "COMMENT: Min$RRDkludge:") unless $global_headers; 930 740 push (@rrd, "GPRINT:i$rrdname:MIN:%6.2lf" . (munin_get_bool_val ($node->{client}->{$service}->{graph_scale}, 1)?"%s":"") . ""); 931 push (@rrd, "COMMENT: Avg :") unless $global_headers;741 push (@rrd, "COMMENT: Avg$RRDkludge:") unless $global_headers; 932 742 push (@rrd, "GPRINT:g$rrdname:AVERAGE:%6.2lf" . (munin_get_bool_val ($node->{client}->{$service}->{graph_scale}, 1)?"%s":"") . ""); 933 push (@rrd, "COMMENT: Max :") unless $global_headers;743 push (@rrd, "COMMENT: Max$RRDkludge:") unless $global_headers; 934 744 push (@rrd, "GPRINT:a$rrdname:MAX:%6.2lf" . (munin_get_bool_val ($node->{client}->{$service}->{graph_scale}, 1)?"%s":"") . "\\j"); 935 745 push (@{$total_pos{'min'}}, "i$rrdname"); … … 992 802 push (@rrd, "CDEF:dpostotal=ipostotal,UN,ipostotal,UNKN,IF"); 993 803 push (@rrd, "LINE1:dpostotal#000000:" . $node->{client}->{$service}->{graph_total} . (" " x ($max_field_len - length ($node->{client}->{$service}->{graph_total}) + 1))); 994 push (@rrd, "COMMENT: Cur :") unless $global_headers;804 push (@rrd, "COMMENT: Cur$RRDkludge:") unless $global_headers; 995 805 push (@rrd, "GPRINT:gpostotal:LAST:%6.2lf" . (munin_get_bool_val ($node->{client}->{$service}->{graph_scale}, 1)?"%s":"") . ""); 996 push (@rrd, "COMMENT: Min :") unless $global_headers;806 push (@rrd, "COMMENT: Min$RRDkludge:") unless $global_headers; 997 807 push (@rrd, "GPRINT:ipostotal:MIN:%6.2lf" . (munin_get_bool_val ($node->{client}->{$service}->{graph_scale}, 1)?"%s":"") . ""); 998 push (@rrd, "COMMENT: Avg :") unless $global_headers;808 push (@rrd, "COMMENT: Avg$RRDkludge:") unless $global_headers; 999 809 push (@rrd, "GPRINT:gpostotal:AVERAGE:%6.2lf" . (munin_get_bool_val ($node->{client}->{$service}->{graph_scale}, 1)?"%s":"") . ""); 1000 push (@rrd, "COMMENT: Max :") unless $global_headers;810 push (@rrd, "COMMENT: Max$RRDkludge:") unless $global_headers; 1001 811 push (@rrd, "GPRINT:apostotal:MAX:%6.2lf" . (munin_get_bool_val ($node->{client}->{$service}->{graph_scale}, 1)?"%s":"") . "\\j"); 1002 812 } … … 1011 821 push @complete, @rrd; 1012 822 1013 push (@complete, "COMMENT:Last update : " . localtime($lastupdate) . "\\r");823 push (@complete, "COMMENT:Last update$RRDkludge: " . RRDescape(scalar localtime($lastupdate)) . "\\r"); 1014 824 1015 825 if (time - 300 < $lastupdate) … … 1041 851 } 1042 852 push @rrd_sum, @rrd; 1043 push (@rrd_sum, "COMMENT:Last update : " . localtime($lastupdate) . "\\r");853 push (@rrd_sum, "COMMENT:Last update$RRDkludge: " . RRDescape(scalar localtime($lastupdate)) . "\\r"); 1044 854 1045 855 my $labelled = 0; … … 1243 1053 { 1244 1054 print $log "$now - $comment\n"; 1055 $log->flush; 1056 close (STDERR); 1057 open (STDERR, ">&", $log); 1245 1058 } 1246 1059 else … … 1290 1103 } 1291 1104 1105 sub RRDescape 1106 { 1107 my $text = shift; 1108 return $RRDs::VERSION < 1.2 ? $text : escape($text); 1109 } 1110 1292 1111 1; 1293 1112 people/ilmari/modularisation-branch/server/munin-html.in
r864 r1012 20 20 # $Id$ 21 21 # 22 # $Log$23 # Revision 1.44 2005/03/07 17:43:39 jimmyo24 # Re-enable width/height attributes to img tags.25 #26 # Revision 1.43 2005/02/01 21:51:51 jimmyo27 # Added category_order, to complete the *_order options.28 #29 # Revision 1.42 2005/01/29 18:21:41 jimmyo30 # Bugfix in munin-cgi-graph with hostnames including - (SF#1111510).31 #32 # Revision 1.41 2005/01/05 18:32:49 jimmyo33 # Main: Tables in service-view now containt the correct "Type" when using data aliases.34 #35 # Revision 1.40 2005/01/05 18:08:01 jimmyo36 # Main: Tables in service-view now sorted according to graph_order.37 #38 # Revision 1.39 2004/12/22 20:53:50 jimmyo39 # Correct name of config variable.40 #41 # Revision 1.38 2004/12/22 20:52:29 jimmyo42 # Corrected filename of munin-cgi-graph.43 #44 # Revision 1.37 2004/12/22 20:13:31 jimmyo45 # Added option cgiurl_graph.46 #47 # Revision 1.36 2004/11/26 13:24:20 jimmyo48 # Added --stdout-option to all programs.49 #50 # Revision 1.35 2004/11/21 15:29:19 jimmyo51 # Take line definitions with labels into account.52 #53 # Revision 1.34 2004/11/21 14:39:23 jimmyo54 # Renamed function munin_get_val to munin_get.55 #56 # Revision 1.33 2004/11/16 20:00:44 jimmyo57 # License cleanups.58 #59 # Revision 1.32 2004/11/14 20:10:38 jimmyo60 # Made sure the latest feature additions also work with the CGI option.61 #62 # Revision 1.31 2004/09/23 20:04:59 jimmyo63 # Added option "compare".64 #65 # Revision 1.30 2004/09/23 19:46:01 jimmyo66 # Added option "compare".67 #68 # Revision 1.29 2004/09/23 16:43:39 jimmyo69 # Don't show warnings/criticals in the HTML interface if the field/graph isn't plotted.70 #71 # Revision 1.28 2004/09/23 15:23:33 jimmyo72 # Added "comparison" views, to view a whole hostgroup at once.73 #74 # Revision 1.27 2004/09/14 22:08:58 jimmyo75 # Bugfix with domain_order.76 #77 # Revision 1.26 2004/09/13 21:45:55 jimmyo78 # node- and domain_order settings now does not exclude unmentioned entries.79 #80 # Revision 1.25 2004/09/10 21:06:56 jimmyo81 # Made summarised grahps work with dynamically generated graphs.82 #83 # Revision 1.24 2004/09/10 19:24:18 jimmyo84 # Added new option "graph_sums" which creates summarised graphs.85 #86 # Revision 1.23 2004/09/08 15:25:33 ilmari87 # Use @@PERL@@ in all perl shebang lines.88 #89 # Revision 1.22 2004/09/07 20:38:33 jimmyo90 # Added the internal field name to the HTML output as a tooltip.91 #92 # Revision 1.21 2004/09/07 18:56:03 jimmyo93 # Small interface improvements in the HTML output.94 #95 # Revision 1.20 2004/09/01 19:46:01 jimmyo96 # Removed debug info.97 #98 # Revision 1.19 2004/09/01 19:44:46 jimmyo99 # Munin-html img-tags now sets image size, which helps when rendering pages with lots of graphs.100 #101 # Revision 1.18 2004/06/24 14:32:18 jimmyo102 # More work on output_graphs (renamed to graph_strategy, amongst others).103 #104 # Revision 1.17 2004/06/23 17:38:40 jimmyo105 # * Created munin-cgi-graph, which creates dynamic graphs.106 # * Added munin.conf option "output_graphs (cgi|cron)" which107 # defaults to cron.108 #109 # Revision 1.16 2004/05/21 06:21:46 jimmyo110 # Removed superfluous debug output.111 #112 # Revision 1.15 2004/05/20 22:30:08 jimmyo113 # * Munin-limits added to distro.114 # * Breached limis now show up in overview and node view.115 #116 # Revision 1.14 2004/05/20 20:47:20 jimmyo117 # The server programs now open the log file at an earlier point.118 #119 # Revision 1.13 2004/05/20 19:05:53 jimmyo120 # Show categories121 #122 # Revision 1.12 2004/05/20 13:57:11 jimmyo123 # Set categories to some of the plugins.124 #125 # Revision 1.11 2004/05/20 12:20:24 jimmyo126 # Added "graph_category" option, to categorise plugins.127 #128 # Revision 1.10 2004/05/16 16:58:41 jimmyo129 # Added a definition file (definitions.html) to the server distribution.130 #131 # Revision 1.9 2004/05/16 11:27:39 jimmyo132 # Added warning and critical statuses to the info table in the service view.133 #134 # Revision 1.8 2004/05/16 00:36:19 jimmyo135 # Forgo an option136 #137 # Revision 1.7 2004/05/16 00:33:07 jimmyo138 # Added a descriptionary table at the bottom of the service view page. Also added "graph_info" and "<field>.info" which can be used by plugins to supply supplementary information for it.139 #140 # Revision 1.6 2004/05/12 10:46:47 jimmyo141 # Bugfix regarding logo namechange from logo.gif to logo.png, when installing.142 #143 # Revision 1.5 2004/01/29 17:40:10 jimmyo144 # Fixed pod typos patched by Lupe Christoph (SF#884092)145 #146 # Revision 1.4 2004/01/29 17:34:06 jimmyo147 # Updated copyright information148 #149 # Revision 1.3 2004/01/29 17:13:46 jimmyo150 # Enabled domain_order-option.151 #152 # Revision 1.2 2004/01/15 15:20:01 jimmyo153 # Making things workable after name change. Upping for test verwion.154 #155 # Revision 1.1 2004/01/02 18:50:01 jimmyo156 # Renamed occurrances of lrrd -> munin157 #158 # Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo159 # Import of LRRD CVS tree after renaming to Munin160 #161 # Revision 1.10 2003/12/02 10:15:14 jimmyo162 # Minor bugfix reported by Chan Wilson163 #164 # Revision 1.9 2003/12/02 09:55:56 jimmyo165 # Fixed stupid brain-bug (Chan Wilson)166 #167 # Revision 1.8 2003/11/07 20:46:12 jimmyo168 # Only require Config::General if using old config format.169 #170 # Revision 1.7 2003/11/07 19:00:16 jimmyo171 # Put lockfiles in the right place172 #173 # Revision 1.6 2003/11/07 17:43:16 jimmyo174 # Cleanups and log entries175 #176 #177 22 $|=1; 178 23 … … 226 71 if ($do_version) 227 72 { 228 print "munin-html version $VERSION.\n"; 229 print "Written by Knut Haugen, Audun Ytterdal, Jimmy Olsen, Tore Anderson / Linpro AS\n"; 230 print "\n"; 231 print "Copyright (C) 2002-2004\n"; 232 print "This is free software released under the GNU Public License. There is NO\n"; 233 print "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"; 73 print <<"EOT"; 74 munin-html version $VERSION. 75 Written by Knut Haugen, Audun Ytterdal, Jimmy Olsen, Tore Anderson / Linpro AS 76 77 Copyright (C) 2002-2005 78 79 This is free software released under the GNU General Public License. There 80 is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 81 PURPOSE. For details, please refer to the file COPYING that is included 82 with this software or refer to 83 http://www.fsf.org/licensing/licenses/gpl.txt 84 EOT 234 85 exit 0; 235 86 } … … 538 389 { 539 390 push @categories, $categories{$cat} 540 unless (grep /^$cat$/,@categories);391 unless (grep { $_->{name} eq $cat } @categories); 541 392 } 542 393 } else { … … 666 517 { 667 518 print $log "$now - $comment\n"; 519 $log->flush; 520 close (STDERR); 521 open (STDERR, ">&", $log); 668 522 } 669 523 else people/ilmari/modularisation-branch/server/munin-limits.in
r864 r1012 16 16 # along with this program; if not, write to the Free Software 17 17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 #19 #20 # $Log$21 # Revision 1.26 2005/02/16 19:58:25 jimmyo22 # yet another rewrite of munin-limits open call (SF#1115434)23 #24 # Revision 1.25 2005/01/25 20:06:55 jimmyo25 # Make munin-limits work properly with perl 5.6 (SF#1109039).26 #27 # Revision 1.24 2005/01/05 15:40:35 jimmyo28 # Main: "contacts" can now be set to "none".29 #30 # Revision 1.23 2005/01/05 12:12:30 jimmyo31 # Main: Added limit message option "strtrunc"32 #33 # Revision 1.22 2004/12/08 08:47:44 jimmyo34 # Fix bug where munin-limits didn't warn properly in all situations.35 #36 # Revision 1.21 2004/11/26 08:48:50 ilmari37 # Allow floating point values in warning/critical limits.38 #39 # Revision 1.20 2004/11/24 12:01:07 jimmyo40 # Bugfix in munin-limits (it didn't work properly).41 #42 # Revision 1.19 2004/11/19 21:51:05 jimmyo43 # Cosmetics on the nagios warnings.44 #45 # Revision 1.18 2004/11/19 21:32:39 jimmyo46 # Added a --force option to munin-limits, to force sending absolutely all messages.47 #48 # Revision 1.17 2004/11/19 21:05:54 jimmyo49 # Removed the munin-nagios program, as it is no longer needed.50 #51 # Revision 1.16 2004/11/19 20:51:24 jimmyo52 # New notification system finished (I think).53 #54 # Revision 1.15 2004/11/19 18:38:02 jimmyo55 # Worked a bit more on the notification system.56 #57 # Revision 1.14 2004/11/18 15:31:37 jimmyo58 # Worked a bit more on the notification system.59 #60 # Revision 1.13 2004/11/18 00:22:02 jimmyo61 # Midway implementation of new notification scheme.62 #63 # Revision 1.12 2004/11/16 20:00:44 jimmyo64 # License cleanups.65 #66 # Revision 1.11 2004/11/13 21:22:59 jimmyo67 # Changed some of the critical/warning output..68 #69 # Revision 1.10 2004/11/13 19:14:08 jimmyo70 # Changed the default warning/critical output a bit.71 #72 # Revision 1.9 2004/11/12 23:18:52 jimmyo73 # Added new options notify_enable and notify_text, to allow more finely tuned notifications (both what to notify and what text to send.)74 #75 # Revision 1.8 2004/09/24 16:31:07 jimmyo76 # Bugfixes.77 #78 # Revision 1.7 2004/09/08 15:25:33 ilmari79 # Use @@PERL@@ in all perl shebang lines.80 #81 # Revision 1.6 2004/06/08 15:30:34 jimmyo82 # The server programs now open the log file at an earlier point.83 #84 # Revision 1.5 2004/05/20 22:30:08 jimmyo85 # * Munin-limits added to distro.86 # * Breached limis now show up in overview and node view.87 #88 # Revision 1.4 2004/01/29 17:40:10 jimmyo89 # Fixed pod typos patched by Lupe Christoph (SF#884092)90 #91 # Revision 1.3 2004/01/29 17:34:06 jimmyo92 # Updated copyright information93 #94 # Revision 1.2 2004/01/15 15:20:01 jimmyo95 # Making things workable after name change. Upping for test verwion.96 #97 # Revision 1.1 2004/01/02 18:50:01 jimmyo98 # Renamed occurrances of lrrd -> munin99 #100 # Revision 1.1.1.1 2004/01/02 15:18:08 jimmyo101 # Import of LRRD CVS tree after renaming to Munin102 #103 # Revision 1.4 2003/11/07 20:46:12 jimmyo104 # Only require Config::General if using old config format.105 #106 # Revision 1.3 2003/11/07 17:43:16 jimmyo107 # Cleanups and log entries108 #109 18 110 19 use strict; … … 180 89 181 90 logger("Starting munin-limits, checking lock"); 182 munin_runlock("$config->{ dbdir}/munin-limits.lock");183 logger("Created lock: $config->{ dbdir}/munin-limits.lock");91 munin_runlock("$config->{rundir}/munin-limits.lock"); 92 logger("Created lock: $config->{rundir}/munin-limits.lock"); 184 93 185 94 if (!defined $config->{'contact'}->{'nagios'}->{'command'} and … … 459 368 } 460 369 logger ("Debug: opening for writing: \"" . join('" "',@cmd) . "\".") if $DEBUG; 461 if ($cmd[0] ==">")370 if ($cmd[0] eq ">") 462 371 { 463 372 if (! open ($pipe, join (' ', @cmd))) … … 477 386 if (!$pid) # Child 478 387 { 388 # Fork of stdout-to-log filter 389 my $logstdout; 390 my $logstderr; 391 my $logpid = open ($logstdout, "|-"); 392 if (!defined $logpid) 393 { 394 logger ("Fatal: Unable to fork: $!"); 395 exit 3; 396 } 397 if (!$logpid) # Child 398 { 399 while (<STDIN>) 400 { 401 chomp; 402 logger ("Command \"$c\" stdout: $_"); 403 } 404 exit 0; 405 } 406 close (STDOUT); 407 *STDOUT = \$logstdout; 408 my $logpid = open ($logstderr, "|-"); 409 if (!defined $logpid) 410 { 411 logger ("Fatal: Unable to fork: $!"); 412 exit 3; 413 } 414 if (!$logpid) # Child 415 { 416 while (<STDIN>) 417 { 418 chomp; 419 logger ("Command \"$c\" stderr: $_"); 420 } 421 exit 0; 422 } 423 close (STDERR); 424 *STDERR = \$logstderr; 425 479 426 exec (@cmd[1 .. $#cmd]) or logger ("Warning: Could not run command \"" . join(' ',@cmd[1 .. $#cmd]) . "\": $!"); 480 427 exit 5; … … 605 552 { 606 553 print $log "$now - $comment\n"; 554 $log->flush; 555 close (STDERR); 556 open (STDERR, ">&", $log); 607 557 } 608 558 else … … 651 601 =item B<< --[no]force >> 652 602 653 Force sending of messages ieven if you normally wouldn't. [--noforce]603 Force sending of messages even if you normally wouldn't. [--noforce] 654 604 655 605 =item B<< --[no]force-root >> 656 606 657 607 Force running as root (stupid and unnecessary). [--noforce-root] 658 659 =item B<< --removeok >>660 661 Reset warning status.662 608 663 609 =item B<< --help >> people/ilmari/modularisation-branch/server/munin-update.in
r864 r1012 22 22 # 23 23 # $Id$ 24 #25 # $Log$26 # Revision 1.34 2005/03/09 17:57:08 jimmyo27 # Escape regexps more properly (Deb#296575).28 #29 # Revision 1.33 2005/03/06 21:23:29 jimmyo30 # Better handling of broken connections (Deb#298108).31 #32 # Revision 1.32 2005/03/06 19:33:20 jimmyo33 # Make sure all rrd-tunes are correct after an upgrade (Deb#296454, Deb#296645).34 #35 # Revision 1.31 2005/01/24 21:58:46 jimmyo36 # Make munin-update shut up when reading from a socket goes wrong.37 #38 # Revision 1.30 2005/01/24 17:25:39 jimmyo39 # Made TLS mode work.40 #41 # Revision 1.29 2005/01/10 20:48:58 jimmyo42 # Main/Node: Added support for TLS.43 #44 # Revision 1.28 2004/12/10 09:12:13 jimmyo45 # Fix bug when setting min to 0.46 #47 # Revision 1.27 2004/12/09 16:20:06 jimmyo48 # generic/uptime was re-classified as linux/uptime (SF#1074576).49 #50 # Revision 1.26 2004/11/26 13:36:00 jimmyo51 # Log updates of nonexisting fields better (SF#1073172).52 #53 # Revision 1.25 2004/11/26 13:26:44 jimmyo54 # Added --stdout-option to all programs.55 #56 # Revision 1.24 2004/11/21 14:39:23 jimmyo57 # Renamed function munin_get_val to munin_get.58 #59 # Revision 1.23 2004/11/16 20:00:44 jimmyo60 # License cleanups.61 #62 # Revision 1.22 2004/10/22 16:35:32 jimmyo63 # Don't read on a closed filehandle.64 #65 # Revision 1.21 2004/10/22 14:51:05 jimmyo66 # Minor bugfix.67 #68 # Revision 1.20 2004/10/22 14:48:21 jimmyo69 # Minor bugfix.70 #71 # Revision 1.19 2004/09/26 20:41:44 jimmyo72 # Treat long field names properly.73 #74 # Revision 1.18 2004/09/13 21:00:38 jimmyo75 # Added new config option "local_address", to specify which local address outgoing connections (from munin-update) should be used.76 #77 # Revision 1.17 2004/09/12 22:07:39 jimmyo78 # Munin-update adapts to field type changes (loss-free conversion from COUNTER->DERIVE et al.)79 #80 # Revision 1.16 2004/09/10 19:24:18 jimmyo81 # Added new option "graph_sums" which creates summarised graphs.82 #83 # Revision 1.15 2004/09/08 15:25:33 ilmari84 # Use @@PERL@@ in all perl shebang lines.85 #86 # Revision 1.14 2004/09/07 21:45:38 jimmyo87 # Changes of min and max values now causes corresponding changes in the RRD files.88 #89 # Revision 1.13 2004/09/04 21:33:13 jimmyo90 # Handle strange characters better.91 #92 # Revision 1.12 2004/08/31 18:12:59 jimmyo93 # Sanitise incoming field names a bit better.94 #95 # Revision 1.11 2004/08/31 18:11:04 jimmyo96 # Sanitise incoming field names a bit better.97 #98 # Revision 1.10 2004/05/20 20:47:19 jimmyo99 # The server programs now open the log file at an earlier point.100 #101 # Revision 1.9 2004/05/12 20:52:06 jimmyo102 # Turned -w on in munin-update103 #104 # Revision 1.8 2004/05/09 21:11:16 jimmyo105 # New plugin (pm3users) and a bunch of patches from Jacques Caruso.106 #107 # Revision 1.7 2004/02/10 19:27:02 jimmyo108 # Munin-update now properly ignores nodes with "update no".109 #110 # Revision 1.6 2004/01/30 14:28:19 jimmyo111 # More timeouts in munin-update (Deb#222674).112 #113 # Revision 1.5 2004/01/29 18:19:58 jimmyo114 # Made Munin compatible with perl 5.005_03 (patch by Lupe Christoph) (SF#884622)115 #116 # Revision 1.4 2004/01/29 17:40:10 jimmyo117 # Fixed pod typos patched by Lupe Christoph (SF#884092)118 #119 # Revision 1.3 2004/01/29 17:34:06 jimmyo120 # Updated copyright information121 #122 # Revision 1.2 2004/01/15 15:20:01 jimmyo123 # Making things workable after name change. Upping for test verwion.124 #125 # Revision 1.1 2004/01/02 18:50:01 jimmyo126 # Renamed occurrances of lrrd -> munin127 #128 # Revision 1.1.1.1 2004/01/02 15:18:08 jimmyo129 # Import of LRRD CVS tree after renaming to Munin130 #131 # Revision 1.35 2003/12/19 20:53:17 jimmyo132 # ChangeLog133 #134 # Revision 1.34 2003/12/12 21:40:34 jimmyo135 # Minor bugfix136 #137 # Revision 1.33 2003/12/12 19:23:59 jimmyo138 # Fix bug with timeout handling of children.139 #140 # Revision 1.32 2003/12/06 20:21:53 jimmyo141 # Removed forgotten debug info142 #143 # Revision 1.31 2003/12/06 20:09:17 jimmyo144 # Better handling of dying children and timeouts. (Deb#222674)145 #146 # Revision 1.30 2003/12/06 19:12:57 jimmyo147 # Added max_processes config variable. Also, removed zombie-generation code. :-P148 #149 # Revision 1.29 2003/11/15 11:10:29 jimmyo150 # Various fixes151 #152 # Revision 1.28 2003/11/12 12:04:45 jimmyo153 # Make sure extinfo comes accross154 #155 # Revision 1.27 2003/11/07 23:39:09 jimmyo156 # Filter out illegal chars157 #158 # Revision 1.26 2003/11/07 22:10:13 jimmyo159 # Changed use_default_name -> use_node_name. Better name.160 #161 # Revision 1.25 2003/11/07 21:02:24 jimmyo162 # Bugfix when a new node is unreachable.163 #164 # Revision 1.24 2003/11/07 20:46:12 jimmyo165 # Only require Config::General if using old config format.166 #167 # Revision 1.23 2003/11/07 17:43:16 jimmyo168 # Cleanups and log entries169 #170 #171 24 172 25 $|=1; … … 198 51 my $print_stdout = 0; 199 52 my $tls; 53 my %tls_verified = ( "level" => 0, "cert" => "", "verified" => 0, "required_depth" => 5 ); 200 54 201 55 my $log = new IO::Handle; … … 239 93 if ($do_version) 240 94 { 241 print "munin-update version $VERSION.\n"; 242 print "Written by Audun Ytterdal, Jimmy Olsen, Tore Anderson / Linpro AS\n"; 243 print "\n"; 244 print "Copyright (C) 2002-2004\n"; 245 print "This is free software released under the GNU Public License. There is NO\n"; 246 print "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"; 95 print <<"EOT"; 96 munin-update version $VERSION. 97 Written by Audun Ytterdal, Jimmy Olsen, Tore Anderson / Linpro AS 98 99 Copyright (C) 2002-2005 100 101 This is free software released under the GNU General Public License. There 102 is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 103 PURPOSE. For details, please refer to the file COPYING that is included 104 with this software or refer to 105 http://www.fsf.org/licensing/licenses/gpl.txt 106 EOT 247 107 exit 0; 248 108 } … … 345 205 my $oldnode = $children{$key}->[3]; 346 206 347 logger (" Child has unexpectedly died: $domain -> $name.");207 logger ("Reaping child: $domain -> $name."); 348 208 delete $children{$key}; 349 209 use_old_config ($domain, $name, $oldnode); … … 621 481 return if (exists ($node->{fetch_data}) and !$node->{fetch_data}); 622 482 return if (exists ($node->{update}) and $node->{update} ne "yes"); 483 unless ($node->{address}) { 484 logger("No address defined for node: $name"); 485 return; 486 } 623 487 624 488 # Then we fork... … … 722 586 } 723 587 &fetch_node($domain,$name,$node,$socket); 724 Net::SSLeay::free ($tls) if ($tls); # Shut down TLS588 # Net::SSLeay::free ($tls) if ($tls); # Shut down TLS 725 589 close $socket; 726 590 alarm (0); # Don't want to interrupt this. … … 746 610 next unless (&config_node($domain,$name,$node,$oldnode,$socket)); 747 611 &fetch_node($domain,$name,$node,$socket); 748 Net::SSLeay::free ($tls) if ($tls); # Shut down TLS612 # Net::SSLeay::free ($tls) if ($tls); # Shut down TLS 749 613 close $socket; 750 614 } … … 753 617 } 754 618 619 sub tls_verify_callback 620 { 621 my ($ok, $subj_cert, $issuer_cert, $depth, 622 $errorcode, $arg, $chain) = @_; 623 624 if ($tls_verified{"level"}++ > $tls_verified{"required_depth"}) 625 { 626 logger ("TLS Notice: Certificate verification failed at depth ".$tls_verified{"level"}."."); 627 return 1; 628 } 629 630 if ($ok) 631 { 632 $tls_verified{"verified"} = 1; 633 logger ("TLS Notice: Verified certificate.") if $DEBUG; 634 return 1; # accept 635 } 636 637 return 1; # accept anyway 638 } 639 755 640 sub start_tls { 756 my $socket = shift; 641 my $socket = shift; 642 my $tls_paranoia = shift; 643 my $tls_cert = shift; 644 my $tls_priv = shift; 645 my $tls_verify = shift; 646 my $tls_vdepth = shift; 647 757 648 my $ctx; 758 759 logger("Enabling TLS."); 649 my $err; 650 my $remote_key = 0; 651 652 %tls_verified = ( "level" => 0, "cert" => "", "verified" => 0, "required_depth" => $tls_vdepth ); 653 654 logger("Enabling TLS.") if $DEBUG; 760 655 if (! eval "require Net::SSLeay;") 761 656 { 762 657 logger ("Fatal: TLS enabled but Net::SSLeay unavailable."); 763 exit 2; 764 } 658 return 0; 659 } 660 661 # Init SSLeay 765 662 Net::SSLeay::load_error_strings(); 766 663 Net::SSLeay::SSLeay_add_ssl_algorithms(); … … 769 666 if (!$ctx) 770 667 { 771 logger ("Fatal: Could not create SSL_CTX"); 772 exit 11; 773 } 668 logger ("TLS Error: Could not create SSL_CTX"); 669 return 0; 670 } 671 672 # Tune a few things... 774 673 if (Net::SSLeay::CTX_set_options($ctx, &Net::SSLeay::OP_ALL)) 775 674 { 776 logger ("Fatal: Could not set SSL_CTX options"); 777 exit 12; 778 } 779 675 logger ("TLS Error: Could not set SSL_CTX options"); 676 return 0; 677 } 678 679 # Tell the node that we want TLS 780 680 write_socket_single ($socket, "STARTTLS\n"); 781 681 my $tlsresponse = read_socket_single ($socket); 782 if ($tlsresponse !~ /^200 /i) 783 { 784 logger ("Bad TLS response \"$tlsresponse\"."); 785 exit 13; 786 } 787 682 if (!defined $tlsresponse) 683 { 684 logger ("TLS Error: Bad TLS response \"\"."); 685 return 0 686 } 687 if ($tlsresponse =~ /^TLS OK/) 688 { 689 $remote_key = 1; 690 } 691 elsif ($tlsresponse !~ /^TLS MAYBE/i) 692 { 693 logger ("TLS Error: Bad TLS response \"$tlsresponse\"."); 694 return 0; 695 } 696 697 # Should we use a private key? 698 if (defined $tls_priv and length $tls_priv) 699 { 700 if (-e $tls_priv or $tls_paranoia eq "paranoid") 701 { 702 if (!Net::SSLeay::CTX_use_PrivateKey_file($ctx, $tls_priv, 703 &Net::SSLeay::FILETYPE_PEM)) 704 { 705 if ($tls_paranoia eq "paranoid") 706 { 707 logger ("TLS Error: Problem occured when trying to read file with private key \"$tls_priv\": $!"); 708 return 0; 709 } 710 else 711 { 712 logger ("TLS Notice: Problem occured when trying to read file with private key \"$tls_priv\": $!. Continuing without private key."); 713 } 714 } 715 } 716 else 717 { 718 logger ("TLS Notice: No key file \"$tls_priv\". Continuing without private key."); 719 } 720 } 721 722 # How about a certificate? 723 if (-e $tls_cert) 724 { 725 if (defined $tls_cert and length $tls_cert) 726 { 727 if (!Net::SSLeay::CTX_use_certificate_file($ctx, $tls_cert, 728 &Net::SSLeay::FILETYPE_PEM)) 729 { 730 logger ("TLS Warning: Problem occured when trying to read file with private key \"$tls_cert\": $!. Continuing without private key."); 731 } 732 } 733 } 734 else 735 { 736 logger ("TLS Notice: No certificate file \"$tls_cert\". Continuing without private key."); 737 } 738 739 # Now let's define our requirements of the node 740 $tls_vdepth = 5 if !defined $tls_vdepth; 741 Net::SSLeay::CTX_set_verify_depth ($ctx, $tls_vdepth); 742 $err = &Net::SSLeay::print_errs(); 743 if (defined $err and length $err) 744 { 745 logger ("TLS Warning in set_verify_depth: $err"); 746 } 747 Net::SSLeay::CTX_set_verify ($ctx, &Net::SSLeay::VERIFY_PEER, \&tls_verify_callback); 748 $err = &Net::SSLeay::print_errs(); 749 if (defined $err and length $err) 750 { 751 logger ("TLS Warning in set_verify: $err"); 752 } 753 754 # Create the local tls object 788 755 if (! ($tls = Net::SSLeay::new($ctx))) 789 756 { 790 logger ("Fatal: Could not create TLS: $!"); 791 exit 14; 792 } 757 logger ("TLS Error: Could not create TLS: $!"); 758 return 0; 759 } 760 if ($DEBUG) 761 { 762 my $i = 0; 763 my $p = ''; 764 my $cipher_list = 'Cipher list: '; 765 $p=Net::SSLeay::get_cipher_list($tls,$i); 766 $cipher_list .= $p if $p; 767 do { 768 $i++; 769 $cipher_list .= ', ' . $p if $p; 770 $p=Net::SSLeay::get_cipher_list($tls,$i); 771 } while $p; 772 $cipher_list .= '\n'; 773 logger ("TLS Notice: Available cipher list: $cipher_list."); 774 } 775 776 # Connect it to the local fd that munin-update will print to 793 777 Net::SSLeay::set_fd($tls, fileno($socket)); 794 795 my $res = Net::SSLeay::connect($tls) 778 $err = &Net::SSLeay::print_errs(); 779 if (defined $err and length $err) 780 { 781 logger ("TLS Error: Could not define encrypted fd: " . $err); 782 } 783 784 # Try to negotiate the tls connection 785 my $res; 786 if ($remote_key) 787 { 788 $res = Net::SSLeay::connect($tls); 789 } 790 else 791 { 792 $res = Net::SSLeay::accept($tls); 793 } 794 $err = &Net::SSLeay::print_errs(); 795 if (defined $err and length $err) 796 { 797 logger ("TLS Error: Could not enable TLS: " . $err); 798 Net::SSLeay::free ($tls); 799 Net::SSLeay::CTX_free ($ctx); 800 $tls = undef; 801 } 802 elsif (!$tls_verified{"verified"} and $tls_paranoia eq "paranoid") 803 { 804 logger ("TLS Error: Could not verify CA: " . Net::SSLeay::dump_peer_certificate($tls)); 805 write_socket_single ($tls, "quit\n"); 806 Net::SSLeay::free ($tls); 807 Net::SSLeay::CTX_free ($ctx); 808 $tls = undef; 809 } 810 else 811 { 812 logger ("TLS Notice: TLS enabled."); 813 logger ("TLS Notice: Cipher `" . Net::SSLeay::get_cipher($tls) . "'."); 814 logger ("TLS Notice: client cert: " . Net::SSLeay::dump_peer_certificate($tls)); 815 } 816 read_socket_single(); # Get rid of empty line 817 return $tls; 796 818 } 797 819 … … 804 826 local $SIG{ALRM} = sub { die "Could not run list on socket: $!\n"}; 805 827 alarm 5; 806 if ( $tls)828 if (defined $tls and $tls) 807 829 { 808 unless (Net::SSLeay::write($tls, $text)) 830 Net::SSLeay::write($tls, $text); 831 my $err = &Net::SSLeay::print_errs(); 832 if (defined $err and length $err) 809 833 { 810 logger (" Fatal: error during socket write: $!");834 logger ("TLS Warning in write_socket_single: $err"); 811 835 exit 9; 812 836 } 813 Net::SSLeay::print_errs('SSL_write');814 837 } 815 838 else … … 835 858 { 836 859 $res = Net::SSLeay::read($tls); 837 Net::SSLeay::print_errs('SSL_read'); 860 my $err = &Net::SSLeay::print_errs(); 861 if (defined $err and length $err) 862 { 863 logger ("TLS Warning in read_socket_single: $err"); 864 } 838 865 } 839 866 else … … 866 893 { 867 894 while (defined ($_ = Net::SSLeay::read($tls))) { 895 my $err = &Net::SSLeay::print_errs(); 896 if (defined $err and length $err) 897 { 898 logger ("TLS Warning in read_socket: $err"); 899 } 868 900 chomp; 869 Net::SSLeay::print_errs('SSL_read');870 901 last if (/^\.$/); 871 902 push @array,$_; … … 915 946 my $nodeconf_time = Time::HiRes::time; 916 947 917 if (&munin_get_bool ($config, "tls", undef, $domain, $name)) 948 my $tls_requirement = &munin_get ($config, "tls", "auto", $domain, $name); 949 logger ("TLS Debug: TLS set to \"$tls_requirement\".") if $DEBUG; 950 if ($tls_requirement ne "disabled") 918 951 { 919 start_tls ($socket); 952 my $key; 953 my $cert; 954 $key = $cert = munin_get ($config, "tls_pem", undef, $domain, $name); 955 $key = &munin_get ($config, "tls_private_key", "@@CONFDIR@@/munin.pem", $domain, $name) 956 unless defined $key; 957 $cert = &munin_get ($config, "tls_certificate", "@@CONFDIR@@/munin.pem", $domain, $name) 958 unless defined $cert; 959 if (!start_tls ($socket, $tls_requirement, $cert, $key, 960 &munin_get ($config, "tls_verify_certificate", undef, $domain, $name), 961 &munin_get ($config, "tls_verify_depth", 5, $domain, $name), 962 )) 963 { 964 if ($tls_requirement eq "paranoid" or $tls_requirement eq "enabled") 965 { 966 logger ("ERROR: Could not establish TLS connection to \"$domain :: $name\". Skipping."); 967 exit 13; 968 } 969 } 920 970 } 921 971 … … 927 977 write_socket_single ($socket, "list $fetchdomain\n"); 928 978 my $list = read_socket_single ($socket); 979 exit 1 unless defined $list; 929 980 chomp $list; 930 981 @services = split / /,$list; … … 947 998 $node->{client}->{$servname}->{fetch_data} == 0); 948 999 next if (exists ($node->{client}->{$servname}->{update}) and 949 !$node->{client}->{$servname}->{update} eq"yes");1000 $node->{client}->{$servname}->{update} ne "yes"); 950 1001 next if (@limit_services and !grep (/^$servname$/, @limit_services)); 951 1002 my @graph_order = (exists $node->{client}->{$servname}->{graph_order} ? … … 1004 1055 logger ("creating rrd-file for $servname->$subservice"); 1005 1056 mkdir "$config->{dbdir}/$domain/",0777; 1006 RRDs::create("$fname",1057 my @args = ("$fname", 1007 1058 "DS:42:".($node->{client}->{$servname}->{"$client.type"} || "GAUGE").":600:". 1008 1059 (defined $node->{client}->{$servname}->{"$client.min"} ? 1009 1060 $node->{client}->{$servname}->{"$client.min"} : 1010 "U") . ":" . ($node->{client}->{$servname}->{"$client.max"} || "U"), 1061 "U") . ":" . ($node->{client}->{$servname}->{"$client.max"} || "U")); 1062 my $resolution = &munin_get ($config, "graph_data_size", "normal", $domain, $node, $servname); 1063 if ($resolution eq "normal") 1064 { 1065 push (@args, 1011 1066 "RRA:AVERAGE:0.5:1:576", # resolution 5 minutes 1012 1067 "RRA:MIN:0.5:1:576", … … 1021 1076 "RRA:MIN:0.5:288:450", 1022 1077 "RRA:MAX:0.5:288:450"); 1078 } 1079 elsif ($resolution eq "huge") 1080 { 1081 push (@args, "RRA:AVERAGE:0.5:1:115200"); # resolution 5 minutes, for 400 days 1082 push (@args, "RRA:MIN:0.5:1:115200"); # Three times? ARGH! 1083 push (@args, "RRA:MAX:0.5:1:115200"); # Three times? ARGH! 1084 } 1085 RRDs::create @args; 1023 1086 if (my $ERROR = RRDs::error) { 1024 1087 logger ("Unable to create \"$fname\": $ERROR"); … … 1049 1112 $node->{client}->{$service}->{fetch_data} == 0); 1050 1113 next if (exists ($node->{client}->{$service}->{update}) and 1051 !$node->{client}->{$service}->{update} eq"yes");1114 $node->{client}->{$service}->{update} ne "yes"); 1052 1115 next if (@limit_services and !grep (/^$service$/, @limit_services)); 1053 1116 my $realservname = $node->{client}->{$service}->{realservname} || $service; … … 1112 1175 if (!$log->opened) 1113 1176 { 1114 unless (open ($log, ">>$dirname/munin- html.log"))1177 unless (open ($log, ">>$dirname/munin-update.log")) 1115 1178 { 1116 print STDERR "Warning: Could not open log file \"$dirname/munin- html.log\" for writing: $!";1179 print STDERR "Warning: Could not open log file \"$dirname/munin-update.log\" for writing: $!"; 1117 1180 } 1118 1181 } … … 1123 1186 my $now = strftime "%b %d %H:%M:%S", localtime; 1124 1187 1188 chomp ($comment); 1189 $comment =~ s/\n/\\n/g; 1125 1190 print "$now [$$] - $comment\n" if $print_stdout; 1126 1191 if ($log->opened) … … 1137 1202 print $log "$now - $comment\n"; 1138 1203 $log->flush; 1204 close (STDERR); 1205 open (STDERR, ">&", $log); 1139 1206 } 1140 1207 else people/ilmari/modularisation-branch/server/munin.conf.in
r864 r1012 22 22 # For those with Nagios, the following might come in handy. In addition, 23 23 # the services must be defined in the Nagios server as well. 24 #contact.nagios.command /usr/bin/send_nsca nagios.host.comm -c /etc/nsca.conf >/dev/null24 #contact.nagios.command /usr/bin/send_nsca nagios.host.comm -c /etc/nsca.conf 25 25 26 26 # a simple host tree
