Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
check_sfp_juniper
Current Version
1.0
Last Release Date
2019-08-31
Compatible With
- Nagios 2.x
- Nagios 3.x
Owner
License
GPL
Hits
2010
Files:
File | Description |
---|---|
check_sfp_juniper.pl | check_sfp_juniper.pl |
Help Support Ethan Galstad's New Project:
A Message From The Founder...
As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.
I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.
I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.
You can learn more about my project by visiting ethangalstad.me/nagios. Thank you for your time. I wish you all the best in your endeavors, whatever they may be.
- Ethan
The plugin receives the warning and critical power limits (from the SFP firmware) and compares the current readings with these and will then either issue a WARNING or CRITICAL if limits are exceeded.
Interfaces that are admin-down are ignored (laser turned off). Regular interfaces that are down are monitored and will cause a CRITICAL state, so please disable these if they are not used (also saves the transceivers life due to the laser beeing shutdown).
Only ge- and xe- interfaces are monitored, however this can be changed
by modifing the xe-|ge- filter in the script.
This plugin is based on check_cisco_sfp.
Currently does not support the temp/supply/bias options, only power is working.
Usage:
./check_sfp_juniper.pl --hostname your_router_ip --community SECRETCOMM --type power
Example output:
OK - xe-4/0/0 NORMAL RX: -10.92 dbm TX: 2.04 dbm
xe-4/1/0 NORMAL RX: -5.41 dbm TX: -1.26 dbm
xe-4/2/0 NORMAL RX: -10.85 dbm TX: 3.91 dbm
xe-4/3/0 NORMAL RX: 0 dbm TX: 0 dbm
xe-2/0/0 NORMAL RX: -40 dbm TX: 0 dbm
xe-2/0/1 NORMAL RX: -4.7 dbm TX: -0.78 dbm
xe-2/0/2 NORMAL RX: -3.08 dbm TX: -0.26 dbm
xe-2/0/3 NORMAL RX: -5.39 dbm TX: -1.84 dbm
xe-2/1/0 NORMAL RX: -8.93 dbm TX: 1.78 dbm
Example config:
define command {
command_name check_sfp_juniper
command_line /usr/bin/perl /usr/lib/nagios/plugins/check_sfp_juniper.pl --hostname $HOSTADDRESS$ --community $ARG1$ --type power
}
define service{
hostgroups routers
use generic-service
check_command check_sfp_juniper!"SECRETCOMM"
service_description Optical Power
check_interval 5
retry_interval 1
contact_groups admins
}
Interfaces that are admin-down are ignored (laser turned off). Regular interfaces that are down are monitored and will cause a CRITICAL state, so please disable these if they are not used (also saves the transceivers life due to the laser beeing shutdown).
Only ge- and xe- interfaces are monitored, however this can be changed
by modifing the xe-|ge- filter in the script.
This plugin is based on check_cisco_sfp.
Currently does not support the temp/supply/bias options, only power is working.
Usage:
./check_sfp_juniper.pl --hostname your_router_ip --community SECRETCOMM --type power
Example output:
OK - xe-4/0/0 NORMAL RX: -10.92 dbm TX: 2.04 dbm
xe-4/1/0 NORMAL RX: -5.41 dbm TX: -1.26 dbm
xe-4/2/0 NORMAL RX: -10.85 dbm TX: 3.91 dbm
xe-4/3/0 NORMAL RX: 0 dbm TX: 0 dbm
xe-2/0/0 NORMAL RX: -40 dbm TX: 0 dbm
xe-2/0/1 NORMAL RX: -4.7 dbm TX: -0.78 dbm
xe-2/0/2 NORMAL RX: -3.08 dbm TX: -0.26 dbm
xe-2/0/3 NORMAL RX: -5.39 dbm TX: -1.84 dbm
xe-2/1/0 NORMAL RX: -8.93 dbm TX: 1.78 dbm
Example config:
define command {
command_name check_sfp_juniper
command_line /usr/bin/perl /usr/lib/nagios/plugins/check_sfp_juniper.pl --hostname $HOSTADDRESS$ --community $ARG1$ --type power
}
define service{
hostgroups routers
use generic-service
check_command check_sfp_juniper!"SECRETCOMM"
service_description Optical Power
check_interval 5
retry_interval 1
contact_groups admins
}
Reviews (0)
Be the first to review this listing!