Page 1 of 1

How to add service in nagios

Posted: Mon Aug 19, 2013 4:14 pm
by cesar.garza
Hi, I am not sure is this the right place to post the thread or not.
I want to add two different customize services (Queue Processor and Handle Manager). they both are running in my IIS servers. So far what i did, I added these

----- Services_nagios2.cfg -----

define service {
hostgroup_name dev-watch_dog
service_description Handle Manager Service
check_command check_handlemanagerservice
use generic-service
notification_interval 0
}

define service {
hostgroup_name dev-watch_dog
service_description Queue Processor Service
check_command check_queueprocessservice
use generic-service
notification_interval 0
}

----- Hostgroups_nagios2.cfg -----

define hostgroup {
hostgroup_name dev-watch_dog
alias Dev. Watch Dog
members dev-handlemanager, dev-queueprocessor
}

----- created dev-queueprocessor.cfg / dev-handlemanager.cfg -----

define host{
use generic-host ; Name of host template to use
host_name dev-queueprocessor
alias dev-queueprocessor
address 10.10.10.10
}

define service{
use generic-service ; Name of service template to use
host_name localhost
service_description Queue Processor
check_command check_queueprocessservice
}

same configuration with dev-handlemanager.cfg. When i restart the nagios service, i get errors. please let me know what should i do to make these service monitor. Do i need to add the configuration in the commands.cfg ???

thanks

Re: How to add service in nagios

Posted: Mon Aug 19, 2013 4:42 pm
by slansing
Well we first need to know what errors you get when you run the configuration verification and restart. That will most likely point to the issue right away.

http://nagios.sourceforge.net/docs/3_0/ ... onfig.html