BaldMansMojo / check_vmware_esx

chech_vmware_esx Fork of check_vmware_api.pl
GNU General Public License v2.0
124 stars 67 forks source link

Fix Can't Kill Non-Numeric Process #103

Closed zhihongsun51 closed 5 years ago

zhihongsun51 commented 7 years ago

The code returned an error whenever the old PID was undefined since kill can't kill an undefined PID. Changed it so it would check if the PID exists first and then tries to kill. Maybe if the server restarts there isn't an old PID or something.

BaldMansMojo commented 5 years ago

Should work now. Was part of another pull request. Therefore I will close this one. Regards Martin