Page 1 of 1

Alert every time output changes

Posted: Wed Mar 08, 2017 1:30 pm
by BanditBBS
OK, I have a need for a service check to alert every time the output changes. I'll use a disk check as an example....

Disk check changes to Hard with output "DISK CRITICAL - free space: /ut1001 12525 MB (8% inode=99%):"

It gets acknowledged so notifications are stopped. However it never gets resolved. So 5 minutes later and every check after it is still critical. I want more notifications when the output changes. For example, the freespace number is lowered or maybe another mount point gets added to the list of filling up mounts.

Is there some method to do this? I was thinking is_volatile, but that'd send the notification every time regardless if output changed(right?).

Re: Alert every time output changes

Posted: Wed Mar 08, 2017 5:48 pm
by ssax
Sounds like state stalking may work for you?

https://assets.nagios.com/downloads/nag ... lking.html

Re: Alert every time output changes

Posted: Wed Mar 08, 2017 6:06 pm
by BanditBBS
I think I need a mix of state stalking and volatile...and that doesn't exist as far as i know :(

I want the features of volatile(logging, notifications, event handlers) but only when the output changes like state stalking.

My topic name is bad, should have said "notifications every time output changes" not alerts, my bad for using bad term

Re: Alert every time output changes

Posted: Thu Mar 09, 2017 11:43 am
by mcapra
Stalking for notifications seems like it'd be useful. Since that would be a Core change first, feel free to bring it up on the github with a reference to this thread:
https://github.com/NagiosEnterprises/nagioscore/issues

Re: Alert every time output changes

Posted: Thu Mar 09, 2017 3:39 pm
by WillemDH
There seems to be some alignment with this thread we made a long time ago. At this moment output changes aren't even properly shown in the state history report, even with state stalking set to 1 for Ok state...

https://support.nagios.com/forum/viewto ... e&start=10

@Nagios Any news on Task ID 7814?

Re: Alert every time output changes

Posted: Thu Mar 09, 2017 3:45 pm
by dwhitfield
@WillemDH, unfortunately, no movement. You managed to get NagViz upgraded in 5.5 and Brian did say in that forum thread that if more users said they wanted it, it would increase odds of it happening, so maybe you can make this happen too. :)

@BanditBBS, did you have more to add or does a github issue work for you for now?

Re: Alert every time output changes

Posted: Thu Mar 09, 2017 3:50 pm
by WillemDH
Well this bug / feature is far less important for us then the NagVis feature. Please do focus on the NagVis feature. I'm trying really hard to not make any other fuzz / feature requests until NagVis is upgraded. Just thought (except for the alerting) the fact the stalking changes are missing from the state history report was something interesting to know for Bandit.

Re: Alert every time output changes

Posted: Thu Mar 09, 2017 4:14 pm
by dwhitfield
@WillemDH, I doubt it matters. If you FR something now, it has a better chance of making it in 5.5. If you wait for 5.5, it obviously won't make it in.

Plus, if this is a Core FR on github, it has a different timeline anyway.

Re: Alert every time output changes

Posted: Thu Mar 09, 2017 4:53 pm
by BanditBBS
I opened one on git, very short text though, I've been slammed all week and honestly barely had time to open the browser other than the forums :(

But yeah, you can close this one for now.