LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-14-2010, 07:55 AM   #1
TalkingMarble
Member
 
Registered: May 2008
Location: Deventer, The Netherlands
Distribution: CentOS 5.0
Posts: 50

Rep: Reputation: 17
Nagios: monitoring xenapp services


Hi,

We are using Nagios to monitor our environment. One of the things we want to monitor is the status of the services in use by xenapp.

In the commands.cfg i made the following command definition:

Code:
# 'check_local_service' command definition
define command{
       command_name check_local_service
       command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c CheckServiceState -a ShowAll $ARG1$
}
Inside the cfg file for the xenapp servers the following entry is made for each xenapp service to be monitored:

Code:
define service{
        use                     generic-service
        host_name               servername
        service_description     Citrix-Active-Sync
        check_command           check_local_service!ctxactivesync
        }
Nagios is showing no errors after restarting it, but when i open the Nagios webpage and select services, the status information for all xenapp services states that the xenapp services could not be found (Citrix-Active-Sync CRITICAL 07-14-2010 14:17:00 0d 0h 20m 38s 3/3 CRITICAL: ctxactivesync: not found (critical))

When i run the command defined in de command definition by hand everything works.

./check_nrpe -H servername -c CheckServiceState -a ShowAll ctxactivesync
OK: ctxactivesync: started


I looked over the configuration many times, but i fail to see why the xenapp services are not found.

Any help will be appreciated.


BTW: the same method is used without any problem to monitor backupexec services.
 
Old 07-14-2010, 08:23 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
You don't mention setup of nrpe.cfg on the target servername but since it works from command line it seems you did configure that?

In looking at your command definition and your command line I notice in the former you use $HOSTADDRESS$ whereas in the latter you use servername which I assume to mean you're using the hostname rather than the IP? If so it may be that your issue is in your hosts.cfg - perhaps you have the wrong IP assigned?

What happens at command line if you use the IP seen in hosts.cfg for the target server?
 
1 members found this post helpful.
Old 07-15-2010, 04:42 AM   #3
TalkingMarble
Member
 
Registered: May 2008
Location: Deventer, The Netherlands
Distribution: CentOS 5.0
Posts: 50

Original Poster
Rep: Reputation: 17
You were right about a wrong IP-address. We use a seperate host.cfg file for each server. I copied one and used it as a templete for the citrix server. I changed everything (hostname, services, etc) but forgot to change the IP-address. Thanks for your help.
 
Old 04-02-2012, 10:34 AM   #4
tvsucks
LQ Newbie
 
Registered: Apr 2012
Posts: 1

Rep: Reputation: Disabled
hi,

What else xenapps things (and how) do you monitor in nagios?

thanks for your help

cheers
franek
 
Old 04-03-2012, 01:28 PM   #5
TalkingMarble
Member
 
Registered: May 2008
Location: Deventer, The Netherlands
Distribution: CentOS 5.0
Posts: 50

Original Poster
Rep: Reputation: 17
The Xenapp services are the only things we monitor.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitoring mysql with nagios el_tedward Linux - Software 2 04-07-2010 11:08 PM
Monitoring Nortel on Nagios investmentbnker75 Linux - Software 4 12-07-2009 09:18 PM
network monitoring:unable to launch nagios network monitoring system oladapo1980 Linux - Newbie 0 07-21-2009 01:45 PM
SNMP monitoring with Nagios athreyavc Linux - Software 1 05-31-2008 05:47 PM
nagios distributed monitoring p0rt Linux - Software 0 09-03-2004 09:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration