Page 2 of 2

Re: Nagios Configuration Manager

Posted: Wed Jul 11, 2012 3:20 am
by Flava
Here is the config for one of the services,

Code: Select all


###############################################################################
#
# Service configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date:	      2012-07-11 09:14:53
# Version:    Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND --- 
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################

define service {
	host_name			sql-db01
	service_description		Ping
	use				xiwizard_windowsserver_ping_service
	max_check_attempts		5
	check_interval			5
	retry_interval			1
	check_period			xi_timeperiod_24x7
	notification_interval		0
	notification_period		xi_timeperiod_24x7
	contacts			helpdesk,sysadmin
	_xiwizard			windowsserver
	register			1
	}	

define service {
	host_name			sql-db01
	service_description		S:\ Disk Usage
	use				xiwizard_windowsserver_nsclient_service
	check_command			check_nrpe!CheckDriveSize -p 5666 -a ShowAll !MinWarnFree=10% MinCritFree=5% Drive=S!!!!!!
	contacts			helpdesk,sysadmin
	contact_groups			admins,xi_contactgroup_all
	register			1
	}	

###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################




Re: Nagios Configuration Manager

Posted: Wed Jul 11, 2012 4:00 am
by Flava
Hi,

I think I have found the issue and it is related to service name
S:\ Disk Usage
the characters
:\
; so I guess when the url is parsed, the system will process this as escape character which will break the service name. Because of this, there is no matching service name, and the system cannot take appropriate actions.

I guess, some JavaScript validation for service names should get around this problem.

Re: Nagios Configuration Manager

Posted: Wed Jul 11, 2012 9:07 am
by scottwilkerson
Hmm, what version of XI are you running?

I tried to replicating this but couldn't

Re: Nagios Configuration Manager

Posted: Wed Jul 11, 2012 9:11 am
by Flava
I am running NagiosXi 3.2

Re: Nagios Configuration Manager

Posted: Wed Jul 11, 2012 9:36 am
by scottwilkerson
Hmmm, Have you verified this with all of the services that were having problems?

I am thinking that what may be happening is that by changing the service description the system is just forcing the file to be written to a different location.

It might for some reason have been a file permissions problem.

Re: Nagios Configuration Manager

Posted: Wed Jul 11, 2012 9:46 am
by Flava
I have exhausted all the possible options, it is not a permission issue. It definitely has something to do with the way the link is parsed even it is in quotes. It is very strange behavior.

Are you able to reproduce this?

Re: Nagios Configuration Manager

Posted: Wed Jul 11, 2012 10:27 am
by lmiltchev
Actually, we were able to reproduce it. It is a bug and we will be fixing it as soon as we can. I filed a bug report on our bug tracker. You can view it here.

Re: Nagios Configuration Manager

Posted: Wed Jul 11, 2012 11:27 am
by Flava
FireBug all the way.