How to monitor Juniper SSG5 using Nagios?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Noctis0791
Posts: 58
Joined: Wed Oct 09, 2013 3:41 pm

How to monitor Juniper SSG5 using Nagios?

Post by Noctis0791 »

Hello Guys,

We would like to monitor our Juniper SSG5’s availability and bandwidth traffic using Nagios. I see SNMP is supported on this device (see attached). Can you guys give me an overview how we can accomplish this? May I also know the add-ins/plugins that we could use?

Thank you very much,

Arnel
Attachments
ssg5 SNMP configuration.PNG
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: How to monitor Juniper SSG5 using Nagios?

Post by sreinhardt »

As you likely figured, snmp is probably the best route. I would probably start by suggesting you look at plugins on exchange.nagios.org, and check out the check_ifoperstatus plugin for port status. As for bandwidth, mrtg is what we use for XI but there are many options out there.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Noctis0791
Posts: 58
Joined: Wed Oct 09, 2013 3:41 pm

Re: How to monitor Juniper SSG5 using Nagios?

Post by Noctis0791 »

Thanks sreinhardt, we've enabled snmp on our Juniper SSG5 by following this KB article. Now, we are trying to monitor its uptime using snmp_check but we are getting this error in the pre-flight check. Workaround would be commenting these lines on the template. Any idea how to properly solve this? I'll attach my configs as well. Let me know if you need anything more to check.

check_period 24×7 ;switches are monitored round the clock
notification_period 24×7 ;Send notifications at any time

Thank You,

Arnel
Attachments
attachment.zip
(26.17 KiB) Downloaded 344 times
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: How to monitor Juniper SSG5 using Nagios?

Post by slansing »

You need to define that time period in the timeperiods.cfg file. Then re-verify your configuration files.
Noctis0791
Posts: 58
Joined: Wed Oct 09, 2013 3:41 pm

Re: How to monitor Juniper SSG5 using Nagios?

Post by Noctis0791 »

Thanks slansing! So what should I put on my timeperiods.cfg? Seems like I dont have it enabled yet. Just an example that I could follow for the rest.

Thank You,

Arnel
Attachments
timeperiods.PNG
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: How to monitor Juniper SSG5 using Nagios?

Post by slansing »

We have this documented pretty well, along with some examples:

http://nagios.sourceforge.net/docs/3_0/timeperiods.html
Noctis0791
Posts: 58
Joined: Wed Oct 09, 2013 3:41 pm

Re: How to monitor Juniper SSG5 using Nagios?

Post by Noctis0791 »

Okay, i'll check on it and i'll let you know if I have further questions.

Thanks,

Arnel
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: How to monitor Juniper SSG5 using Nagios?

Post by abrist »

No problem. Cheers.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked