So the nitty gritty is our SNMP trap sender is configured to send on critical & hard state. Which is a 1 time deal until the device is back up... The problem with this is if it happens outside store hours our NNMI admin is going to throw the events away. So what we'd like to do is schedule passive checks upon store opening per time zone for all devices in those stores.
Manually doing it per device looks Something like this:
When manually testing this it resets the counter on the hard state and will resend the trap and ticket within store hours which is what we want. We'll also have all these devices stored by time zone. So if there's a way we can script kicking off passive checks by Host Group that'd probably be the easiest solution.
Thoughts?
Scheduling Passive checks possible?
-
JakeHatMacys
- Posts: 281
- Joined: Thu Sep 25, 2014 3:21 pm
Scheduling Passive checks possible?
You do not have the required permissions to view the files attached to this post.
Re: Scheduling Passive checks possible?
Well, the manual command submission actually does not run a check, it simulated running a check by returning a new passive - but does not actually run a check.
There is no way to schedule a passive check from the XI side - it must be scheduled on the remote host either through cron/task scheduler/ at/etc.
Are you looking more to reset states of objects? If so, then the forced passive check result could absolutely do this for you.
There is no way to schedule a passive check from the XI side - it must be scheduled on the remote host either through cron/task scheduler/ at/etc.
Are you looking more to reset states of objects? If so, then the forced passive check result could absolutely do this for you.
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.
"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.
-
JakeHatMacys
- Posts: 281
- Joined: Thu Sep 25, 2014 3:21 pm
Re: Scheduling Passive checks possible?
Yes, do you have an example on how to do this?abrist wrote:Well, the manual command submission actually does not run a check, it simulated running a check by returning a new passive - but does not actually run a check.
There is no way to schedule a passive check from the XI side - it must be scheduled on the remote host either through cron/task scheduler/ at/etc.
Are you looking more to reset states of objects? If so, then the forced passive check result could absolutely do this for you.
Re: Scheduling Passive checks possible?
Well there are a few ways to do this. A couple questions first:
Are you looking at setting these objects top an ok state every morning or are you trying to set them to a problem state detected earlier?
You do understand that any snmp/passive problem states checked during the night cannot be "replayed", right?
Are you looking at setting these objects top an ok state every morning or are you trying to set them to a problem state detected earlier?
You do understand that any snmp/passive problem states checked during the night cannot be "replayed", right?
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.
"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.
-
JakeHatMacys
- Posts: 281
- Joined: Thu Sep 25, 2014 3:21 pm
Re: Scheduling Passive checks possible?
Just trying to top them off in an Okay state every morning per time zone. That way if there's still an issue (in our case port check) if the port is still down we'll then send another trap upon store opening. Only goal is to create state changes artificially so we hit the hard state again in other words.abrist wrote:Well there are a few ways to do this. A couple questions first:
Are you looking at setting these objects top an ok state every morning or are you trying to set them to a problem state detected earlier?
You do understand that any snmp/passive problem states checked during the night cannot be "replayed", right?
Understood that this does nothing for problem detection that may have occurred over night but resolved itself. Most of our issues will be up down in these cases since stores are closed. Dang cleaning lady unplugging devices and not plugging them back in!!!
Re: Scheduling Passive checks possible?
I think this will help a bit:
https://github.com/brandoconnor/nagios_ ... mmander.sh
It's a shell script that should do what you want, and you can modify it or take from it as you see fit.
https://github.com/brandoconnor/nagios_ ... mmander.sh
It's a shell script that should do what you want, and you can modify it or take from it as you see fit.
Former Nagios employee