Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scripts
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thomas Blanc
scripts
Commits
a15eec65
Commit
a15eec65
authored
May 08, 2013
by
Daniel Stan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[munin] retrait plugin vigile
Il n'affiche rien de pertinent anyway.
parent
20fdae6a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
30 deletions
+0
-30
munin/scripts/hosts_plugins.py
munin/scripts/hosts_plugins.py
+0
-4
munin/vigile
munin/vigile
+0
-26
No files found.
munin/scripts/hosts_plugins.py
View file @
a15eec65
...
...
@@ -139,10 +139,6 @@ for switch in annuaires.all_switchs():
switch
=
switch
.
replace
(
'-'
,
'_'
)
hosts_plugins
[
"dyson"
][
"ping_
%
s.adm"
%
switch
]
=
"ping_bat_"
# Et les vigiles...
for
lieu
in
[
"0a"
,
"0b"
,
"2b"
,
"0c"
,
"0g"
,
"2g"
,
"4g"
,
"0h"
,
"-1i"
,
"0j"
,
"4j"
,
"0m"
]:
hosts_plugins
[
"dyson"
][
"vigile_vigile_
%
s.adm.crans.org"
%
lieu
.
replace
(
'-'
,
'_'
)]
=
"/usr/scripts/surveillance/vigile"
# On rajoute les stats de connexion
for
host
in
hosts_plugins
.
keys
():
hosts_plugins
[
host
]
.
update
({
"sockets"
:
"sockets"
})
...
...
munin/vigile
100755 → 100644
View file @
a15eec65
#!/bin/sh
file_host
=
`
basename
$0
|
sed
's/^vigile_//g'
|
sed
's/_/-/g'
`
host
=
${
host
:-${
file_host
}}
if
[
-z
"
$host
"
]
;
then
echo
'no host to ping'
exit
2
fi
if
[
"
$1
"
=
"config"
]
;
then
echo
host_name
$host
echo
graph_title Monitoring of
$host
echo
'graph_args --lower-limit 0 --upper-limit 1024 --rigid'
echo
'graph_vlabel units'
echo
'graph_category other'
echo
'graph_info This graph shows activity.'
echo
"motion.label motion"
echo
'motion.draw LINE2'
echo
'light.label light'
echo
'light.draw LINE2'
exit
0
fi
echo
'passo,d=?'
| nc
-w1
-u
$host
1200 | perl
-ne
'printf("motion.value %d\n",300*($1+$2+$3)) if /d=(\d):(\d):(\d)$/'
echo
'passo,a=?'
| nc
-w1
-u
$host
1200 | perl
-ne
'printf("light.value %d\n",$1) if /^a=(\d+)$/'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment