Announcement

Collapse
No announcement yet.

Juniper cpu, memory & temperature monitoring

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

  • usmanhfd
    replied
    Gr8, issue has been resolved. There was another mistake in the threshold-overload values. i.e; ^(?!( standby)$))' .... A space character before standby.. it would be like this ^(?!(standby)$))'

    Leave a comment:


  • centurion
    replied
    Configuration --> Pollers --> Engine configuration --> select the central's configuration --> In the Administrator Tab check that the characters ?;!;^;$;';* are not illegal in macro's value, if it is remove them...
    Try your command like this
    $USER1$/centreon-plugins/centreon_plugins.pl --plugin=network::juniper::mseries:lugin --mode=$_SERVICEMODE$ --hostname=$HOSTADDRESS$ --snmp-version=2c --snmp-community=view --absent-problem --no-component --threshold-overload=$_SERVICETHRESOLD$ --warning='fru-temperature,.*,40' --critical='fru-temperature,.*,45'

    Then create you're service (or model) with the command that you created

    And fill the macros with the values :
    MODE = hardware
    THRESOLD = 'operating,CRITICAL,(^(?!(running)$)^(?!( standby)$))'

    Let us know if it works

    Leave a comment:


  • usmanhfd
    replied
    hi,

    Which illegal characters? i didn't get you? the command i am executing on CLI is working fine. .. please check below the output.

    ./centreon_plugins.pl --plugin=network::juniper::mseries:: plugin --mode=hardware --hostname=10.10.10.10 --snmp-version=2c --snmp-community=view --absent-problem --threshold-overload='operating,CRITICAL,^(?!(running)$)^(?!(s tandby)$)' --warning='fru-temperature,.*,40' --critical='fru-temperature,.*,45'

    OK: All 53 components are ok [34/34 frus, 19/19 operatings]. | 'temp_FPC: MPC2E NG PQ & Flex Q @ 2/*/*'=36C;0:40;0:45;; 'temp_Routing Engine 0'=32C;0:40;0:45;; 'temp_Routing Engine 1'=34C;0:40;0:45;; 'temp_CB 0'=27C;0:40;0:45;; 'temp_CB 1'=30C;0:40;0:45;;

    Leave a comment:


  • centurion
    replied
    Hi, merry christmas.
    Can you check your illegal characters please ?

    Leave a comment:


  • usmanhfd
    replied
    Dear, one more issue i am having for hardware monitoring.

    I am trying to add command for juniper MX-240 hardware monitoring. Following is the syntax in centreon command on web interface.

    $USER1$/centreon_plugins.pl --plugin=network::juniper::mseries:lugin --mode=hardware --hostname=$HOSTADDRESS$ --snmp-version=2c --snmp-community=view --absent-problem --no-component --threshold-overload='operating,CRITICAL,(^(?!(running)$)^(?!( standby)$))' --warning='fru-temperature,.*,40' --critical='fru-temperature,.*,45'

    In this i made it like if there is any component with operational state different from "running" or "statndby" then present it as critical. But on service check, centreon is take standby stage as critical which should not be the seen.

    Alarm on web interface:
    "Router-01 Hardware Status CRITICAL 2m 29s 2m 29s 25/12/2016 10:23:32 1/3 (S) CRITICAL: Operating 'Routing Engine 1' state is standby - Operating 'CB 1' state is standby"

    I am running the same command in CLI and it gives no critical alarm.

    ./centreon_plugins.pl --plugin=network::juniper::mseries:lugin --mode=hardware --hostname=10.10.10.10 --snmp-version=2c --snmp-community=view --absent-problem --threshold-overload='operating,CRITICAL,(^(?!(running)$)^(?!( standby)$))' --no-component --warning='fru-temperature,.*,40' --critical='fru-temperature,.*,45'

    Please highlight what i am doing wrong.

    Leave a comment:


  • usmanhfd
    replied
    Thankyou centurion for guide. below command did work.

    $USER1$/centreon_plugins.pl --plugin=network::juniper::mseries: plugin --mode=cpu-routing --hostname=$HOSTADDRESS$ --snmp-version=$_HOSTSNMPVERSION$ --snmp-community=$_HOSTSNMPCOMMUNITY$ --warning=$ARG1$ --critical=$ARG2$

    Leave a comment:


  • centurion
    replied
    Hi,
    if you want to monitor this it's like everything else....
    Create a command, create you're service...
    orry but I didn't really understand your question
    Everything which comes after the pipe in the result of you're plugin will be used to build the graph :

    OK: All CPU(s) average usages are ok | 'cpu_Routing Engine 0'=4%;;;0;100 'load1_Routing Engine 0'=0;;;0; 'load5_Routing Engine 0'=3;;;0; 'load15_Routing Engine 0'=2;;;0; 'cpu_Routing Engine 1'=0%;;;0;100 'load1_Routing Engine 1'=12;;;0; 'load5_Routing Engine 1'=8;;;0; 'load15_Routing Engine 1'=7;;;0;

    ==

    Result_of_your_plugin | 'name_of_the_1st_curve_in_your_graph'=value_of_the _1st_curve 'name_of_the_2nd_curve_in_your_graph'=value_of_the _2nd_curve ...

    Sorry if this doesn't answer your question, I just don't know what you want to know.

    Regards

    Leave a comment:


  • usmanhfd
    replied
    come on Team centreon, waiting for your reply

    Leave a comment:


  • usmanhfd
    started a topic Juniper cpu, memory & temperature monitoring

    Juniper cpu, memory & temperature monitoring

    Dear Users,

    I want to monitor CPU, Memory and temperature of my Juniper MX-240, SRX-3400 & BTI switches. There is guide related to download and utilize centreon master plugin pack but no guide available that how we can load it centreon poller/engine in order to add services/graphs for required KPIs.

    this is the i followed https://github.com/centreon/centreon-plugins and also getting below responses from command line but need to know that how we can add service/graphs for this.


    perl centreon_plugins.pl --plugin=network::juniper::mseries:: plugin --mode=cpu-routing --hostname=10.10.10.254 --snmp-version=2c --snmp-community=view
    OK: All CPU(s) average usages are ok | 'cpu_Routing Engine 0'=4%;;;0;100 'load1_Routing Engine 0'=0;;;0; 'load5_Routing Engine 0'=3;;;0; 'load15_Routing Engine 0'=2;;;0; 'cpu_Routing Engine 1'=0%;;;0;100 'load1_Routing Engine 1'=12;;;0; 'load5_Routing Engine 1'=8;;;0; 'load15_Routing Engine 1'=7;;;0;

    perl centreon_plugins.pl --plugin=network::juniper::mseries:: plugin --mode=memory-routing --hostname=10.10.10.254 --snmp-version=2c --snmp-community=view
    OK: All memory usages are ok | 'used_Routing Engine 0'=2742907043.84B;;;0;17143169024 'used_Routing Engine 1'=2571475353.6B;;;0;17143169024

    Experts, please guide.
Working...
X