LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Nagios: monitoring xenapp services (https://www.linuxquestions.org/questions/linux-software-2/nagios-monitoring-xenapp-services-819763/)

TalkingMarble 07-14-2010 07:55 AM

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.

MensaWater 07-14-2010 08:23 AM

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?

TalkingMarble 07-15-2010 04:42 AM

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.

tvsucks 04-02-2012 10:34 AM

hi,

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

thanks for your help

cheers
franek

TalkingMarble 04-03-2012 01:28 PM

The Xenapp services are the only things we monitor.


All times are GMT -5. The time now is 10:31 AM.