diff options
Diffstat (limited to 'sitesummary-nodes')
-rwxr-xr-x | sitesummary-nodes | 87 |
1 files changed, 74 insertions, 13 deletions
diff --git a/sitesummary-nodes b/sitesummary-nodes index 64a8e36..0f1b5f3 100755 --- a/sitesummary-nodes +++ b/sitesummary-nodes @@ -123,9 +123,21 @@ define host { define service { use server-service host_name $hostname - service_description PING + service_description ping check_command check_ping!100.0,20%!500.0,60% } +define service { + use server-service + host_name $hostname + service_description swap + check_command check_swap!10%!5% +} +define service { + use server-service + host_name $hostname + service_description zombie procs + check_command check_procs_zombie!20!100 +} EOF # check disk free space @@ -158,7 +170,7 @@ EOF define service { use server-service host_name $hostname - service_description Disk $partition + service_description disk $partition check_command check_disk!$warn%!$crit%!$partition } EOF @@ -168,10 +180,11 @@ EOF my %tcpservices = ( 139 => { name => 'samba', package => 'samba' }, + 389 => { name => 'ldap', package => 'slapd' }, 631 => { name => 'CUPS', package => 'cupsys' }, 636 => { name => 'ldaps', package => 'slapd' }, - 3128 => { name => 'squid', package => 'squid' }, -# 10000 => { name => 'webmin', package => 'webmin' }, + 4949 => { name => 'munin', package => 'munin-node' }, + 7100 => { name => 'xfs', package => 'xfs' }, # check X font server ); for my $port (sort { $a <=> $b } keys %tcpservices) { @@ -188,19 +201,67 @@ define service { } EOF } + # check software raid status + if ( -e get_filepath_current($hostid, "/system/mdstat") ) { + print <<EOF; +define service { + use server-service + host_name $hostname + service_description sw-raid + check_command check_linux_raid +} +EOF + } + # check munin if munin-node is installed - # check hw and sw raid status + # check hw raid status # check hardware status - # check free swap - # check X font server - # check LDAP - # check DNS + + # check LDAP and LDAPS using the protocol + + # Check DNS server + print <<EOF if is_pkg_installed($hostid, "pdns-server"); +define service { + use server-service + host_name $hostname + service_description dns + check_command check_dns +} +EOF + # Check IMAPS server + print <<EOF if is_pkg_installed($hostid, "courier-imap-ssl"); +define service { + use server-service + host_name $hostname + service_description imaps + check_command check_imaps +} +EOF + # Check NFS server + print <<EOF if is_pkg_installed($hostid, "nfs-kernel-server"); +define service { + use server-service + host_name $hostname + service_description nfs + check_command check_nfs +} +EOF + # Check Squid web proxy + print <<EOF if is_pkg_installed($hostid, "squid"); +define service { + use server-service + host_name $hostname + service_description squid + check_command check_squid!3128!http://www + +} +EOF # Check SSH server print <<EOF if is_pkg_installed($hostid, "openssh-server"); define service { use server-service host_name $hostname - service_description SSH + service_description ssh check_command check_ssh } EOF @@ -208,7 +269,7 @@ EOF define service { use server-service host_name $hostname - service_description HTTP + service_description http check_command check_http } EOF @@ -217,7 +278,7 @@ EOF define service { use server-service host_name $hostname - service_description Time server NTP + service_description ntp time server check_command check_ntp!-H!localhost } EOF @@ -226,7 +287,7 @@ EOF define service { use server-service host_name $hostname - service_description Load as in top + service_description load as in top check_command check_load!75,75,75!90,90,90 } EOF |