Jabber Custom Notification Script Not Working

Norman Harebottle nharebottle at vikus.com
Wed May 24 14:32:20 CEST 2006


Good to know, it is very interesting to me that the script operates just
fine from the command-line but fails when running through Nagios.
 
It would be really helpful to debug if there was a way to log the exact
text of any external commands that are executed.
 
Norman

________________________________

From: Aaron K. Moore [mailto:amoore at dekalbmemorial.com] 
Sent: Wednesday, May 24, 2006 8:26 AM
To: Norman Harebottle; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Jabber Custom Notification Script Not
Working


I didn't have any luck getting any of the Perl based Jabber scripts to
work.  I kept getting an error in one of the XMPP modules.
 
--
Aaron Kent Moore
Information Technology Services
DeKalb Memorial Hospital, Inc.
Auburn, IN


________________________________

	From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Norman
Harebottle
	Sent: Tuesday, May 23, 2006 8:52 AM
	To: nagios-users at lists.sourceforge.net
	Subject: [Nagios-users] Jabber Custom Notification Script Not
Working
	
	
	Hello Everyone,
	 
	I am wondering if anyone has had success getting the Jabber
Notification script written by David Cox to work.
	 
	I have a user called nagios under which nagios runs and using
"su nagios" (on Debian) I can run the script and it notifies just fine.
So I am concluding that it is not a security related issue nor a script
execution error since it works correctly.  However, when running the
Perl script in the Embedded Perl environment, something happens (which
is not logged) which causes the script to not execute as desired.
	 
	Can anyone point me in the direction of a logging directive to
enable so that I can see any Perl errors that may be generated in the
process?
	 
	Current nagios.cfg logging settings:
	log_archive_path=/var/log/nagios/archives
	log_event_handlers=1
	log_external_commands=1
	log_file=/var/log/nagios2/nagios.log
	log_host_retries=1
	log_initial_states=0
	log_notifications=1
	log_passive_checks=1
	log_rotation_method=d
	log_service_retries=1
	use_syslog=1
	
	Abbbreviated contents of /var/log/nagios2/nagios.log:
	[1148388211] SERVICE NOTIFICATION: norman;weathervane;Service:
Jabber Notification Test;CRITICAL;notify-by-jabber;No process matching
ping found : CRITICAL
	
	I appreciate any insight into this problem would be appreciated.
	 
	Sincerely,
	 
	Norman H. Harebottle III
	Software Engineer
	Vikus Corporation

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


More information about the Users mailing list