Skip to content

Instantly share code, notes, and snippets.

@BlueSkyDetector
Created April 11, 2011 14:40
Show Gist options
  • Save BlueSkyDetector/913616 to your computer and use it in GitHub Desktop.
Save BlueSkyDetector/913616 to your computer and use it in GitHub Desktop.
ZabbixのWeb画面の「Zabbixサーバの起動」は実質的に次のコマンドを実行しているのに等しい。Resource id #(番号)が返ればOK。先に出てるエラーは無視で。
$ php -r 'include "/etc/zabbix/zabbix.conf.php";echo "\n\n" . fsockopen($ZBX_SERVER, $ZBX_SERVER_PORT, $errnum, $errstr, 2) . "\n\n";'
PHP Notice: Use of undefined constant IMAGE_FORMAT_PNG - assumed 'IMAGE_FORMAT_PNG' in /etc/zabbix/zabbix.conf.php on line 33
Resource id #5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment