Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_dcmfind
0.1.1
2013-07-22
- Nagios 3.x
35167
File | Description |
---|---|
check_dcmfind.py | check DICOM Find (Query) service v 0.1.1 |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
v 0.1.1 - corrected usage comments; updated inline code comments
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# check_dcmfind.py
# Nagios plugin to check a DICOM find service which is the first stage of a query/retrieve operation (find/c-move) .
#
# The script is a wrapper for dcmtk's (http://dicom.offis.de/dcmtk.php.en) findscu
# to monitor FIND(Query) SCP. dcmtk will have to be installed (or the binary built) on the
# nagios system. Easiest way on an ubuntu system is to use apt:
# sudo apt-get install dcmtk
# dcmtk version 3.6.0 has been used successfully
# The findscu command tries to find studies with the study date of 1950-01-01. The query should be successful and return no studies.
# this work is based on check_dcm.py
# Dale F. Hawley July 2013
#
# Usage:
#
#define command {
# command_name check_dcmfind
# command_line $USER1$/check_dcmfind.py -H $HOSTADDRESS$ -p $ARG1$ -aec $ARG2$ -aet $ARG3$ -v
#
# }
#
#define service {
# host_name VARXcelera
# service_description DICOM Query VAR Xcelera
# check_command check_dcmfind!7000!QR_SCP!TVCARDARCH
# initial_state o
# max_check_attempts 3
# check_interval 10
# retry_interval 1
# active_checks_enabled 1
# check_period 24x7
# notification_interval 10
# first_notification_delay 0
# notification_period 24x7
# notification_options w,u,r,c,f,s
# notifications_enabled 1
# register 1
#}
If the plug-in cannot be found try to change the file permissions with #chmod 777 check_dcmfind.py
# -*- coding: utf-8 -*-
#
# check_dcmfind.py
# Nagios plugin to check a DICOM find service which is the first stage of a query/retrieve operation (find/c-move) .
#
# The script is a wrapper for dcmtk's (http://dicom.offis.de/dcmtk.php.en) findscu
# to monitor FIND(Query) SCP. dcmtk will have to be installed (or the binary built) on the
# nagios system. Easiest way on an ubuntu system is to use apt:
# sudo apt-get install dcmtk
# dcmtk version 3.6.0 has been used successfully
# The findscu command tries to find studies with the study date of 1950-01-01. The query should be successful and return no studies.
# this work is based on check_dcm.py
# Dale F. Hawley July 2013
#
# Usage:
#
#define command {
# command_name check_dcmfind
# command_line $USER1$/check_dcmfind.py -H $HOSTADDRESS$ -p $ARG1$ -aec $ARG2$ -aet $ARG3$ -v
#
# }
#
#define service {
# host_name VARXcelera
# service_description DICOM Query VAR Xcelera
# check_command check_dcmfind!7000!QR_SCP!TVCARDARCH
# initial_state o
# max_check_attempts 3
# check_interval 10
# retry_interval 1
# active_checks_enabled 1
# check_period 24x7
# notification_interval 10
# first_notification_delay 0
# notification_period 24x7
# notification_options w,u,r,c,f,s
# notifications_enabled 1
# register 1
#}
If the plug-in cannot be found try to change the file permissions with #chmod 777 check_dcmfind.py
Reviews (0)
Be the first to review this listing!