MRTG ignores decimals?
Re: MRTG ignores decimals?
You can turn off word wrap in notepad (in the menu, under Format, click Word Wrap to remove the check mark next to word wrap) and cut and paste into linux ok.
MRTG ignores decimals?
Dear cmerchant,
No, its not like that, I think there is some chr(13)/chr(10) compatibility issue between Notes/Linux. What I did, when file opened in NOTES (as by default for TXT extension), copy and paste in Wordpad and then select all, copy and paste in Linux (via vi editor).
Okay our main topic is check_rrdtraf not giving alert if values in decimal, giving error : Integer Expected , I tried the new rrd file, but as per my test, its giving alert (red) in the service while viewing from NOCSCREEN or via HOST & SERVICES but not triggering any Alert Notification via Email....so I reverted back to old check_rrdtraf....please re-test in lab.
My another parallel topic going on Email Notification, so I checked and found XI-HOME-Incident Management-Notification, there is no Alert when its critical, I reverted back and then found there is Alert Notification in this Page. Please check in your lab.
Please find attached, I test High Bandwidth around 12:00hrs
You fixing, really will give great help to us........auto message (email alert notification) will go to our customer.
Regards
No, its not like that, I think there is some chr(13)/chr(10) compatibility issue between Notes/Linux. What I did, when file opened in NOTES (as by default for TXT extension), copy and paste in Wordpad and then select all, copy and paste in Linux (via vi editor).
Okay our main topic is check_rrdtraf not giving alert if values in decimal, giving error : Integer Expected , I tried the new rrd file, but as per my test, its giving alert (red) in the service while viewing from NOCSCREEN or via HOST & SERVICES but not triggering any Alert Notification via Email....so I reverted back to old check_rrdtraf....please re-test in lab.
My another parallel topic going on Email Notification, so I checked and found XI-HOME-Incident Management-Notification, there is no Alert when its critical, I reverted back and then found there is Alert Notification in this Page. Please check in your lab.
Please find attached, I test High Bandwidth around 12:00hrs
You fixing, really will give great help to us........auto message (email alert notification) will go to our customer.
Regards
You do not have the required permissions to view the files attached to this post.
Zajil NMS
Re: MRTG ignores decimals?
Zaji, I understand your issue right now is awaiting the check_rrdtraf to go into the next fix release. Without discussing what editor works best to cut and paste, I think you should consult your sysadmin and place the code from sreinhardt's post http://support.nagios.com/forum/posting ... 3#pr115869 and into /usr/local/nagios/libexec/check_rrdtraf, then we could close this thread.
I hope that can help you. I will look into your other MRTG post.
I hope that can help you. I will look into your other MRTG post.
Re: MRTG ignores decimals?
Dear cmerchant
I think you read my last post in hurry. As I said I applied (sreinhardt Mon Nov 03, 2014 5:28 am) and did the test, but it was not successful. Check my attached snapshot, in the NOCSCREEN (Operation Center) there is Critical Alert (left side) but its not generating any Notification (right side) of my screenshot.
Can you do one lab test with (sreinhardt Mon Nov 03, 2014 5:28 am) and let me know, its generating alert in NOCSCREEN (OPERATION CENTER) and also there is EMAIL Notification. Alert in OPERATION CENTER is good enough when monitored by human but we want auto email notification to our customer [which (Email Notification) failed in my test].
Regards
I think you read my last post in hurry. As I said I applied (sreinhardt Mon Nov 03, 2014 5:28 am) and did the test, but it was not successful. Check my attached snapshot, in the NOCSCREEN (Operation Center) there is Critical Alert (left side) but its not generating any Notification (right side) of my screenshot.
Can you do one lab test with (sreinhardt Mon Nov 03, 2014 5:28 am) and let me know, its generating alert in NOCSCREEN (OPERATION CENTER) and also there is EMAIL Notification. Alert in OPERATION CENTER is good enough when monitored by human but we want auto email notification to our customer [which (Email Notification) failed in my test].
Regards
Zajil NMS
Re: MRTG ignores decimals?
Do you have notifications disabled for when that service is flapping?
If so, that could be the reason you didn't receive a notification.
If so, that could be the reason you didn't receive a notification.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: MRTG ignores decimals?
To post an update to what the OP originally posted about, check_rrdtraf ignoring decimals. Here is an updated version, that works to two decimal places. It has no additional dependencies, but is likely slower as it must use bc for all math. I plan to expand the functionality of check_mrtgtraff in plugins to encompass this with a 2.2 release most likely, hopefully then we can get away from bash for this. 
Edit to answer below me: yes this should be fine for 2012+ XI versions.
Edit to answer below me: yes this should be fine for 2012+ XI versions.
You do not have the required permissions to view the files attached to this post.
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.
Re: MRTG ignores decimals?
Dear sreinhardt
Yes....my initial test is okay, alert appeared in OPERATION CENTER (NOCscreen) and also Received Alert Notification via Email.
Just can you please let us know, can be use for any version? I mean 2012 or 2014, any version ?
Regards
Yes....my initial test is okay, alert appeared in OPERATION CENTER (NOCscreen) and also Received Alert Notification via Email.
Just can you please let us know, can be use for any version? I mean 2012 or 2014, any version ?
Regards
Zajil NMS
- snapon_admin
- Posts: 952
- Joined: Mon Jun 10, 2013 10:39 am
- Location: Kenosha, WI
- Contact:
Re: MRTG ignores decimals?
I replied to Spencer's PM but forgot to post here as well. the latest version that Spencer linked in this thread works to correct the issue in the OP. Bandwidth is now alerting properly with thresholds set up to 2 decimal places. Thank you!
Re: MRTG ignores decimals?
OK. Thanks for updating this post. We'll go ahead and close this thread. Thanks.