[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a
Naparuba
naparuba at gmail.com
Tue Feb 28 22:11:40 UTC 2012
The following commit has been merged in the debian/master branch:
commit d2593857185099672b7dcdf3bfe254d81adb515e
Author: Naparuba <naparuba at gmail.com>
Date: Tue Jan 3 15:54:47 2012 +0100
Add : windows template.
diff --git a/etc/packs/windows/big_processes.cfg b/etc/packs/windows/big_processes.cfg
new file mode 100644
index 0000000..70397cf
--- /dev/null
+++ b/etc/packs/windows/big_processes.cfg
@@ -0,0 +1,7 @@
+define service{
+ service_description BigProcesses
+ use generic-service
+ register 0
+ host_name windows
+ check_command check_windows_big_processes
+}
diff --git a/etc/packs/windows/commands.cfg b/etc/packs/windows/commands.cfg
new file mode 100644
index 0000000..59e27d8
--- /dev/null
+++ b/etc/packs/windows/commands.cfg
@@ -0,0 +1,90 @@
+# All windows commands are using the check_wmi_plus.pl plugin. Install it with the shinken.sh script.
+# You will also need to update the _domainuser _domainpassword macros of your host if it's specific,
+# or the defaults values in the etc/shinken/resources.cfg file for global ones.
+
+# Will check all windows disks. -o means the perfdata will be whith E: and not names
+# and -3 is for printong in output bad states first
+define command {
+ command_name check_windows_disks
+ command_line $PLUGINSDIR$/check_wmi_plus.pl -H $HOSTADDRESS$ -u "$_HOSTDOMAINUSER$" -p "$_HOSTDOMAINPASSWORD$" -m checkdrivesize -a '.' -w 90 -c 95 -o 0 -3 0
+}
+
+
+# Will look for the $ARG1$ (check_windows_eventlogs!application for example) log for at least Severity Level "Warning", were
+# recorded in the last 1 hours
+define command {
+ command_name check_windows_eventlogs
+ command_line $PLUGINSDIR$/check_wmi_plus.pl -H $HOSTADDRESS$ -u "$_HOSTDOMAINUSER$" -p "$_HOSTDOMAINPASSWORD$" -m checkeventlog -a $ARG1$ -o 2 -3 1 -w 1 -c 2
+}
+
+
+# Look for a recent reboot
+define command {
+ command_name check_windows_reboot
+ command_line $PLUGINSDIR$/check_wmi_plus.pl -H $HOSTADDRESS$ -u "$_HOSTDOMAINUSER$" -p "$_HOSTDOMAINPASSWORD$" -m checkuptime -w '5min:' -c '15min:'
+}
+
+# Look for the physical memory
+define command {
+ command_name check_windows_physical_memory
+ command_line $PLUGINSDIR$/check_wmi_plus.pl -H $HOSTADDRESS$ -u "$_HOSTDOMAINUSER$" -p "$_HOSTDOMAINPASSWORD$" -m checkmem -w 80 -c 90
+}
+
+# And look for swap
+define command {
+ command_name check_windows_swap
+ command_line $PLUGINSDIR$/check_wmi_plus.pl -H $HOSTADDRESS$ -u "$_HOSTDOMAINUSER$" -p "$_HOSTDOMAINPASSWORD$" -m checkpage -a auto
+}
+
+
+# Look for overall CPU
+define command {
+ command_name check_windows_overall_cpu
+ command_line $PLUGINSDIR$/check_wmi_plus.pl -H $HOSTADDRESS$ -u "$_HOSTDOMAINUSER$" -p "$_HOSTDOMAINPASSWORD$" -m checkcpu -w 80 -c 90
+}
+
+# And for each CPU
+define command {
+ command_name check_windows_each_cpu
+ command_line $PLUGINSDIR$/check_wmi_plus.pl -H $HOSTADDRESS$ -u "$_HOSTDOMAINUSER$" -p "$_HOSTDOMAINPASSWORD$" -m checkeachcpu -w 80 -c 90
+}
+
+# Somelike load average
+# Check 20times as quick as possible
+define command {
+ command_name check_windows_loadaverage
+ command_line $PLUGINSDIR$/check_wmi_plus.pl -H $HOSTADDRESS$ -u "$_HOSTDOMAINUSER$" -p "$_HOSTDOMAINPASSWORD$" -m checkcpuq -w 10 -c 20 -a 20 -y 0
+}
+
+
+# Auto services are started
+define command {
+ command_name check_windows_auto_services
+ command_line $PLUGINSDIR$/check_wmi_plus.pl -H $HOSTADDRESS$ -u "$_HOSTDOMAINUSER$" -p "$_HOSTDOMAINPASSWORD$" -m checkservice -a Auto -o '' -w 0 -c 1
+}
+
+# Will warn for a >25% CPU process
+define command {
+ command_name check_windows_big_processes
+ command_line $PLUGINSDIR$/check_wmi_plus.pl -H $HOSTADDRESS$ -u "$_HOSTDOMAINUSER$" -p "$_HOSTDOMAINPASSWORD$" -m checkproc -s cpuabove -a '%' -w 25 -exc _AvgCPU=@0:2 --nodataexit 0 --nodatastring "No processes with high CPU found"
+}
+
+
+# Will warn for a >25% CPU process that we give it the name
+# like check_windows_big_process!firefox
+define command {
+ command_name check_windows_big_process
+ command_line $PLUGINSDIR$/check_wmi_plus.pl -H $HOSTADDRESS$ -u "$_HOSTDOMAINUSER$" -p "$_HOSTDOMAINPASSWORD$" -m checkproc -s cpu -a '$ARG1$' --nodatamode
+}
+
+# Look for disks I/Os
+define command {
+ command_name check_windows_disks_io
+ command_line $PLUGINSDIR$/check_wmi_plus.pl -H $HOSTADDRESS$ -u "$_HOSTDOMAINUSER$" -p "$_HOSTDOMAINPASSWORD$" -m checkio -s logical -a '%'
+}
+
+# Look for too much inactive TS sessions. 0 or 1 is ok, 2 or more is warning
+define command {
+ command_name check_windows_inactive_ts_sessions
+ command_line $PLUGINSDIR$/check_wmi_plus.pl -H $HOSTADDRESS$ -u "$_HOSTDOMAINUSER$" -p "$_HOSTDOMAINPASSWORD$" -m checkts -s sessions2003 -w 'InactiveSessions=0:1'
+}
diff --git a/etc/packs/windows/cpu.cfg b/etc/packs/windows/cpu.cfg
new file mode 100644
index 0000000..92f1ffd
--- /dev/null
+++ b/etc/packs/windows/cpu.cfg
@@ -0,0 +1,7 @@
+define service{
+ service_description Cpu
+ use generic-service
+ register 0
+ host_name windows
+ check_command check_windows_overall_cpu
+}
diff --git a/etc/packs/windows/disks.cfg b/etc/packs/windows/disks.cfg
new file mode 100644
index 0000000..3d242b3
--- /dev/null
+++ b/etc/packs/windows/disks.cfg
@@ -0,0 +1,7 @@
+define service{
+ name Disks
+ use generic-service
+ register 0
+ host_name windows
+ check_command check_windows_disks
+}
diff --git a/etc/packs/windows/disks_io.cfg b/etc/packs/windows/disks_io.cfg
new file mode 100644
index 0000000..f360f27
--- /dev/null
+++ b/etc/packs/windows/disks_io.cfg
@@ -0,0 +1,7 @@
+define service{
+ service_description DisksIO
+ use generic-service
+ register 0
+ host_name windows
+ check_command check_windows_disks_io
+}
diff --git a/etc/packs/windows/each_cpu.cfg b/etc/packs/windows/each_cpu.cfg
new file mode 100644
index 0000000..cf34004
--- /dev/null
+++ b/etc/packs/windows/each_cpu.cfg
@@ -0,0 +1,7 @@
+define service{
+ service_description Cpu
+ use generic-service
+ register 0
+ host_name windows
+ check_command check_windows_each_cpu
+}
diff --git a/etc/packs/windows/eventlogs_applications.cfg b/etc/packs/windows/eventlogs_applications.cfg
new file mode 100644
index 0000000..efc3ccc
--- /dev/null
+++ b/etc/packs/windows/eventlogs_applications.cfg
@@ -0,0 +1,7 @@
+define service{
+ name EventLogSystem
+ use generic-service
+ register 0
+ host_name windows
+ check_command check_windows_eventlogs!application
+}
diff --git a/etc/packs/windows/eventlogs_system.cfg b/etc/packs/windows/eventlogs_system.cfg
new file mode 100644
index 0000000..7e927a7
--- /dev/null
+++ b/etc/packs/windows/eventlogs_system.cfg
@@ -0,0 +1,7 @@
+define service{
+ name EventLogSystem
+ use generic-service
+ register 0
+ host_name windows
+ check_command check_windows_eventlogs!system
+}
diff --git a/etc/packs/windows/inactive_sessions.cfg b/etc/packs/windows/inactive_sessions.cfg
new file mode 100644
index 0000000..e4f6506
--- /dev/null
+++ b/etc/packs/windows/inactive_sessions.cfg
@@ -0,0 +1,7 @@
+define service{
+ service_description InactiveSessions
+ use generic-service
+ register 0
+ host_name windows
+ check_command check_windows_inactive_ts_sessions
+}
diff --git a/etc/packs/windows/load_average.cfg b/etc/packs/windows/load_average.cfg
new file mode 100644
index 0000000..93808c2
--- /dev/null
+++ b/etc/packs/windows/load_average.cfg
@@ -0,0 +1,7 @@
+define service{
+ service_description LoadAverage
+ use generic-service
+ register 0
+ host_name windows
+ check_command check_windows_loadaverage
+}
diff --git a/etc/packs/windows/physical_memory.cfg b/etc/packs/windows/physical_memory.cfg
new file mode 100644
index 0000000..a387c9a
--- /dev/null
+++ b/etc/packs/windows/physical_memory.cfg
@@ -0,0 +1,7 @@
+define service{
+ service_description PhysicalMemory
+ use generic-service
+ register 0
+ host_name windows
+ check_command check_windows_physical_memory
+}
diff --git a/etc/packs/windows/reboot.cfg b/etc/packs/windows/reboot.cfg
new file mode 100644
index 0000000..1b35b8a
--- /dev/null
+++ b/etc/packs/windows/reboot.cfg
@@ -0,0 +1,7 @@
+define service{
+ service_description Reboot
+ use generic-service
+ register 0
+ host_name windows
+ check_command check_windows_reboot
+}
diff --git a/etc/packs/windows/services.cfg b/etc/packs/windows/services.cfg
new file mode 100644
index 0000000..9f66dd0
--- /dev/null
+++ b/etc/packs/windows/services.cfg
@@ -0,0 +1,7 @@
+define service{
+ service_description Services
+ use generic-service
+ register 0
+ host_name windows
+ check_command check_windows_auto_services
+}
diff --git a/etc/packs/windows/swap.cfg b/etc/packs/windows/swap.cfg
new file mode 100644
index 0000000..0371bb3
--- /dev/null
+++ b/etc/packs/windows/swap.cfg
@@ -0,0 +1,7 @@
+define service{
+ service_description Swap
+ use generic-service
+ register 0
+ host_name windows
+ check_command check_windows_swap
+}
diff --git a/etc/packs/windows/templates.cfg b/etc/packs/windows/templates.cfg
new file mode 100644
index 0000000..620016c
--- /dev/null
+++ b/etc/packs/windows/templates.cfg
@@ -0,0 +1,12 @@
+# Windows template. Came with some custom macros
+
+define host{
+ name windows
+ use generic-host
+ register 0
+
+ # Macros. If not overload, it will use the etc/shinken/resources.cfg one
+ _DOMAINUSER $DOMAINUSER$
+ _DOMAINPASSWORD $DOMAINPASSWORD$
+
+}
--
UNNAMED PROJECT
More information about the Pkg-nagios-changes
mailing list