Tuesday, 8 March 2016

Add Website In Nagios

define service{
        use                             generic-service         ; Name of service template to use
        host_name                       www.experiencesilk.com
        service_description             PING
        normal_check_interval           15
        check_command                   check_ping!1000,40%!3000,80%
        }

define service{
        use                             generic-service
        host_name                       www.experiencesilk.com
        service_description             CONTENT_CHECK
        check_command                   check_http_content!www.experiencesilk.com!/home.php?fl=1!India
        }



For Example:

http://www.analyseindia.com/analyseindia/testPager.jsp

http://experiencesilk.com/home.php


#define service{
#        use                             generic-service
#        host_name                       mtv.in.com-curiousminds
#        service_description             CONTENT_CHECK
#        check_command                   check_http!-H www.mtv.in.com -u "/curiousminds/index.php" -f follow -s "Curious"
#        }

define service{
        use                             generic-service
        host_name                       mtv.in.com-curiousminds
        service_description             CONTENT_CHECK
        check_command                   check_http_content!www.mtv.in.com!/curiousminds/index.php?fl=1!Curious
        }

No comments: