Search found 44 matches
- Wed Aug 12, 2015 4:31 am
- Forum: Help: General
- Topic: difference between Data Input Method and Data Queries
- Replies: 6
- Views: 998
Re: difference between Data Input Method and Data Queries
Hi, I tried your script, but I have either blank graphs, either incorrect values. Data were inverted on graphs. I tried to sort the output to always have the same order, but still the same. So I got back to my script, improving it. On device with few SNMP requests, it works fine. But on device with ...
- Wed Jul 29, 2015 3:41 am
- Forum: Help: General
- Topic: difference between Data Input Method and Data Queries
- Replies: 6
- Views: 998
Re: difference between Data Input Method and Data Queries
Hello, 3) there is no issue manually performing the script. works fine. I can't turn on the logging level on production site. Virtual machine uses too many ressources on logging and graphs are empty then.. 1)/2) I don't know how to stack values from choosing OIDs "index" on the same graph....
- Tue Jul 28, 2015 3:12 am
- Forum: Help: General
- Topic: difference between Data Input Method and Data Queries
- Replies: 6
- Views: 998
Re: difference between Data Input Method and Data Queries
Hi, thanks for the answer :wink: There is no problems with the scripts when I ran them in shell, even using cacti user. there is nothing wrong in logs or rdd files. juste a timeout from the device, and then a NaN on graphs... for exemple, the last script I made retrieves data in SNMP, using perl: [u...
- Mon Jul 27, 2015 11:24 am
- Forum: Help: General
- Topic: difference between Data Input Method and Data Queries
- Replies: 6
- Views: 998
difference between Data Input Method and Data Queries
Hi, I'd like to understand how cacti works with the scripts. Is there some priorities for the queries? We're monitoring a lot of devices (about 10500), and I'm wondering why graphs are ok with XML files and Data Query, and why there are empty data from time to time on the same device with a script (...
- Thu Nov 06, 2014 9:07 am
- Forum: Scripts and Templates
- Topic: [Resolved] NaN issue on Script Data Query
- Replies: 9
- Views: 2489
Re: NaN issue on Script Data Query
Well, that works
Thank you
Thank you
- Thu Nov 06, 2014 8:54 am
- Forum: Scripts and Templates
- Topic: [Resolved] NaN issue on Script Data Query
- Replies: 9
- Views: 2489
Re: NaN issue on Script Data Query
Thanks a lot :) First I had this result (just the part we are interested in) Host[12957] TH[1] DS[214319] SCRIPT: /usr/local/bin/php -q /usr/local/share/cacti/scripts/query_connectivity_adva_oam.php X.X.X.X community 2 161 2000 100 "" "" "" "" "" &qu...
- Thu Nov 06, 2014 7:37 am
- Forum: Scripts and Templates
- Topic: [Resolved] NaN issue on Script Data Query
- Replies: 9
- Views: 2489
Re: NaN issue on Script Data Query
I modified the utility.php library. Deteled the graph, reloaded the data query (just in case) and created a new graph it's better in the poller cache :) ADVA-IXEN-14060152_OAM_1_2 - Connectivity Script: /usr/local/bin/php -q /usr/local/share/cacti/scripts/query_connectivity_adva_oam.php X.X.X.X comm...
- Thu Nov 06, 2014 5:17 am
- Forum: Scripts and Templates
- Topic: [Resolved] NaN issue on Script Data Query
- Replies: 9
- Views: 2489
Re: NaN issue on Script Data Query
Hi,
All the others scripts run well... But I didn't rebuild the Poller Cache..
What's the impact on the other scripts or whatever if I change the library for removing the addslashes function?
All the others scripts run well... But I didn't rebuild the Poller Cache..
What's the impact on the other scripts or whatever if I change the library for removing the addslashes function?
- Thu Nov 06, 2014 4:32 am
- Forum: Scripts and Templates
- Topic: [Resolved] NaN issue on Script Data Query
- Replies: 9
- Views: 2489
Re: NaN issue on Script Data Query
Even without the debug logging level it returns data. That's the quote after the "Poller Cache quote" in my previous message.
It only returns 0 or 1, depending on the connectivity of the link.
It only returns 0 or 1, depending on the connectivity of the link.
- Wed Nov 05, 2014 12:31 pm
- Forum: Scripts and Templates
- Topic: [Resolved] NaN issue on Script Data Query
- Replies: 9
- Views: 2489
[Resolved] NaN issue on Script Data Query
Hi, I'm trying to use for the first time a Script Data Query, and used the HowTo page I have a NaN issue. Nothing in logs about that host, the query seen in the poller is working, I changed the Data Template with "U" as Maximal value, but still the same.. + Running data query [61]. + Found...
- Fri Aug 22, 2014 8:17 am
- Forum: Scripts and Templates
- Topic: XML Data Query for Ciena
- Replies: 10
- Views: 2523
Re: XML Data Query for Ciena
gslamAGPortPrimaryState OBJECT-TYPE (.1.3.6.1.4.1.7737.7.2.9.2.1.8.1.1.7) SYNTAX PrimaryStateValue MAX-ACCESS read-write STATUS current DESCRIPTION "Indicates the primary state of this GSLAM-AG port." ::= { gslamAGPortEntry 7 } snmpwalk -v2c -c xxx XXXXXXX 1.3.6.1.4.1.7737.7.2.9.2.1.8.1.1....
- Thu Aug 21, 2014 9:53 am
- Forum: Scripts and Templates
- Topic: XML Data Query for Ciena
- Replies: 10
- Views: 2523
Re: XML Data Query for Ciena
Hi, I added this line: <oid_index_parse>OID/REGEXP:^.{37}(.*)</oid_index_parse> and got this result: + Running data query [48]. + Found type = '3' [SNMP Query]. + Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/interface-ciena_a_classic.xml' + XML file parsed ok. + <oid_nu...
- Mon Aug 18, 2014 8:21 am
- Forum: Scripts and Templates
- Topic: XML Data Query for Ciena
- Replies: 10
- Views: 2523
Re: XML Data Query for Ciena
.1.3.6.1.4.1.7737.7.2.9.2.1.8.1.1.2.1.x.y x: slot y: port In this device, the card in slot 1 has 6 ports, the one in slot 2 only 3 ports etc etc It's really no counters. It gives the indexes of the interface. Having a xml file would be easier for me. With an "Input Data Method", I'll have ...
- Fri Aug 08, 2014 11:00 am
- Forum: Scripts and Templates
- Topic: XML Data Query for Ciena
- Replies: 10
- Views: 2523
Re: XML Data Query for Ciena
The XML file seems to be correct in the first post. It has the number of interfaces the device really has. [lde@xxxxx /usr/local/share/cacti/resource/snmp_queries]$ snmpwalk -v2c -c X xxx.xxx.xxx.xxx .1.3.6.1.4.1.7737.7.2.9.2.1.8.1.1.2.1 SNMPv2-SMI::enterprises.7737.7.2.9.2.1.8.1.1.2.1.1.1 = Gauge32...
- Fri Aug 01, 2014 4:21 am
- Forum: Scripts and Templates
- Topic: XML Data Query for Ciena
- Replies: 10
- Views: 2523
Re: XML Data Query for Ciena
Hi, If I change that OID index, this is what I get on the verbose query (the end of it is the same as the previous I gave): + Running data query [48]. + Found type = '3' [SNMP Query]. + Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/interface-ciena_a_classic.xml' + XML fi...