Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nagios-plugins
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lcgdm
nagios-plugins
Commits
8b920842
Commit
8b920842
authored
12 years ago
by
Ricardo Rocha
Browse files
Options
Downloads
Patches
Plain Diff
change check_dpm_infosys to use lists instead of tuples for loops.
parent
2cf0a57b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dist/nagios-plugins-lcgdm.spec
+6
-3
6 additions, 3 deletions
dist/nagios-plugins-lcgdm.spec
plugins/check_dpm_infosys
+3
-3
3 additions, 3 deletions
plugins/check_dpm_infosys
with
9 additions
and
6 deletions
dist/nagios-plugins-lcgdm.spec
+
6
−
3
View file @
8b920842
...
...
@@ -6,7 +6,7 @@
%define pnp4nagios_templates_dir %{_datadir}/nagios/html/pnp4nagios/templates.lcgdm
Name: nagios-plugins-lcgdm
Version: 0.9.
3
Version: 0.9.
4
Release: 1%{?dist}
Summary: Nagios probes to be run remotely against DPM / LFC nodes
Group: Applications/Internet
...
...
@@ -14,8 +14,8 @@ License: ASL 2.0
URL: https://svnweb.cern.ch/trac/lcgdm/wiki/Dpm/Admin/Monitoring
# The source of this package was pulled from upstream's vcs. Use the
# following commands to generate the tarball:
# svn export http://svn.cern.ch/guest/lcgdm/nagios-plugins/tags/nagios-plugins_0_9_
3
nagios-plugins-lcgdm-0.9.
3
# tar -czvf nagios-plugins-lcgdm-0.9.
3
.tar.gz nagios-plugins-lcgdm-0.9.
3
# svn export http://svn.cern.ch/guest/lcgdm/nagios-plugins/tags/nagios-plugins_0_9_
4
nagios-plugins-lcgdm-0.9.
4
# tar -czvf nagios-plugins-lcgdm-0.9.
4
.tar.gz nagios-plugins-lcgdm-0.9.
4
Source0: %{name}-%{version}.tar.gz
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
...
...
@@ -174,6 +174,9 @@ rm -rf %{buildroot}
%{nagios_plugins_dir}/lcgdm/check_oracle_expiration
%changelog
* Tue Oct 22 2012 Ricardo Rocha <ricardo.rocha@cern.ch> - 0.9.4-1
- Update for new upstream release
* Tue Oct 16 2012 Ricardo Rocha <ricardo.rocha@cern.ch> - 0.9.3-1
- Update for new upstream release
...
...
This diff is collapsed.
Click to expand it.
plugins/check_dpm_infosys
+
3
−
3
View file @
8b920842
...
...
@@ -112,14 +112,14 @@ Description of work executed by the probe:
self
.
time_start
()
# Check published protocols
for
protocol
in
(
"
rfio
"
,
"
gsiftp
"
)
:
for
protocol
in
[
"
rfio
"
,
"
gsiftp
"
]
:
result
=
conn
.
search_s
(
self
.
base_dn
,
ldap
.
SCOPE_SUBTREE
,
"
GlueSEAccessProtocolLocalID=%s
"
%
protocol
)
if
not
len
(
result
):
return
(
EX_CRITICAL
,
"
Access protocol %s not published
"
%
protocol
,
None
)
elif
verbosity
(
V_EXTENDED
):
print
"
Access protocol %s published
"
%
protocol
for
protocol
in
(
"
srmv2
"
)
:
for
protocol
in
[
"
srmv2
"
]
:
result
=
conn
.
search_s
(
self
.
base_dn
,
ldap
.
SCOPE_SUBTREE
,
"
GlueSEControlProtocolLocalID=%s
"
%
protocol
)
if
not
len
(
result
):
return
(
EX_CRITICAL
,
"
Control protocol %s not published
"
%
protocol
,
None
)
...
...
@@ -127,7 +127,7 @@ Description of work executed by the probe:
print
"
Control protocol %s published
"
%
protocol
# Services
for
s
in
(
"
httpg://%s:8446/srm/managerv2
"
)
:
for
s
in
[
"
httpg://%s:8446/srm/managerv2
"
]
:
service
=
s
%
self
.
host
result
=
conn
.
search_s
(
self
.
base_dn
,
ldap
.
SCOPE_SUBTREE
,
"
GlueServiceUniqueID=%s
"
%
service
)
if
not
len
(
result
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment