How to monitor disk usage with Apan ...

Paraman Pachaimuthu ParamanP at microland.net
Tue Nov 4 07:16:09 CET 2003


Hi Nagi Gurus,

I have a challenge here. 

I am monitoring a Windows 2000 server from my Nagios server. The Win2K
machine has NSClient service running. Monitoring is happening perfectly for
ping, disk usage, exchange counters, etc. When I use Apan for generating
graph, I am facing challenge. This problem comes in disk usage. It works
good with Ping. Monitoring is happening and graph is also coming for Ping.

I am unable to get results as well as graphs for disk usage. 

I am getting the following output in the monitoring screen.

disk -usage 
status 	: unknown	
status information : No perf-definition for the service

Error displays in the console :
/usr/local/nagios/apan/apan.sh: line 15: [: too many arguments 

/tmp/apan.debug has the following error :

Args: nt-disk PARAMANP disk-usage 1067925657 150 100 Could not insert '' , "
into 

The following is the setting of services.cfg :


# Service definition
define service{
	use			generic-service		; Name of service
template to use

	host_name			PARAMANP
	service_description		disk-usage
	 is_volatile			0
	 check_period			24x7
	 max_check_attempts		10
	 normal_check_interval		1
	 retry_check_interval		1
	 contact_groups			nt-admins
	
	 notification_interval		120
	 notification_period		24x7
	 notification_options		w,u,c,r
	check_command		apan!nt-disk!150!100
	}

The following is the setting of serviceextinfo.cfg:

define		serviceextinfo{
host_name	PARAMANP
service_description	disk-usage
notes_url	/nagios/cgi-bin/apan.cgi?host=PARAMANP&service=disk-usage
icon_image	graph.png
icon_image_alt	View graphs
}

The following is the setting of apan.cfg:

PARAMANP;disk_usage;/usr/local/nagios/rrd/PARAMANP_disk_usage.rrd;c|d;c-used
:AREA c-free:STACK c-used:AREA c-free:STACK;Disk usage;Bytes;-l 1 -b 1024;

..

I am unable to monitor the disk usage when implementing Apan. If there is no
Apan, the check_nt works fine for disk usage. I want to monitor disk usage
as well as graph. How to proceed on this ?  Please help me.
Any help will be appreciated. Thanks



Warm regards,

Paraman Pachaimuthu
Consultant - Technology & Practices 
Microland Limited
www.microland.net


Email:   paramanp at microland.net
Tel:       91-80-5503313  extn. 151
Fax:      91-80-5503319
 

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, re-transmission, dissemination or other use of or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from your
computer. Microland takes adequate steps to ensure that its electronic
communications are free from viruses. However, given the nature of the
Internet, the Company cannot accept liability for any virus introduced by
this e-mail or any attachment.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20031104/e8354ba6/attachment.html>


More information about the Users mailing list