怎么能从linux的命令行执行nagios命令

我正在使用nagios o centos服务器,我只想监视本地主机。

我已经定义了我的服务

define service{ host_name localhost service_description Site1Service check_command check_http-site1 use generic-service notification_interval 1440 } 

command.cfg中这样的命令

 define command{ command_name check_http-site1 command_line /usr/lib/nagios/plugins/check_http -H site1.dreaddomain.com } 

我在那里得到严重的错误。 所以我想从命令行检查,如果该服务正在运行或不

 su - nagios -s /bin/bash -c '/usr/lib/nagios/plugins/check_http -H site1.dreaddomain.com'