Search found 24 matches

by red_neon
Thu Mar 31, 2016 1:40 pm
Forum: Scripts and Templates
Topic: Monitoring of BGP session via Quagga daemon in Linux
Replies: 26
Views: 24966

Re: [FIX] - MySQL Problem with 'Get BGP Neighbors Informatio

mysql> use cacti Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> SELECT * FROM (SELECT host_id, snmp_query_id, snmp_index, MAX(CASE WHEN field_name='as_number' THEN field_value ELSE NULL END) A...
by red_neon
Thu Feb 11, 2016 11:02 pm
Forum: Scripts and Templates
Topic: Monitoring of BGP session via Quagga daemon in Linux
Replies: 26
Views: 24966

Re: Monitoring of BGP session via Quagga daemon in Linux

gslavic, good! Do other queries work? I mean standard templates like traffic etc. snmp_quagga_bgpd_router_queries.xml is a small table, i think your Cacti could not run snmpwalk cmd, try check path in settings /cacti/settings.php?tab=path P.S. I added problem solution with SELinux to first post :) #...
by red_neon
Thu Feb 11, 2016 2:08 am
Forum: Scripts and Templates
Topic: Monitoring of BGP session via Quagga daemon in Linux
Replies: 26
Views: 24966

Re: Monitoring of BGP session via Quagga daemon in Linux

[root@localhost ~]# getenforce Enforcing [root@localhost ~]# snmpwalk -v 2c -c public 127.00.0.1 .1.3.6.1.4.1.2021.190.1000.3 UCD-SNMP-MIB::ucdavis.190.1000.3.1.0 = INTEGER: 1 UCD-SNMP-MIB::ucdavis.190.1000.3.1.0.1 = INTEGER: 1 UCD-SNMP-MIB::ucdavis.190.1000.3.1.1.1 = INTEGER: 2 UCD-SNMP-MIB::ucdav...
by red_neon
Wed Feb 10, 2016 1:18 pm
Forum: Scripts and Templates
Topic: Monitoring of BGP session via Quagga daemon in Linux
Replies: 26
Views: 24966

Re: Monitoring of BGP session via Quagga daemon in Linux

gslavic, I think I understood where is the problem, SELinux blocking access for snmpd. I checked script with disabled selinux and it works. If you do not want to disable snmp-module in selinux - then try create rules for it :D . UPD: disable just snmp module in selinux: semodule -d snmp systemctl re...
by red_neon
Wed Feb 10, 2016 11:20 am
Forum: Scripts and Templates
Topic: Monitoring of BGP session via Quagga daemon in Linux
Replies: 26
Views: 24966

Re: Monitoring of BGP session via Quagga daemon in Linux

Did you try run script in root-mode? my $_ROOT = 1; # Path to "vtysh" my $_vtysh = "/usr/bin/vtysh"; Or tried to change path to files with data? # Temp files for Cron-mode my $_file_ipsum = "/tmp/snmp_quagga_bgpd_ipsum"; my $_file_rosum = "/tmp/snmp_quagga_bgpd_ros...
by red_neon
Wed Feb 10, 2016 11:02 am
Forum: Scripts and Templates
Topic: Monitoring of BGP session via Quagga daemon in Linux
Replies: 26
Views: 24966

Re: Monitoring of BGP session via Quagga daemon in Linux

:D
Try to stop snmpd and run it manually

Code: Select all

systemctl stop snmpd
/usr/sbin/snmpd -LS0-6d -f -u root
I checked this command on my debian and it is works ok
by red_neon
Wed Feb 10, 2016 9:46 am
Forum: Scripts and Templates
Topic: Monitoring of BGP session via Quagga daemon in Linux
Replies: 26
Views: 24966

Re: Monitoring of BGP session via Quagga daemon in Linux

gslavic,

Good, your snmpd daemon is running from user, who does not access to directory /tmp/ (could not reading data from /tmp/snmp_quagga_bgpd* files). Check command line with which runned snmpd and check user (snmp by default) in /etc/passwd. Maybe user snmp is locked in some directory
by red_neon
Tue Feb 09, 2016 5:45 pm
Forum: Scripts and Templates
Topic: Monitoring of BGP session via Quagga daemon in Linux
Replies: 26
Views: 24966

Re: Monitoring of BGP session via Quagga daemon in Linux

gslavic, do this: /usr/bin/perl /etc/srv_scripts/snmp_quagga_bgpd_mon.pl then type: getnext .1.3.6.1.4.1.2021.190.1000.3.1.2 Output must be like this: root@mini:/home/red_neon# /usr/bin/perl /etc/srv_scripts/snmp_quagga_bgpd_mon.pl getnext .1.3.6.1.4.1.2021.190.1000.3.1.2 .1.3.6.1.4.1.2021.190.1000....
by red_neon
Tue Feb 09, 2016 5:03 pm
Forum: Scripts and Templates
Topic: Monitoring of BGP session via Quagga daemon in Linux
Replies: 26
Views: 24966

Re: Monitoring of BGP session via Quagga daemon in Linux

gslavic, show:

Code: Select all

ls -alh /tmp/snmp_quagga_bgpd*
and

Code: Select all

cat /tmp/snmp_quagga_bgpd_ipsum
and

Code: Select all

vtysh -c "show ip bgp summary"
by red_neon
Mon Apr 06, 2015 4:44 pm
Forum: Scripts and Templates
Topic: Netfilter Conntrack Status (shows all current connections)
Replies: 24
Views: 30314

Re: Netfilter Conntrack Status (shows all current connection

First post has been updated!

Attached new snmp_execscripts.php for new versions of Net-SNMP with "extend" only option.
Replace snmp_execscripts.php on new and change "exec" to "extend" in snmpd.conf
by red_neon
Mon Apr 06, 2015 4:43 pm
Forum: Scripts and Templates
Topic: Netfilter Conntrack Status (shows all current connections)
Replies: 24
Views: 30314

Re: Netfilter Conntrack Status (shows all current connection

is it possible to make a version of the cacti templates to work with new snmpd? The new snmpd no longer allows exec, and extend has a different format which doesnt work with the templates. I made a new script for cacti to use instead of the existing php script, which works on extend instead of exec...
by red_neon
Mon Apr 06, 2015 4:14 pm
Forum: Scripts and Templates
Topic: Monitoring of interrupts on the network interfaces in Linux.
Replies: 0
Views: 944

Monitoring of interrupts on the network interfaces in Linux.

screenshot-1.png screenshot-2.png ======================================================================= DESCRIPTION * snmp_sys_interrupts.pl * v0.1 (2015.04.06) * by red_neon * Monitoring of interrupts in Linux system. For network interfaces and other devices. ====================================...
by red_neon
Sat Feb 22, 2014 5:34 am
Forum: Scripts and Templates
Topic: Netfilter Conntrack Status (shows all current connections)
Replies: 24
Views: 30314

Re: Netfilter Conntrack Status (shows all current connection

yes sorry I meant ip_conntrack. and its working fine after I disabled the ipv6. but had to look for the conntrack tool as wasnt in the default yum repo on centos5. /proc/net/ip_conntrack shows only ipv4 (if nf_conntrack_ipv4 loaded) /proc/net/nf_conntrack shows all proto (if nf_conntrack_ipv4 and n...
by red_neon
Sat Feb 22, 2014 5:21 am
Forum: Scripts and Templates
Topic: Monitoring of BGP session via Quagga daemon in Linux
Replies: 26
Views: 24966

Re: Monitoring of BGP session via Quagga daemon in Linux

First post has been updated! CHANGES Monitoring BGP session via Quagga daemon in Linux v1.0a - 2014.02.22: 1. fixed: incorrect reading the string in command "show ip bgp summary" when the peer with State/PfxRcd: Idle (Admin) How to update previous version 1.0: 1. Replace old snmp_quagga_b...
by red_neon
Sat Feb 22, 2014 5:19 am
Forum: Scripts and Templates
Topic: Monitoring of BGP session via Quagga daemon in Linux
Replies: 26
Views: 24966

Re: Monitoring of BGP session via Quagga daemon in Linux

PSI wrote:There is a bug in the solution. When the first neighbor is in the Idle (Admin) state, you won't get any neighbor stats ( UCD-SNMP-MIB::ucdavis.190.1000.3.2.0 = INTEGER: 0 )
Thanks! Corrected.