Tuesday, August 2, 2016

Add URl In Nagios Monitoring

Add URl In Nagios Monitoring


1) /usr/local/nagios/etc/objects/linux-servers/ALL_URL

2) Create file for monitoring & if your want host group separately create host file

3) but before set call URl from curl command & check output & set strings

4) /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg --- to check string

5) /etc/init.d/nagios reload ------------------------------------------reload the Nagios service

6) Check Nagios pending alerts
------------------------------------------------------------------------------------------------------------------
define host{       
         use    linux-server ; Inherit default values from a template
         host_name       m.paytm_URL  ; The name we're giving to this server
         alias                    m. paytm _dummy ; A longer name for the server
         address            m. paytm ; IP address of the server
        check_interval                  5
        retry_interval                  1
        max_check_attempts              5
        check_period                    24x7
        process_perf_data               0
        retain_nonstatus_information    0
        notification_interval           30
        notification_period             24x7
        notification_options            d,u,r
       check_command     check_dummy
}


define service{
    use                      local-service ; generic-services
    host_name                m. paytm _URL
    service_description      Test http://201.29.10.200/paytm /index.php
    is_volatile              0
    check_period             24x7
    max_check_attempts       3
    normal_check_interval    1
    retry_check_interval     1
    notification_interval    120
    notification_period      24x7
    notification_options     w,u,c,r
    check_command            check_curl!http://201.29.10.200/paytm/index.php
}
 -------------------------------------------------------------------------------------------------------------------------



No comments:

Post a Comment