Reply to extended host info images

Jarrett Irons jirons at knowledgekids.com
Sun Oct 26 06:47:17 CET 2003


 was having a hard time with that till i looked at the demo files through the site.  In cgi.cfg add a line " 

xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg". Then create hostextinfo.cfg file.  To have a image associated to that host type:

 

# 'gdserver03' host definition

define hostextinfo{

host_name gdserver03

icon_image win40.jpg

icon_image_alt win40.gif

vrml_image win40.png

statusmap_image win40.gd2

}

Make sure these images are in your html path (ex. /usr/local/nagios/share/images/logos/)

	-----Original Message----- 
	From: nagios-users-request at lists.sourceforge.net [mailto:nagios-users-request at lists.sourceforge.net] 
	Sent: Fri 10/24/2003 8:19 PM 
	To: nagios-users at lists.sourceforge.net 
	Cc: 
	Subject: Nagios-users digest, Vol 1 #1716 - 5 msgs
	
	

	Send Nagios-users mailing list submissions to
	        nagios-users at lists.sourceforge.net
	
	To subscribe or unsubscribe via the World Wide Web, visit
	        https://lists.sourceforge.net/lists/listinfo/nagios-users
	or, via email, send a message with subject or body 'help' to
	        nagios-users-request at lists.sourceforge.net
	
	You can reach the person managing the list at
	        nagios-users-admin at lists.sourceforge.net
	
	When replying, please edit your Subject line so it is more specific
	than "Re: Contents of Nagios-users digest..."
	
	
	Today's Topics:
	
	   1. Re: Statusmap not showing images (Scott)
	   2. Color Coding in Alerts (jon quidilla)
	   3. RE: Statusmap not showing images (David Olbersen)
	   4. RE: "Could not locate a running Nagios process!" (Tsugranes, Vincent)
	   5. RE: "Could not locate a running Nagios process!" (Tsugranes, Vincent)
	
	--__--__--
	
	Message: 1
	From: "Scott" <monkey at raindog2.no-ip.org>
	To: <Nagios-users at lists.sourceforge.net>
	Subject: Re: [Nagios-users] Statusmap not showing images
	Date: Fri, 24 Oct 2003 16:16:47 -0700
	
	
	----- Original Message -----
	From: "David Olbersen" <DOlbersen at stbernard.com
	
	
	Scott wrote:
	
	> I think its getting that image from the image directory.
	
	>Yes, it is. It should be unknown.(gd2|gif|png).
	
	>So your physical_html_path is fine if it's finding that.
	
	>Are you sure there's no typos in the directory name, 'logos'?
	its fine
	
	>Also, what're the permissions & owner/group settings on the 'logos'
	>directory? They need to be set so that the user your web server runs as can
	>access them (e.g. 751 or 755 would be good).
	nagios:nagios 755
	all images are nagios:nagios 644
	
	>It really sounds like Nagios just isn't finding that extended
	information...
	
	>If you go to the 'Host Detail' page, do you get the little icons next to
	the >machine names?
	Just the little taffic lights.
	
	
	
	
	
	
	
	
	--__--__--
	
	Message: 2
	Date: Sat, 25 Oct 2003 07:45:00 +0800
	To: nagios-users at lists.sourceforge.net
	From: jon quidilla <jon.q at pacific.net.ph>
	Subject: [Nagios-users] Color Coding in Alerts
	
	Hi I'm just a newbie in nagios. I just want to know if it is possible to
	edit the color of the alerts.
	
	For example:
	
	            for regular down - red
	        for clients under icmp / firewall - orange
	        suspended account - yellow
	        client's initiated - blue
	
	Thanks,
	
	
	
	
	
	--__--__--
	
	Message: 3
	Subject: RE: [Nagios-users] Statusmap not showing images
	Date: Fri, 24 Oct 2003 16:59:44 -0700
	From: "David Olbersen" <DOlbersen at stbernard.com>
	To: "Scott" <monkey at raindog2.no-ip.org>,
	        <Nagios-users at lists.sourceforge.net>
	
	Scott wrote:
	
	> > If you go to the 'Host Detail' page, do you get the little icons =
	next to
	> > the machine names?
	>
	> Just the little taffic lights.
	
	Then Nagios probably isn't picking up the extended host information at =
	all.
	
	--=20
	David Olbersen
	iGuard Engineer
	St. Bernard Software
	15015 Avenue of Sciences
	San Diego, CA 92127
	x2152
	
	
	--__--__--
	
	Message: 4
	From: "Tsugranes, Vincent" <VTsugranes at AtlasAir.com>
	To: "'nagios-users at lists.sourceforge.net'"
	        <nagios-users at lists.sourceforge.net>
	Date: Fri, 24 Oct 2003 22:12:20 -0400
	Subject: [Nagios-users] RE: "Could not locate a running Nagios process!"
	
	> -----Original Message-----
	> From: David Gomillion [mailto:dgomillion
	<at> eyecarenow.com]
	> Sent: Friday, October 24, 2003 1:35 PM
	> To: nagios-users <at> lists.sourceforge.net
	>
	> I am sure this is a RTFM problem, but I couldn't find it in the docs.
	> If someone can point me in the right direction, I'd appreciate it.
	>
	> And I did search the archives... or tried to, with no hits.
	>
	> I am running Nagios (newest version, downloaded yesterday) and have it
	> up and running.
	>
	> I have the plugins, also newest version, and they are working
	correctly.
	>
	> I am getting updated status on all of the hosts I configured, I have
	> services set up, and I have created hostgroups for my hosts.  I set
	all
	> contacts, and I have Nagios starting correctly, except...
	>
	> When I go to the web interface, I cannot execute commands, and the
	> Process Info page has the error message, "Could not locate a running
	> Nagios process!".  However, the process is located in the box, and has
	> the correct PID and running time.
	>
	> Can anyone point me in the right direction?
	
	I am having a similar problem...
	
	Nagios is compiled and running with database support / nagmin, and all
	processes are running correctly, but when nagios starts, the files
	nagios.cmd and status.log are not created.
	
	status_file=/usr/local/nagios/var/status.log
	command_file=/usr/local/nagios/var/rw/nagios.cmd
	
	        [root at nagios nagios]# ls -al
	        total 32
	        drwxrwxr-x    8 nagios   nagios       4096 Oct 24 09:39 .
	        drwxr-xr-x   15 root     root         4096 Oct 23 14:27 ..
	        drwxrwxr-x    2 nagios   nagios       4096 Oct 23 14:10 bin
	        drwxrwxr-x    3 nagios   nagios       4096 Oct 24 21:46 etc
	        drwxr-xr-x    2 root     root         4096 Oct 24 21:31 libexec
	        drwxrwxr-x    2 nagios   nagios       4096 Oct 23 14:10 sbin
	        drwxrwxr-x    8 nagios   nagios       4096 Oct 23 15:08 share
	        drwxrw-rw-    4 nagios   nagios       4096 Oct 24 21:36 var
	                drwxrwxr-x    2 nagios   nagios       4096 Oct 24 21:36 rw
	
	[root at nagios nagios]# ps -ef | grep nagios
	nagios    6805     1  0 21:36 ?        00:00:00 [nagios]
	root      8058 31784  0 21:49 pts/2    00:00:00 grep nagios
	
	
	nagios_check_command=/usr/local/nagios/libexec/check_nagios -F
	~       /usr/local/nagios/var/status.log -e 5 -C 'nagios'
	
	Error: Cannot open status log for reading!
	
	When I create the log manually, and give permissions, the Process Status
	Information returns the correct data:
	        [root at nagios nagios]# touch /usr/local/nagios/var/status.log
	        [root at nagios nagios]# chown nagios /usr/local/nagios/var/status.log
	        [root at nagios nagios]# /usr/local/nagios/libexec/check_nagios -F
	
	~               /usr/local/nagios/var/status.log -e 5 -C 'nagios'
	        Nagios problem: located 1 process, status log updated 1067046914
	
	~               seconds ago
	
	The status data is going into the database, but the CGIs are all configured
	for database support; why is the status.log file still necessary?
	
	Sorry about the extended post, but I'm out of ideas.
	-Vincent
	
	
	
	--__--__--
	
	Message: 5
	From: "Tsugranes, Vincent" <VTsugranes at AtlasAir.com>
	To: "'nagios-users at lists.sourceforge.net'"
	        <nagios-users at lists.sourceforge.net>
	Date: Fri, 24 Oct 2003 22:12:20 -0400
	Subject: [Nagios-users] RE: "Could not locate a running Nagios process!"
	
	> -----Original Message-----
	> From: David Gomillion [mailto:dgomillion
	<at> eyecarenow.com]
	> Sent: Friday, October 24, 2003 1:35 PM
	> To: nagios-users <at> lists.sourceforge.net
	>
	> I am sure this is a RTFM problem, but I couldn't find it in the docs.
	> If someone can point me in the right direction, I'd appreciate it.
	>
	> And I did search the archives... or tried to, with no hits.
	>
	> I am running Nagios (newest version, downloaded yesterday) and have it
	> up and running.
	>
	> I have the plugins, also newest version, and they are working
	correctly.
	>
	> I am getting updated status on all of the hosts I configured, I have
	> services set up, and I have created hostgroups for my hosts.  I set
	all
	> contacts, and I have Nagios starting correctly, except...
	>
	> When I go to the web interface, I cannot execute commands, and the
	> Process Info page has the error message, "Could not locate a running
	> Nagios process!".  However, the process is located in the box, and has
	> the correct PID and running time.
	>
	> Can anyone point me in the right direction?
	
	I am having a similar problem...
	
	Nagios is compiled and running with database support / nagmin, and all
	processes are running correctly, but when nagios starts, the files
	nagios.cmd and status.log are not created.
	
	status_file=/usr/local/nagios/var/status.log
	command_file=/usr/local/nagios/var/rw/nagios.cmd
	
	        [root at nagios nagios]# ls -al
	        total 32
	        drwxrwxr-x    8 nagios   nagios       4096 Oct 24 09:39 .
	        drwxr-xr-x   15 root     root         4096 Oct 23 14:27 ..
	        drwxrwxr-x    2 nagios   nagios       4096 Oct 23 14:10 bin
	        drwxrwxr-x    3 nagios   nagios       4096 Oct 24 21:46 etc
	        drwxr-xr-x    2 root     root         4096 Oct 24 21:31 libexec
	        drwxrwxr-x    2 nagios   nagios       4096 Oct 23 14:10 sbin
	        drwxrwxr-x    8 nagios   nagios       4096 Oct 23 15:08 share
	        drwxrw-rw-    4 nagios   nagios       4096 Oct 24 21:36 var
	                drwxrwxr-x    2 nagios   nagios       4096 Oct 24 21:36 rw
	
	[root at nagios nagios]# ps -ef | grep nagios
	nagios    6805     1  0 21:36 ?        00:00:00 [nagios]
	root      8058 31784  0 21:49 pts/2    00:00:00 grep nagios
	
	
	nagios_check_command=/usr/local/nagios/libexec/check_nagios -F
	~       /usr/local/nagios/var/status.log -e 5 -C 'nagios'
	
	Error: Cannot open status log for reading!
	
	When I create the log manually, and give permissions, the Process Status
	Information returns the correct data:
	        [root at nagios nagios]# touch /usr/local/nagios/var/status.log
	        [root at nagios nagios]# chown nagios /usr/local/nagios/var/status.log
	        [root at nagios nagios]# /usr/local/nagios/libexec/check_nagios -F
	
	~               /usr/local/nagios/var/status.log -e 5 -C 'nagios'
	        Nagios problem: located 1 process, status log updated 1067046914
	
	~               seconds ago
	
	The status data is going into the database, but the CGIs are all configured
	for database support; why is the status.log file still necessary?
	
	Sorry about the extended post, but I'm out of ideas.
	-Vincent
	
	
	
	
	--__--__--
	
	_______________________________________________
	Nagios-users mailing list
	Nagios-users at lists.sourceforge.net
	https://lists.sourceforge.net/lists/listinfo/nagios-users
	
	
	End of Nagios-users Digest
	
	

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 17858 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20031025/745ec1f9/attachment.bin>


More information about the Users mailing list