Re: Add more services to Nagios Core vers. 4.3.2
Posted: Fri Sep 29, 2017 4:47 am
Hi dwasswa,
thanks a lot:) but if take your example I get this answer from Nagios:
# nagios shell
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Could not find any host matching 'DOCPOINT_HandleMails:3289' (config file '/usr/local/nagios/etc/objects/hostgroups.cfg', starting on line 339)
Error: Failed to expand host list 'DOCPOINT_HandleMails:3289' for service 'Lasernet 7 HandleMails:3289' (/usr/local/nagios/etc/objects/hostgroups.cfg:339)
Error processing object config files!
I do not think that is a good idea changing the host_name because then Nagios do not know server name. In the "hostgroup.cfg" config file I give the servers their ordinary names. If I change the host_name as you suggest I also have to change it for:
1: HOST GROUP DEFINITIONS
2: SERVICE DEFINITIONS
Try to look at then hostgroup.cfg file I have attached for you:) and also a frame from Nagios services site where you can see the services from DOCPOINT:
I myself have tried to solve the above issue but I did not succeed.
The two services are authenticated by the Docpoint Server because they are connected to a Lasernet Developer. The Lasernet Print Capture 7 has no authentication. But I'm not sure it har anything to do with that ?
thanks a lot:) but if take your example I get this answer from Nagios:
# nagios shell
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Could not find any host matching 'DOCPOINT_HandleMails:3289' (config file '/usr/local/nagios/etc/objects/hostgroups.cfg', starting on line 339)
Error: Failed to expand host list 'DOCPOINT_HandleMails:3289' for service 'Lasernet 7 HandleMails:3289' (/usr/local/nagios/etc/objects/hostgroups.cfg:339)
Error processing object config files!
I do not think that is a good idea changing the host_name because then Nagios do not know server name. In the "hostgroup.cfg" config file I give the servers their ordinary names. If I change the host_name as you suggest I also have to change it for:
1: HOST GROUP DEFINITIONS
2: SERVICE DEFINITIONS
Try to look at then hostgroup.cfg file I have attached for you:) and also a frame from Nagios services site where you can see the services from DOCPOINT:
I myself have tried to solve the above issue but I did not succeed.
The two services are authenticated by the Docpoint Server because they are connected to a Lasernet Developer. The Lasernet Print Capture 7 has no authentication. But I'm not sure it har anything to do with that ?