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($sum == 0) {
$msg = "Fans: unknown, no fans were detected.";
$stat = 3;
}
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Well, its clearly catching correctly on the if statement we added, which of the options above did you use this time, could you post the script one more time as you have it? I see no reason that this shouldn't be working for you from the last script to now. Also if you could post exactly how your are running the command to test it. In the statement "total = 0" that 0 is $sum, just so you know why I feel its definitely catching the if statement.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
You're welcome, glad it's working for you now! Going to lock this up then.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.