Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

check_netscreen_cpu

Rating
2 votes
Favoured:
0
Hits
146253
Files:
FileDescription
check_netscreen_cpucheck_netscreen_cpu
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Check the average CPU Load of a Juniper Netscreen Firewall
Usage:
-H (--hostname) Hostname to query - (required)
-C (--community) SNMP read community (defaults to public, used with SNMP v1 and v2c)
-v (--snmp_version) 1 for SNMP v1 (default)
2 for SNMP v2c
-p (--port) SNMP port (default 161)
-V (--version) Plugin version
-h (--help) usage help
-w warning level (default 70)
-c critical level (default 90)

Plugin is in perl
Requirements: Net-SNMP, perl Net::SNMP module
Your firewalls must have SNMP enabled, your monitoring host must be authorized on the firewall.
Reviews (2)
[root@nagios ~]# /usr/lib64/nagios/plugins/check_netscreen_cpu -H 10.99.0.251 -C H0STL0C4T10N -w 70 -c 90 -v 2
Argument "noSuchObject" isn't numeric in sprintf at /usr/lib64/nagios/plugins/check_netscreen_cpu line 141.
OK: host '10.99.0.251', CPU Load: Avg:(0.00%)| stat=noSuchObject%;70;90;0;100;
[root@nagios ~]#
bybjornf, January 10, 2014
This one uses 24hour average oid, this change is needed to get 5min average:

#my $snmpnsResCpuAvg = '.1.3.6.1.4.1.3224.16.1.1.0';
my $snmpnsResCpuAvg = '.1.3.6.1.4.1.3224.16.1.3.0';