Home tmade.de

Home Wiki

ICINGA

rcicinga checkconfig                              #Execute to check syntax of scripts/ services/ checks
rcicinga reload                                   #Reload service

Commands

command[check_disk_all]=/usr/lib64/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -l -A -e -i '.gvfs' -i '/sys/kernel/debug/tracing' -i '/var/named/chroot/' 

Example Config

Service:

define service{
        host_name               test_host,test_host2,test_host3
        #hostgroup_name		hostgroup_name                               #If a group has to be referenced, instead a hostname or several hostnames
        service_description     MySQL
        check_command           check_mysql!nrpe!12345
        max_check_attempts      3
        normal_check_interval   5
        retry_check_interval    1
        check_period            24x7
        notification_interval   10
#        notification_period     24x7
        notification_period     sleep_test_host
        notification_options    w,u,c,r,f
        contact_groups          localadmins,helpdesk,another_contact

}
check_mysql                                      #Executed on monitored-system
check_nrpe                                       #Executed on Icinga/ Nagios-host

Escalation

“service_description” is the variable or group to check, if the service will be escalated:

service_description             HTTP Content

See also: http://www.nagios-wiki.de

monitoring/icinga.txt · Last modified: 2019/12/02 10:05 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki