Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
erictech
byerictech, December 8, 2016
This does exactly what I needed and works for models 5548 and N2048.
I did come across an issue when a switch is in a stack. The fan temps check does not calculate the proper exit status. Here is my diff for the changes I added to fix this:
212a213
> if [ $TEMPS_EXIT_STATUS -lt '2' ]; then
213a215,217
> else
> TEMPS_EXIT_STATUS=2
> fi
215a220
> if [ $TEMPS_EXIT_STATUS -lt '1' ]; then
216a222
>
The only other thing I see that would make this more awesome, is to add the global status health check. There is another module on the exchange that does and I may add it to this one. It uses the productStatusGlobalStatus mib. It may be redundant to check the fans, temp, psus AND health, but in certain places, a simple health check may be sufficient.
I did come across an issue when a switch is in a stack. The fan temps check does not calculate the proper exit status. Here is my diff for the changes I added to fix this:
212a213
> if [ $TEMPS_EXIT_STATUS -lt '2' ]; then
213a215,217
> else
> TEMPS_EXIT_STATUS=2
> fi
215a220
> if [ $TEMPS_EXIT_STATUS -lt '1' ]; then
216a222
>
The only other thing I see that would make this more awesome, is to add the global status health check. There is another module on the exchange that does and I may add it to this one. It uses the productStatusGlobalStatus mib. It may be redundant to check the fans, temp, psus AND health, but in certain places, a simple health check may be sufficient.
byerictech, June 15, 2016