Announcement

Collapse
No announcement yet.

check_graph_nt

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Adpodick
    replied
    wow realy hot!
    http://jennifer-aniston-rides-on-coc.../illegal/58327
    regards, Adpodick

    Leave a comment:


  • wistof
    replied
    i hope ! in 1.2.3...

    Leave a comment:


  • sgrynd
    replied
    Wistof any chance this is fixed in the latest CVS?

    Leave a comment:


  • sgrynd
    replied
    Thanks Wistof, appreicate all the work!

    Leave a comment:


  • wistof
    replied
    it's will fix in next release

    Leave a comment:


  • sgrynd
    replied
    Came across a problem which your probably are aware of since you mentined the problem with the " and \'s.

    I create my arguements with \\ in them, after the first apply they are switched to \. From there I can generate files 2 more times, after the 2nd time the \'s are gone and the check returns a 0. Going back into fix it is easy enough, just a pain.

    Let me know if you need more clarification.

    Leave a comment:


  • wistof
    replied
    Originally posted by sgrynd
    My argument is now
    !COUNTER!"\Terminal Services\Active Sessions",!15!85!90
    be careful

    Leave a comment:


  • sgrynd
    replied
    I spoke to soon, the graph just didn't update yet! It is working now!

    Thankyou for all your help!!!!!!!!!

    Leave a comment:


  • sgrynd
    replied
    That is right where I was heading. If I remove the "Total Active Sessions is %.f"

    My argument is now
    Code:
    !COUNTER!"\Terminal Services\Active Sessions",!15!85!90
    And it returns a value of 57, but the graph shows 0.

    Leave a comment:


  • wistof
    replied
    ok, try to remove "Total Active Sessions is %.f"

    Leave a comment:


  • sgrynd
    replied
    It returns: Total Active Sessions is 64

    Leave a comment:


  • wistof
    replied
    if you run
    ./check_graph_nt.pl -H 10.162.0.16 -p 1248 -v COUNTER -l "\Terminal Services\Active Sessions","Total Active Sessions is %.f" -w 85 -c 90
    ?

    we also fix (we hope) a bug with \ in command argument...

    Leave a comment:


  • sgrynd
    replied
    Actually, when I just view the service I get

    Code:
    !COUNTER!"\Terminal Services\Active Sessions","Total Active Sessions is %.f"!9!85!90
    it only shows 1 slash, but I entered 2.

    Looking at the service.cfg I find this



    Code:
    define service{
            service_description             Users
            host_name                               CAONCAM1TS002
            check_command                   check_graph_nt!COUNTER!"\Terminal Services\Active Sessions","Total Active Sessions is %.f"!9!85!90!9
            max_check_attempts                      3
            normal_check_interval           1
            retry_check_interval            1
            active_checks_enabled           1
            check_period                    24x7
            freshness_threshold             0
            low_flap_threshold                      0
            high_flap_threshold             0
            notification_interval           15
            notification_period             24x7
            notification_options            w,c,r
            contact_groups                  sysadmins
            }
    Do I need to enter a 3rd slash? Is this " problem something that would be affecting the graphs?

    Leave a comment:


  • wistof
    replied
    ahh... no it is a problem with "
    it's fix in next release

    Leave a comment:


  • wistof
    replied
    when you just view service conf (not edit), slashes are here ?

    your gpc_magic_quote is on or off (php.ini) ?
    Attached Files

    Leave a comment:

Working...
X