diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-09-08 19:31:44 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-09-08 19:33:12 +0100 |
commit | 3a363f9b2ea3509da0b5a9ed4137230f0cc2d1cc (patch) | |
tree | 50d62923b509afb584c1748c6d893e8287adeebf | |
parent | Use /tmp for Nagios temp files (diff) | |
download | config-3a363f9b2ea3509da0b5a9ed4137230f0cc2d1cc.tar.bz2 config-3a363f9b2ea3509da0b5a9ed4137230f0cc2d1cc.tar.xz config-3a363f9b2ea3509da0b5a9ed4137230f0cc2d1cc.zip |
Add service Nagios graph action URLs
-rw-r--r-- | nagios/objects/cluster.cfg | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nagios/objects/cluster.cfg b/nagios/objects/cluster.cfg index f6c9ba9..f54e75a 100644 --- a/nagios/objects/cluster.cfg +++ b/nagios/objects/cluster.cfg @@ -74,66 +74,77 @@ define service { hostgroup_name linux-servers service_description PING check_command check_ping!100.0,20%!500.0,60% + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=rta%2Cdata&geom=800x180 } define service { use remote-service hostgroup_name linux-servers service_description Current Load check_command check_load + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=load5%2Cdata&geom=800x180 } define service { use remote-service hostgroup_name linux-servers service_description Current Users check_command check_users + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=users%2Cdata&geom=800x180 } define service { use remote-service hostgroup_name linux-servers service_description Total Processes check_command check_procs + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=procs%2Cdata&geom=800x180 } define service { use remote-service hostgroup_name linux-servers service_description Swap Usage check_command check_swap!20 + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=swap%2Cdata&geom=800x180 } define service { use remote-service hostgroup_name linux-servers service_description Root Volume check_command check_disk!15%!10%!/ + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=/%2Cdata&geom=800x180 } define service { use remote-service hostgroup_name linux-servers service_description PostgreSQL Volume check_command check_disk!20%!10%!/var/lib/postgresql/ + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=/var/lib/postgresql%2Cdata&geom=800x180 } define service { use remote-service hostgroup_name linux-servers service_description MySQL Volume check_command check_disk!20%!10%!/var/lib/mysql/ + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=/var/lib/mysql%2Cdata&geom=800x180 } define service { use remote-service hostgroup_name linux-servers service_description Portage Volume check_command check_disk!10%!5%!/usr/portage/ + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=/usr/portage%2Cdata&geom=800x180 } define service { use remote-service hostgroup_name linux-servers service_description Portage Repo check_command check_file_age!/usr/portage/.git/FETCH_HEAD + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=age%2Cdata&geom=800x180 } define service { use remote-service hostgroup_name linux-servers service_description Apache access check_command check_file_age!/var/log/apache2/access.log + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=age%2Cdata&geom=800x180 } define service { use remote-service @@ -154,6 +165,7 @@ define service { host_name defiant service_description Store Volume check_command check_disk!10000!5000!/var/store/ + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=/var/store%2Cdata&geom=800x180 } define service { use remote-service @@ -166,12 +178,14 @@ define service { host_name defiant service_description MythTV Volume check_command check_disk!10%!5%!/var/store/mythrecordings/ + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=/var/store/mythrecordings%2Cdata&geom=800x180 } define service { use remote-service hostgroup_name linux-servers service_description Cache Volume check_command check_disk!10%!5%!/var/cache/ + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=/var/cache%2Cdata&geom=800x180 } define service { use remote-service @@ -211,6 +225,7 @@ define service { hostgroup_name linux-servers service_description SSH check_command check_ssh + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=time%2Cdata&geom=800x180 } define service { use local-service @@ -223,6 +238,7 @@ define service { host_name virtualip service_description PostgreSQL replication check_command check_pg_repl + action_url /nagiosgraph/cgi-bin/showservice.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&geom=800x170&expand_period=day,week,month,year&period=day,week,month,year } define service { use local-service @@ -235,42 +251,49 @@ define service { hostgroup_name linux-servers service_description NetFS check_command check_ice!4000!Service + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=Service%2Cdata&geom=800x180 } define service { use local-service hostgroup_name linux-servers service_description NetFS-GitFS check_command check_ice!5000!Service + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=Service%2Cdata&geom=800x180 } define service { use local-service hostgroup_name linux-servers service_description GB API check_command check_ice!9001!portage!users!maintenance + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=users%2Cdata&db=portage%2Cdata&db=maintenance%2Cdata&geom=800x180 } define service { use local-service hostgroup_name linux-servers service_description MirrorSearch API check_command check_ice!9002!Search + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=Search%2Cdata&geom=800x180 } define service { use local-service hostgroup_name linux-servers service_description LDAP check_command check_ldap + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=time%2Cdata&geom=800x180 } define service { use local-service hostgroup_name linux-servers service_description NTP time check_command check_ntp + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=offset%2Cdata&geom=800x180 } define service { use local-service hostgroup_name linux-servers service_description DNS check_command check_dns + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=time%2Cdata&geom=800x180 } define service { use local-service @@ -329,6 +352,7 @@ define service { hostgroup_name linux-servers service_description Squid check_command check_tcp!8080 + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=time%2Cdata&geom=800x180 } define service { use remote-service @@ -367,18 +391,21 @@ define service { host_name virtualip service_description Git Volume check_command check_disk!20%!10%!/var/git/ + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=/var/git%2Cdata&geom=800x180 } define service { use remote-service host_name virtualip service_description Home Volume check_command check_disk!20%!10%!/home/ + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=/home%2Cdata&geom=800x180 } define service { use remote-service host_name virtualip service_description WWW Volume check_command check_disk!20%!10%!/var/www/shared/ + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=/var/www/shared%2Cdata&geom=800x180 } # @@ -389,30 +416,35 @@ define service { host_name virtualipin service_description HA Proxy stats check_command check_tcp!9000 + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=time%2Cdata&geom=800x180 } define service { use local-service host_name virtualipin service_description HTTPS check_command check_https + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=time%2Cdata&geom=800x180 } define service { use local-service host_name virtualipin service_description HTTP check_command check_http + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=time%2Cdata&geom=800x180 } define service { use local-service host_name virtualipin service_description SMTP check_command check_smtp + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=time%2Cdata&geom=800x180 } define service { use local-service host_name virtualipin service_description IMAPS check_command check_simap + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=time%2Cdata&geom=800x180 } define service { use local-service @@ -441,14 +473,17 @@ define service { use passive-service host_name firebrand service_description GB API Package Updates + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&geom=800x180 } define service { use passive-service host_name firebrand service_description GB API Bug Updates + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&geom=800x180 } define service { use passive-service host_name virtualip service_description Backup Volume + action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=/var/backup%2Cdata&geom=800x180 } |