如何运行此命令“check_ping -H 192.168.1.2 -w 100.0,90% -c 200.0,60%”来自 Java 代码?
您好,我正在使用 linux,并尝试在 java 中执行此命令,并愿意在字符串变量中获取其结果,我已使用 inetaddress 来 ping 主机,但我需要运行此命令。它在“nagios”中使用,也许它会使用它自己的命令我想在这个模式中执行这个命令?
http://nagios.sourceforge.net/docs/3_0/macros.html 上面的链接是为了帮助
How it would be possible
希望您的建议
提前致谢
hi i am using linux and trying to execute this command in java and willing to get its result in string variable i have use inetaddress to ping host but my need is to run this command.it is use in "nagios" perhaps it would pe its own command i want to execute this commant in this pattren ??
http://nagios.sourceforge.net/docs/3_0/macros.html
above link is for help
How it would be possible
Hopes for your suggestions
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗨试试这个代码,
Hi Try this code ,