Nagios Configuration Manager

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Flava
Posts: 68
Joined: Wed Feb 01, 2012 10:06 am

Re: Nagios Configuration Manager

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



Thanks
Flava
Posts: 68
Joined: Wed Feb 01, 2012 10:06 am

Re: Nagios Configuration Manager

Post 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.
Thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Configuration Manager

Post by scottwilkerson »

Hmm, what version of XI are you running?

I tried to replicating this but couldn't
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Flava
Posts: 68
Joined: Wed Feb 01, 2012 10:06 am

Re: Nagios Configuration Manager

Post by Flava »

I am running NagiosXi 3.2
Thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Configuration Manager

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Flava
Posts: 68
Joined: Wed Feb 01, 2012 10:06 am

Re: Nagios Configuration Manager

Post 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?
Thanks
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios Configuration Manager

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Flava
Posts: 68
Joined: Wed Feb 01, 2012 10:06 am

Re: Nagios Configuration Manager

Post by Flava »

FireBug all the way.
Thanks
Locked