Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Cisco interface operational status monitor
Goto page 1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
flipflap
Cacti User


Joined: 09 Jul 2005
Posts: 137

PostPosted: Tue Nov 14, 2006 9:06 am    Post subject: Cisco interface operational status monitor Reply with quote

this will let you know operational status of cisco interface. with this you could monitor interface status via thold


change input to output.JPG
 Description:
change "input" to "output" on interface.xml file under snmp_queries folder
 Filesize:  11.67 KB
 Viewed:  26858 Time(s)

change input to output.JPG



cacti_graph_template_interface_status.xml
 Description:
graph template

Download
 Filename:  cacti_graph_template_interface_status.xml
 Filesize:  10.6 KB
 Downloaded:  1546 Time(s)


cacti_data_template_interface_status.xml
 Description:
data template

Download
 Filename:  cacti_data_template_interface_status.xml
 Filesize:  7.02 KB
 Downloaded:  1154 Time(s)


cacti_data_query_snmp_interface_statistics.xml
 Description:
data query

Download
 Filename:  cacti_data_query_snmp_interface_statistics.xml
 Filesize:  114.99 KB
 Downloaded:  1323 Time(s)



Last edited by flipflap on Tue Nov 14, 2006 9:17 am; edited 1 time in total
Back to top
flipflap
Cacti User


Joined: 09 Jul 2005
Posts: 137

PostPosted: Tue Nov 14, 2006 9:10 am    Post subject: Reply with quote

sample output


interface status.JPG
 Description:
sample output
 Filesize:  51.21 KB
 Viewed:  26857 Time(s)

interface status.JPG


Back to top
flipflap
Cacti User


Joined: 09 Jul 2005
Posts: 137

PostPosted: Tue Nov 14, 2006 9:14 am    Post subject: Reply with quote

for threshold


threshold template.JPG
 Description:
threshold template
 Filesize:  37.5 KB
 Viewed:  26855 Time(s)

threshold template.JPG


Back to top
argon0
Cacti User


Joined: 12 Mar 2004
Posts: 238

PostPosted: Thu Dec 21, 2006 4:46 am    Post subject: Reply with quote

OK, I tried this, but have had no joy... What is the SNMP string you are queying.. Ah I see its in the jpg... Lets see what getif gives me...

WEll getif gives me values of up and down, put WSPingPro gives me 1s and 2s...

So where is the problem...

Must be in the query...
Back to top
mullstu



Joined: 05 Jan 2007
Posts: 10

PostPosted: Fri Jan 05, 2007 10:15 am    Post subject: Graph Info does not show anything Reply with quote

I imported the XML files and then configured my devices, however my graphs are not showing any info. They are created and I can view them, but the current status show 0 for the interface.

Any chance you may know why?
Back to top
cwahlin
Cacti User


Joined: 10 Oct 2003
Posts: 87

PostPosted: Mon Jan 08, 2007 3:39 am    Post subject: Reply with quote

I get an error in the log:

CACTID: Host[4] DS[5155] WARNING: Result from SNMP not valid. Partial Result: ...

which seems to cause my graph values to be all 0. Haven't looked any deeper so not sure why this is happening.

/Carl
Back to top
argon0
Cacti User


Joined: 12 Mar 2004
Posts: 238

PostPosted: Mon Jan 08, 2007 8:44 am    Post subject: Reply with quote

cwahlin - I get the same...
Back to top
mullstu



Joined: 05 Jan 2007
Posts: 10

PostPosted: Mon Jan 08, 2007 8:57 am    Post subject: Reply with quote

Going through my logs this is what I get. It is the same error for each host I am monitoring. Not sure what the cause is.

CMDPHP: Poller[0] Host[29] DS[368] WARNING: Result from SNMP not valid. Partial Result: up(1

One thing I didn't change was the interfae.xml. I left it as input instead of output. Could that be the issue?
Back to top
argon0
Cacti User


Joined: 12 Mar 2004
Posts: 238

PostPosted: Mon Jan 08, 2007 9:01 am    Post subject: Reply with quote

Could be - doesn't seem to make any difference as far as I can see!
Back to top
mullstu



Joined: 05 Jan 2007
Posts: 10

PostPosted: Mon Jan 08, 2007 9:04 am    Post subject: Reply with quote

I just made the change. I will post the results soon
Back to top
mullstu



Joined: 05 Jan 2007
Posts: 10

PostPosted: Mon Jan 08, 2007 12:28 pm    Post subject: Reply with quote

Still no luck. Any ideas?
Back to top
flipflap
Cacti User


Joined: 09 Jul 2005
Posts: 137

PostPosted: Mon Jan 08, 2007 12:58 pm    Post subject: Reply with quote

hi, can you import the files below and see what happens.

check the file "interface.xml" you should see this

<ifOperStatus>
<name>Status</name>
<method>walk</method>
<source>value</source>
[b]<direction>output</direction>[/b]
<oid>.1.3.6.1.2.1.2.2.1.8</oid>
</ifOperStatus>

direction should be output.

i use USR to test query the interfaces it returns either 1 or 2. under graph management when you turn debugging on does it say "rrdtool says: ok"?

one more thing under data template --> interface status --> data source type must be "gauge"

hope that helps



cacti_graph_template_interface_status.xml
 Description:
graph_template

Download
 Filename:  cacti_graph_template_interface_status.xml
 Filesize:  10.6 KB
 Downloaded:  1071 Time(s)


cacti_data_template_interface_status.xml
 Description:
data_template

Download
 Filename:  cacti_data_template_interface_status.xml
 Filesize:  7.02 KB
 Downloaded:  804 Time(s)


cacti_data_query_snmp_interface_statistics.xml
 Description:
data_query

Download
 Filename:  cacti_data_query_snmp_interface_statistics.xml
 Filesize:  115.95 KB
 Downloaded:  1121 Time(s)

Back to top
flipflap
Cacti User


Joined: 09 Jul 2005
Posts: 137

PostPosted: Mon Jan 08, 2007 1:05 pm    Post subject: Reply with quote

also check graph template and the drop down thingy, you should see "status" there


cacti interface status.JPG
 Description:
check for status
 Filesize:  56.57 KB
 Viewed:  25709 Time(s)

cacti interface status.JPG


Back to top
mullstu



Joined: 05 Jan 2007
Posts: 10

PostPosted: Mon Jan 08, 2007 1:44 pm    Post subject: Reply with quote

I checked all of these and everything is confiurgured and set the way you stated. Not sure why the graphiong piece isn't working
Back to top
flipflap
Cacti User


Joined: 09 Jul 2005
Posts: 137

PostPosted: Mon Jan 08, 2007 2:13 pm    Post subject: Reply with quote

what does graph debug say?

try this thrread

http://forums.cacti.net/viewtopic.php?t=17368&start=0&postdays=0&postorder=asc&highlight=interface+status

also set poller log to debbug and look for the string 1.3.6.1.2.1.2.2.1.8. you should get an output of either 1 or 2. see attached pic



int status log.JPG
 Description:
int status log
 Filesize:  21.35 KB
 Viewed:  25686 Time(s)

int status log.JPG




Last edited by flipflap on Mon Jan 08, 2007 2:24 pm; edited 2 times in total
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page 1, 2, 3, 4, 5  Next
Page 1 of 5

 



Powered by phpBB © 2001, 2005 phpBB Group