Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Emmanuel Temam
nrpe3
Commits
870c8f1a
Commit
870c8f1a
authored
Nov 24, 2017
by
Emmanuel Temam
Browse files
check plugins package
parent
32684993
Changes
1
Hide whitespace changes
Inline
Side-by-side
nrpe2to3.sh
View file @
870c8f1a
...
...
@@ -3,12 +3,13 @@
DESTDIR
=
/usr/local/etc/nrpe3
NRPEFILE
=
/usr/local/etc/nrpe.cfg
if
pkg info |
grep
monitoring-plugins
>
/dev/null
;
then
echo
package
=
"monitoring-plugins"
;
else
package
=
"nagios-plugins"
;
fi
if
pkg info |
grep
monitoring-plugins
>
/dev/null
;
then
package
=
"monitoring-plugins"
;
else
package
=
"nagios-plugins"
;
fi
echo
"""********************************
***************************************
PACKAGE
$package
***************************************
**************************************"""
sleep
5
echo
"Stopping nrpe2"
/usr/local/etc/rc.d/nrpe2 stop
echo
"Deleting nrpe"
...
...
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