Search Results
   /   
 
Thread: if-selection does not handle exit codes correctly in generic_proc module
Post: RE: if-selection does not handle exit codes correc...
I believe that I have solved the problem. Using -eq instead of == makes the example given in the manual work. Code:module_begin module_name Ping module_type generic_proc module_exec ping -c 1 192....
Replies: 5
Views: 6,263
11-13-2017, 01:28 PM
 
Thread: if-selection does not handle exit codes correctly in generic_proc module
Post: RE: if-selection does not handle exit codes correc...
Let's try to find out if it is something special with the  $? variable! Code:module_begin module_name Always 0 fool it again module_type generic_proc module_exec a=1;  if [ $a == 0 ]; then e...
Replies: 5
Views: 6,263
11-13-2017, 09:40 AM
 
Thread: if-selection does not handle exit codes correctly in generic_proc module
Post: RE: if-selection does not handle exit codes correc...
Code:module_begin module_name Simple 0 module_type generic_proc module_exec true; echo $? module_end module_begin module_name Simple 1 module_type generic_proc module_exec false; echo $? modu...
Replies: 5
Views: 6,263
11-10-2017, 11:12 AM
 
Thread: if-selection does not handle exit codes correctly in generic_proc module
Post: if-selection does not handle exit codes correctly ...
I'm trying to do something similar to the ICMP Checks in https://wiki.pandorafms.com/index.php?ti...Operations section 1.7.1 but the outcome of module_exec does not show up as expected in the FMS Cons...
Replies: 5
Views: 6,263
11-10-2017, 09:35 AM

(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes