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.
Your contacts.cfg is in another directory, but I can't tell where it should be because you didn't upload your nagios.cfg. If you'd prefer to PM it, that will work. Just make sure you update this thread after you PM it.
Note:
If you apply a contact/contactgroup to the host they will automatically be able to view all services attached to that host, this is by design, if you do not want a user to see all services you will only be able to add the contact/contactgroups on the services and NOT on the host.
dwhitfield wrote:Your contacts.cfg is in another directory, but I can't tell where it should be because you didn't upload your nagios.cfg. If you'd prefer to PM it, that will work. Just make sure you update this thread after you PM it.
drwxrwxr-x. 2 nagios nagios 4096 Dec 5 20:04 .
drwxrwxr-x. 8 nagios nagios 4096 Dec 12 23:22 ..
-rw-rw-r--. 1 nagios nagios 10862 Dec 5 22:03 commands.cfg
-rw-rw-r--. 1 nagios nagios 7688 May 26 2016 commands.cfg~
-rw-rw-r--. 1 nagios nagios 2711 Dec 13 00:11 contacts.cfg
-rw-rw-r--. 1 nagios nagios 2138 May 26 2016 contacts.cfg~
-rw-r--r--. 1 root root 972 Dec 12 23:22 hostgroup.cfg
-rw-rw-r--. 1 nagios nagios 5375 May 26 2016 localhost.cfg
-rw-rw-r--. 1 nagios nagios 5375 May 26 2016 localhost.cfg~
-rw-rw-r--. 1 nagios nagios 3096 May 26 2016 printer.cfg
-rw-rw-r--. 1 nagios nagios 3096 May 26 2016 printer.cfg~
-rw-rw-r--. 1 nagios nagios 3265 May 26 2016 switch.cfg
-rw-rw-r--. 1 nagios nagios 3265 May 26 2016 switch.cfg~
-rw-rw-r--. 1 nagios nagios 20903 Dec 13 00:05 templates.cfg
-rw-rw-r--. 1 nagios nagios 10621 May 26 2016 templates.cfg~
-rw-rw-r--. 1 nagios nagios 3180 May 26 2016 timeperiods.cfg
-rw-rw-r--. 1 nagios nagios 3180 May 26 2016 timeperiods.cfg~
-rw-rw-r--. 1 nagios nagios 3991 May 26 2016 windows.cfg
-rw-rw-r--. 1 nagios nagios 3991 May 26 2016 windows.cfg~
but i don't know what do i have to add in contact.cfg file and what do i have to add in other files for that babak can see specific host or service
please write an example
define host{
use windows-server ; Inherit default values from a template
host_name DB-Asisstant ; The name we're giving to this host
alias server DB-Asisstant ; A longer name associated with the host
address 10.10.10.10 ; IP address of the host
}
define service{
use local-service
host_name DB-Asisstant
service_description Memory Usage
check_command check_nt!MEMUSE!-w 90 -c 95
}
define service{
use local-service
host_name DB-Asisstant
service_description SqlServer
check_command check_nt!SERVICESTATE!-d SHOWALL -l MSSQLSERVER
}
define service{
use local-service
host_name DB-Asisstant
service_description Cpu Usage
check_command check_nrpe!alias_cpu
}
define service{
use local-service
host_name DB-Asisstant
service_description Disk Space
check_command check_nrpe!alias_volumes
}
define service{
use local-service
host_name DB-Asisstant
service_description Time
check_command check_nrpe!check_windows_time
}
baber, even though the links I posted were for XI they are still very relevant to Nagios Core, did you read through them (at least the multi-tenancy one)?
ssax wrote:baber, even though the links I posted were for XI they are still very relevant to Nagios Core, did you read through them (at least the multi-tenancy one)?
Yes i read that but previously said confused i have been paste all configs on previous post now please help me