Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
If you are running bash 4.1 or older, you are going to need to update. What OS and version are you using? The community can help you upgrade, if you need it. Thanks!
Bash Version: [root@server01 libexec]# bash --version GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
OS Release is: CentOS release 6.8 (Final), 2.6.32-642.6.1.el6.x86_64
I checked, bash is running latest version in my server. When I tried to execute it again I got the following error.
This is the problem. You either need to upgrade bash (compile it yourself, get another repo, or upgrade CentOS), or rewrite the plugin to work with bash 4.1. The version of bash that comes with CentOS 7 is 4.2.
We can go in either direction you like, but personally, I would suggest upgrading to CentOS 7. The reason for this suggestion is that it is the only way you get to stay on standard everything. Plus, eventually you'll have to move away from CentOS 6 anyway.
But unfortunately now we cannot upgrade our OS release from 6 to 7 since all are in production.
For now I will write a custom script to monitor the gluster volumes and space. Later point of time when we really need to upgrade our OS after getting approval from our Management team, will do the upgrade and use this script.
msachikanta wrote:
For now I will write a custom script to monitor the gluster volumes and space.
You may not need to write a complete new script. This github issue was posted after the exchange update: https://github.com/customink/nagios-nrp ... s/issues/4. You might also try emailing the developer. Note that that is not our github.
If you do write a new script or a patch for the script, if you could post it here or to the exchange (or both), that would be a great help to the community.