unknaszero option
Moderators: Developers, Moderators
unknaszero option
When SNMP query doesn't return anything, Cacti draws nothing and thats fine, but when SNMP starts working again Cacti fills the empty space on the graph as if there was no problem. Is there any way to fix it?
in MRTG for instance there is a "unknaszero option". Does Cacti have anything liek that?
in MRTG for instance there is a "unknaszero option". Does Cacti have anything liek that?
-
- Posts: 35
- Joined: Thu Jun 05, 2008 8:53 pm
.
I will try to describe the problem Im facing in more details.SecuringStuff wrote:Hi UstasAlex,
Please forgive me if I did not understand your question correctly.
Cacti shows the unknown data in gray color and if your cacti does not then you can add it to the graph template.
it seems to me that gray area or 0 line/area are the same.
Regards,
I have Cacti and MRTG installed on freebsd box. They both monitor the number of VPDN sessions on cisco router. They query the router every minute.
Yesterday I accidently wrote an ACL that denied all SNMP traffic on the router. That ACL was on for 15 minutes. Then I corrected the ACL.
But when I looked at the Cacti and MRTG grapgh I saw that there was no indication of the fact that the router was unreachable for 15 minutes.
both Cacti and MRTG showed graphs as if there was no problem.
After reading MRTG FAQ I found out that mrtg tends to draw a number from last susccessful SNMP response. so for instance when I turned SNMP down on the router I had 1544 sessions. and MRTG kept drawing this number for 15 minutes until I corrected ACL. Cacti probably did the same thing.
So MRTG FAQ says that by using "unknaszero option" the number can be switched to zero if no SNMP response from the queried device comes.
I used that option and denied SNMP once again and saw that it did work for MRTG. so I could see on my mrtg graph for how long the router was unreachable by SNMP. How can I do the same thing for Cacti?
-
- Posts: 35
- Joined: Thu Jun 05, 2008 8:53 pm
Re: unknaszero option
1) Post a picture of the graph with this occuring.UstasAlex wrote:When SNMP query doesn't return anything, Cacti draws nothing and thats fine, but when SNMP starts working again Cacti fills the empty space on the graph as if there was no problem. Is there any way to fix it?
in MRTG for instance there is a "unknaszero option". Does Cacti have anything liek that?
2) It's rrdtool which does the graphing, NOT cacti. Read up on how rrdtool functions and it's options.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: unknaszero option
No and yes.UstasAlex wrote:Does Cacti have anything liek that?
It does NOT have it as a default CDEF, but you may simply add this CDEF and apply it to all grph items you want.
Reinhard
Re: unknaszero option
could you please explain what CDEF is and how I apply it?gandalf wrote:No and yes.UstasAlex wrote:Does Cacti have anything liek that?
It does NOT have it as a default CDEF, but you may simply add this CDEF and apply it to all grph items you want.
Reinhard
-
- Posts: 35
- Joined: Thu Jun 05, 2008 8:53 pm
Re: unknaszero option
Hi,could you please explain what CDEF is and how I apply it?
Please read http://www.cacti.net/downloads/docs/html/cdefs.html
Regards,
Who is online
Users browsing this forum: No registered users and 0 guests