How to add service in nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
cesar.garza
Posts: 80
Joined: Mon Aug 19, 2013 3:14 pm

How to add service in nagios

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: How to add service in nagios

Post 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
Locked