I'm monitoring NTP server with nagios and nrpe, at the nagios server, when I get the following error: Service Status UNKNOWN Status information I am missing an important component : bash
The plugin is: http://archive.groundworkopensource.com/groundwork-opensource/trunk/monitor-core/nagios/plugins-contrib/check_procr.sh
The output when I do bash -x check_procr.sh
is:
+ myself=check_procr
+ verify_dep
+ needed='bash cut egrep expr grep let ps sed sort tail test tr wc'
++ echo bash cut egrep expr grep let ps sed sort tail test tr wc
+ for i in '`echo $needed`'
+ type bash /dev/null
+ '[' 1 -eq 1 ']'
+ echo 'I am missing an important component : bash'
I am missing an important component : bash
+ echo 'Cannot continue, sorry, try to find the missing one...'
Cannot continue, sorry, try to find the missing one...
+ exit 3
Thanks in advance
Edit the function
verify_dep()
so that the lineis changed to
Afterwards, it should work. The original line was wrong and always resulted in an error.