Approach for monitoring not always on devices

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.
jriker1
Posts: 115
Joined: Tue Dec 15, 2015 8:40 pm

Approach for monitoring not always on devices

Post by jriker1 »

Looking for some input/insight on the best way to monitor something that is turned on and off as needed. Or maybe I just shouldn't monitor it. In this particular case, can be two items:

1. A network color laser printer. This printer is turned on and off as needed to conserve power and because it's not the primary printer used. Just used for color prints. I would like to know the ink status of it, but would not like to have any alerts should it be off and a check fails.

2. I have one server that we turn on and off for development purposes. it is not used much. Same kind of deal as 1 above, would not like to have any active alerts come across or anything or show horrible critical red messages in the dashboard if it's not on and checks fail.

Thoughts?

Thanks.

JR
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Approach for monitoring not always on devices

Post by rhassing »

For the server you could use passive checks and let the server send the updates when it is switched on.

For the printer you could check and see if it send snmptraps and create a passive checks on your nagios server
Rob Hassing
Image
jriker1
Posts: 115
Joined: Tue Dec 15, 2015 8:40 pm

Re: Approach for monitoring not always on devices

Post by jriker1 »

Thanks for the reply. I think I need a lesson on the difference between passive and active monitoring. Is there a description anywhere on the difference and implications?

Thanks.

JR
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Approach for monitoring not always on devices

Post by rhassing »

Rob Hassing
Image
jriker1
Posts: 115
Joined: Tue Dec 15, 2015 8:40 pm

Re: Approach for monitoring not always on devices

Post by jriker1 »

rhassing wrote:For the printer you could check and see if it send snmptraps and create a passive checks on your nagios server
So I understand this piece correctly. Is the concept that nagios would check if the system is "pinging" and if so run it's checks, otherwise it wouldn't run them? Could you provide an example of a passive check in this situation from Nagios?

Thanks.

JR
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Approach for monitoring not always on devices

Post by hsmith »

Passive checks do nothing more than run the host check on the system, and then send the result to Nagios. Not ping-like mechanism involved. What would you like an example of?
Former Nagios Employee.
me.
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Approach for monitoring not always on devices

Post by rhassing »

Sean Falzon had a talk about passive checks last year at the World conference.
https://youtu.be/k1g4TAK6ipo

What he explains in his talk is that he has a client installed on laptops or desktop PC's which will send their information when a system is online.

Passive checks are always initiated from a client, so its not, if it is pingable. The clients always sends the info when it can...
Rob Hassing
Image
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Approach for monitoring not always on devices

Post by rkennedy »

Thanks @rhassing!

@jriker1 let us know if you have any further questions.
Former Nagios Employee
jriker1
Posts: 115
Joined: Tue Dec 15, 2015 8:40 pm

Re: Approach for monitoring not always on devices

Post by jriker1 »

I am listening to the video now but as the part I originally highlighted I was responding to in my last post, I am talking about the printer. So the printer isn't going to have NSCA or NSClient++ installed to send checks to Nagios. That's where I was curious about the ping concept. So think passive is the right answer, just need an intermediary I would assume to make this happen and that intermediary needs to know when the printer comes online.

"Oh it's up, check on it's ink status". "Hey Nagios, here's the latest from the printer as it came on for a bit".

JR
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Approach for monitoring not always on devices

Post by rkennedy »

I believe what @rhassing refered to was with SNMP passive checks.

Does the printer have SNMP and SNMP trap capabilities?
Former Nagios Employee
Locked