You are here

Assistance setting up a nagios plugin for use with Opsview

3 posts / 0 new
Last post
robp2175's picture
Assistance setting up a nagios plugin for use with Opsview

I would like to use this plugin with Opsview.

I have already added the powershell script to the exchange server and placed the relevenat entry in opview.ini file on the exchange server.

I need to know how to go about defining the service in opsview and setting up the check.

define service{
use generic-service
host_name EX2013-TST-SVR1
service_description COMPONENTNAME HealthSet
check_command check_nrpe!exchange_serverhealth!COMPONENTNAME

I greatly appreciate the assistance with this project. Thanks in advance.


This is what I have but it gives "UNKNOWN: No handler for that command" error, so I know the syntax must be off

define service {
        host_name EX2013-TST-SVR1
        service_description     Exchange - HubTansport
        check_command           check_nrpe!-H $HOSTADDRESS$ -c exchange_serverhealth -a HubTransport
        retry_check_interval    1
        check_period            24x7
        max_check_attempts      3
        flap_detection_enabled  1
        notifications_enabled   1
        notification_period     24x7
        notification_interval   60
        notification_options    c,f,r,u,w
        normal_check_interval   5
        contact_groups  hostgroup3_servicegroup35
        notes   Application - Microsoft Exchange 2013:Exchange - HubTansport
        use     service-global

smarsh's picture
Re: Assistance setting up a nagios plugin for use with Opsview


You can do all of this via the GUI - its much easier! Simply go to 'Settings > Service checks', add a new one, and then populate it with what you want to call it etc.

Now the 'difficult bit', choose 'check_nrpe' as the plugin, and in arguements add:

-H $HOSTADDRESS$ -c exchange_serverhealth -a HubTransport

Then click submit. Now, add a host (i.e. your exchange server), or go to your exchange server, via Settings > Hosts. Click on the host (Exchange or whatever its called), Navigate to 'Monitors' tab - find your service check, click it so a 'plus icon' appears in the check box, and submit. After a reload - SETTINGS > APPLY ... the check will be on there!



savi.thomas's picture
"UNKNOWN: No handler for that command"


I am new to Opsview and not much Linux knowhow. When I try to setup Opsview to monitor Exchange 2013 as per Sam mentioned above, I also get the "UNKNOWN: No handler for that command" error. here is my configurations looks like

My exchange-serverhealth.ps1 is under C:\Program Files\Opsview Agent\scripts folder


[/settings/external scripts/wrapped scripts]
exchange_serverhealth=scripts\exchange-serverhealth.ps1 -HealthSet $ARG1$


; Script to check external scripts and/or internal aliases, early beta.

[External Scripts]
;check_vbs_sample=cscript.exe //T:30 //NoLogo scripts\check_vb.vbs
;check_powershell_warn=cmd /c echo scripts\powershell.ps1 | powershell.exe -command -


check_nrpe -H $HOSTADDRESS$ -c exchange-serverhealth -a HubTransport

Any idea how to fix the error?