-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
127 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
lib/cloudstack-nagios/templates/cloudstack_system_vm_hosts.cfg.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<% system_vms.each do |vm| -%> | ||
<% if vm['privateip'] -%> | ||
define host { | ||
host_name <%= vm['name'] %> | ||
display_name <%= vm['name'] %> (<%= vm['privateip'] %>) - <%= vm['zonename'] %> | ||
address <%= vm['privateip'] %> | ||
use Linux-Host,host-pnp | ||
hostgroups CloudstackSystemVm | ||
check_command check-host-alive | ||
register 1 | ||
} | ||
|
||
<% end -%> | ||
<% end -%> |
84 changes: 84 additions & 0 deletions
84
lib/cloudstack-nagios/templates/cloudstack_system_vm_services.cfg.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
|
||
define command { | ||
command_name cs-nagios_check_systemvm-memory | ||
command_line <%= bin_path -%>cs-nagios check system_vm memory -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ --ssh-key <%= ssh_key %> --ssh-port <%= ssh_port %> --config <%= config_file %> | ||
register 1 | ||
} | ||
|
||
define command { | ||
command_name cs-nagios_check_systemvm-cpu | ||
command_line <%= bin_path -%>cs-nagios check system_vm cpu -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ --ssh-key <%= ssh_key %> --ssh-port <%= ssh_port %> --config <%= config_file %> | ||
register 1 | ||
} | ||
|
||
define command { | ||
command_name cs-nagios_check_systemvm-network | ||
command_line <%= bin_path -%>cs-nagios check system_vm network -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ --if-speed <%= if_speed %> --ssh-key <%= ssh_key %> --ssh-port <%= ssh_port %> --config <%= config_file %> | ||
register 1 | ||
} | ||
|
||
define command { | ||
command_name cs-nagios_check_systemvm-fsrw | ||
command_line <%= bin_path -%>cs-nagios check system_vm fs_rw -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ --ssh-key <%= ssh_key %> --ssh-port <%= ssh_port %> --config <%= config_file %> | ||
register 1 | ||
} | ||
|
||
define command { | ||
command_name cs-nagios_check_systemvm-diskusage | ||
command_line <%= bin_path -%>cs-nagios check system_vm disk_usage -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -P $ARG3$ --ssh-key <%= ssh_key %> --ssh-port <%= ssh_port %> --config <%= config_file %> | ||
register 1 | ||
} | ||
|
||
define service { | ||
hostgroup_name CloudstackSystemVm | ||
service_description Cloudstack Virtual System VM Memory | ||
display_name Cloudstack Virtual System VM Memory | ||
use Generic-Service,service-pnp | ||
check_command cs-nagios_check_systemvm-memory!80!90 | ||
register 1 | ||
} | ||
|
||
define service { | ||
hostgroup_name CloudstackSystemVm | ||
service_description Cloudstack Virtual System VM CPU | ||
display_name Cloudstack Virtual System VM CPU | ||
use Generic-Service,service-pnp | ||
check_command cs-nagios_check_systemvm-cpu!80!90 | ||
register 1 | ||
} | ||
|
||
define service { | ||
hostgroup_name CloudstackSystemVm | ||
service_description Cloudstack Virtual System VM Network | ||
display_name Cloudstack Virtual System VM Network | ||
use Generic-Service,service-pnp | ||
check_command cs-nagios_check_systemvm-network!80!90 | ||
register 1 | ||
} | ||
|
||
define service { | ||
hostgroup_name CloudstackSystemVm | ||
service_description Cloudstack Virtual System VM RootFS rw | ||
display_name Cloudstack Virtual System VM RootFS rw | ||
use Generic-Service,service-pnp | ||
check_command cs-nagios_check_systemvm-rootfsrw!80!90 | ||
register 1 | ||
} | ||
|
||
define service { | ||
hostgroup_name CloudstackSystemVm | ||
service_description Cloudstack Virtual System VM DiskUsageRoot | ||
display_name Cloudstack Virtual System VM DiskUsage Root | ||
use Generic-Service,service-pnp | ||
check_command cs-nagios_check_systemvm-diskusage!80!90!/ | ||
register 1 | ||
} | ||
|
||
define service { | ||
hostgroup_name CloudstackSystemVm | ||
service_description Cloudstack Virtual System VMDiskUsageVar | ||
display_name Cloudstack Virtual System VM DiskUsage Var | ||
use Generic-Service,service-pnp | ||
check_command cs-nagios_check_systemvm-diskusage!80!90!/var | ||
register 1 | ||
} |