Nagios output of 1 = Doesnt not like it?

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.
Locked
LuisN
Posts: 40
Joined: Thu May 24, 2012 10:47 am

Nagios output of 1 = Doesnt not like it?

Post by LuisN »

Ok, i have been bashing my head against the wall. First, i noticed that PHP or Bash script, anything that outputs 1 it does not recognize it. It just goes to the next if statement. ONLY if i hard code 1 into a variable it takes it. IF its a exec command in php, or a VARIABLE="COMMAND" it does NOT like it. WHY!? this is killing me
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios output of 1 = Doesnt not like it?

Post by tmcdonald »

It would really help to see an example of the code.
Former Nagios employee
Locked