首页 > linux, nagios > check_nginx pnp4nagios 模版

check_nginx pnp4nagios 模版

2010年11月25日 eric 发表评论 阅读评论

   首先不好意思,最近几天由于公司极个人的有点忙,所以就没有及时做监控nginx的模版,今天闲下来,把PNP模版做出来了,感官上还好,由于我把 serveraccepts 、handled、requests 都做到了 PNP模版里,可能他们的图会占用的图比较多,如果你只想把 ActiveConn、reading、writing、waiting 图绘出来,可以把 serveraccepts 、handled、requests 注视掉。

1.首先添加check_nginx.sh 监控

nginx $> wget www.nginxs.com/download/check_nginx.sh

nginx $> mv check_nginx.sh /usr/local/nagios/libexec/

nginx $> vim /usr/local/nagios/etc/objects

nginx $> vim commands.cfg
#  添加:

define command{
        command_name check_nginx
        command_line $USER1$/check_nginx.sh -u $ARG1$ -p $ARG2$ -w $ARG3$ -c $ARG4$
}

2.添加监控服务

nginx $> vim /usr/local/nagios/etc/service/services.cfg
#添加:

 define service{
    use                     local-service,srv-pnp
    host_name               nginxs
    service_description     nginx_status
    check_command           check_nginx!www.nginxs.com!/!4000!5000
}

3.添加 pnp4nagios 模版

nginx $> wget  http://www.nginxs.com/download/check_nginx.php.gz

nginx $> tar zxvf check_nginx.php.gz

nginx $> mv check_nginx.php /usr/local/pnp4nagios/share/templates/

4.重启加载 nagios 服务

nginx $> /etc/init.d/nagios relod

5.看图:

转载请注明:文章转载自:Eric's linux and nginx! (http://www.nginxs.com)
本文地址:http://www.nginxs.com/linux/324.html

分类: linux, nagios 标签: ,
  1. 2017年11月6日06:51 | #1

    I believe that is among the most important info for me.
    And i’m satisfied reading your article. However want to
    remark on few common things, The website style is perfect, the articles is in reality great :
    D. Excellent job, cheers

  2. 2017年11月7日22:42 | #2

    Buy Amitriptyline Comprare Kamagra Piccola QuantitР С–Р’В  Online Acquisto Levitra Generico buy cialis Cialis Et Psa Can Amoxicillin Eliminate Tooth Infection Tadalis Sx Soft Competition

  3. 2017年11月12日07:14 | #3

    Hello, i feel that i noticed you visited my weblog
    so i came to return the favor?.I am trying to in finding things
    to enhance my website!I suppose its ok to make use of some of your ideas!!

  4. 2017年11月12日08:21 | #4

    May I just say what a relief to uncover somebody
    who really understands what they’re talking about on the net.
    You actually realize how to bring an issue to light and make it
    important. A lot more people really need to read this and
    understand this side of your story. I can’t believe you’re not more
    popular given that you certainly have the gift.

  5. 2017年11月12日18:04 | #5

    You have made some really good points there. I checked on the web for additional information about the issue and found most
    individuals will go along with your views on this site.

  6. 2017年11月14日01:30 | #6

    I am genuinely happy to glance at this web site posts which consists of tons of helpful
    information, thanks for providing these data.

  7. 2017年11月14日17:42 | #7

    Do you feel they begin to is often more freeze in the
    home?

  8. 2017年11月15日06:59 | #8

    To keeping your belongings in complete safety?

  9. 2017年11月17日04:54 | #9

    Awesome issues here. I am very glad to peer your post.
    Thank you so much and I’m looking forward to touch you.
    Will you please drop me a mail?

  10. 2017年11月21日20:21 | #10

    Wholesale Viagra 100mg viagra cialis levitra sample pack Balding Propecia Pill

  11. 2017年11月22日19:14 | #11

    lending com
    get loan with bad credit
    microloan
    unsecured personal loans
    payday loans no checking account

  12. 2017年11月24日14:00 | #12

    Viagra Buy On Line Celebrex 200 Mg Online Pharmacy cialis Propecia Barato 1 Mg

  13. 2017年11月24日20:45 | #13

    Wonderful goods from you, man. I have understand your stuff previous to and you are just extremely fantastic.

    I actually like what you have acquired here, certainly like what you’re stating
    and the way in which you say it. You make it entertaining and
    you still care for to keep it sensible. I can’t wait
    to read far more from you. This is really a terrific website.

  14. 2017年11月25日06:02 | #14

    If you wish for to take much from this post
    then you have to apply these methods to your won webpage.

  15. 2017年11月27日21:48 | #15

    Cialis Et Autre Achat Lasix Kamagraoraljellsold Inperthpharmacy viagra online prescription Nurse Responsibility In Giving Amoxicillin Is It Safe To Rotate Edex With Viagra Comprare Cialis Online Sicuro

  16. 2017年11月29日21:25 | #16

    I’ve learn some good stuff here. Definitely worth bookmarking for revisiting.
    I surprise how a lot effort you put to create this type of wonderful
    informative site.

  17. 2017年11月30日13:28 | #17

    Propecia Finasteride For Hair Loss Achat De Cialis Viagra [url=http://ordercheapvia.com]viagra online prescription[/url] Amoxicillin And Pinke Eye Balding Propecia Acheter Cialis Generique Canada

  18. 2017年12月2日04:55 | #18

    cash advance loans
    online payday loans
    payday loans
    payday loans online
    pay day loan

  19. 2017年12月4日10:03 | #19

    Hi there, i read your blog from time to time
    and i own a similar one and i was just curious if
    you get a lot of spam responses? If so how do you prevent
    it, any plugin or anything you can recommend?

    I get so much lately it’s driving me insane so any help is
    very much appreciated.

  20. 2017年12月10日10:32 | #20

    payday loans no credit check
    cash loans no credit check
    payday loans no credit check
    payday loans no credit check
    loans for bad credit

  21. 2017年12月14日17:31 | #21

    I got this website from my friend who informed me on the
    topic of this web site and now this time I am browsing this web
    page and reading very informative posts at this place.

  22. 2017年12月16日06:08 | #22

    casino free games
    online casino
    online casino usa
    casino slot games
    casino slot games

  23. 2017年12月19日17:36 | #23

    online casino
    casino online
    casino games list
    online casino
    casino online

  24. 2017年12月23日06:59 | #24

    payday loans online no credit check
    payday loans no credit
    payday loans online no credit check
    payday loans no credit
    payday loans no credit check

  25. 2018年1月5日22:31 | #25

    This design is steller! You certainly know how to keep a reader entertained.
    Between your wit and your videos, I was almost moved to start my own blog (well,
    almost…HaHa!) Fantastic job. I really loved what you had to say, and more than that, how
    you presented it. Too cool!

  26. 2018年1月13日03:22 | #26

    Wow, this post is good, my younger sister is
    analyzing these kinds of things, thus I am going to tell her.

  27. 2018年1月15日06:39 | #27

    loans no credit
    payday loans online no credit check
    payday loans online no credit check
    loans no credit check
    payday loans online no credit check

  28. 2018年1月18日23:38 | #28

    triple diamond slots 5x
    real money online
    absolutely free slots for fun
    game slots
    online casino play for free

评论分页
1 2 3 4 324
订阅评论
2+4= (必填)