当前位置: 首页 > nagios
  • nagios check_udp 就是一残废

    nagios中check_udp是链接到的check_tcp
    lrwxrwxrwx 1 root root 9 Sep 23 22:01 check_udp -> check_tcp

    两个例子:
    ./check_udp -H 2hei.net -p 161 -s “” -e “” -w 2 -c 5
    No data received from host

    ./check_udp -H 2hei.net -p 123 -s “” -e “” -w 2 -c 5
    CRITICAL – Socket timeout after 10 seconds

    /usr/lib64/nagios/plugins/check_udp -h
    check_udp: No arguments found
    Usage:
    check_udp -H host -p port [-w ] [-c ] [-s ]
    [-e ] [-q ][-m ] [-d ]
    [-t ] [-r ] [-M ] [-v] [-4|-6] [-j]
    [-D [,]] [-S ] [-E]

    需要输入[-s ] [-e ]实际上很多ndp的端口就没有返回内容,太扯淡了。
    看来还得自己动手丰衣足食。

    阅读全文
    作者:u2 | 分类:OpenSource | 标签:
    nagios check_udp 就是一残废已关闭评论
  • write nagios nrpe plugin

    Scripts and executables must do two things (at a minimum) in order to function as Nagios plugins:1.Exit with one of several possible return values2.Return at least one line of text output to STDOUT Plugin Return Code Service State Host State0 OK UP1 WARNING UP or DOWN/UNREACHABLE*2 CRITICAL DOWN ...

    阅读全文
    作者:u2 | 分类:OpenSource, python | 标签:
  • nagios的check_ping使用

    nagios的一些辅助工具很有用处,如check_ping,check_tcp等等,这里介绍一下check_ping的用法: nagios的check_ping命令: 源码可见 nagios插件: nagios-plugins-1.4.12/plugins/check_ping.c   用法: ./check_ping  Usage: check_ping -H <host_address> -w <wrta> ...

    阅读全文
    作者:u2 | 分类:OpenSource | 标签:
    nagios的check_ping使用已关闭评论
  • learn shell check_tcpconn.sh from nagios

    #check_tcpconn.sh# warning valueW=1500# critical valueC=2190if [ -f /proc/net/tcp6 ]        then                TCP_FILE6=”/proc/net/tcp6″fiif [ -f /proc/net/tcp ]   ...

    阅读全文
    作者:u2 | 分类:OpenSource | 标签:
    learn shell check_tcpconn.sh from nagios已关闭评论