snmp Script for function fails

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
gkservice
Posts: 2
Joined: Fri Feb 20, 2009 10:30 am

snmp Script for function fails

Post by gkservice »

I build a script "query_4400_WLAN-Assoc.php" what works perfecly on comandline, but running this within cacti it complains about a missing function

Code: Select all

02/20/2009 04:24:03 PM - CMDPHP: Poller[0] Host[123] PING: ICMP Ping Success (0.663 ms)
02/20/2009 04:24:03 PM - CMDPHP: Poller[0] Host[123] SNMP: Host responded to SNMP
02/20/2009 04:24:03 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "update host set  status = '3',  status_event_count = '0',  status_fail_date = '0000-00-00 00:00:00',  status_rec_date = '0000-00-00 00:00:00',  status_last_error = '',  min_time = '0.86500',  max_time = '50.22450',  cu
r_time = '0.9515',  avg_time = '1.1572465398374',  total_polls = '6150',  failed_polls = '0',  availability = '100'  where hostname = '192.168.4.50'"
02/20/2009 04:24:03 PM - CMDPHP: Poller[0] DEVEL: SQL Assoc: "select     poller_reindex.data_query_id,     poller_reindex.action,     poller_reindex.op,     poller_reindex.assert_value,     poller_reindex.arg1     from poller_reindex     where poller_reindex.host_id=123"
02/20/2009 04:24:03 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "update poller_reindex set assert_value='88069000' where host_id='123' and data_query_id='1' and arg1='.1.3.6.1.2.1.1.3.0'"
02/20/2009 04:24:03 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "update poller_reindex set assert_value='88069000' where host_id='123' and data_query_id='22' and arg1='.1.3.6.1.2.1.1.3.0'"
02/20/2009 04:24:03 PM - PHPSVR: Poller[0] WARNING: Function does not exist
02/20/2009 04:24:03 PM - CMDPHP: Poller[0] Host[123] DS[1240] WARNING: Result from SERVER not valid.  Partial Result: WARNING: Function do
02/20/2009 04:24:03 PM - CMDPHP: Poller[0] Host[123] DS[1240] SERVER: /usr/bin/php5 /usr/share/cacti-0.8.7d/scripts/query_4400_WLAN-Assoc.php 192.168.4.50 krusty_monitor 2, output: WARNING: Function does not exist
02/20/2009 04:24:03 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "insert into poller_output (local_data_id, rrd_name, time, output) values (1240, '', '2009-02-20 16:24:03', 'WARNING: Function does not exist')"
02/20/2009 04:24:03 PM - CMDPHP: Poller[0] Host[123] DS[1232] SNMP: v2: 192.168.4.50, dsname: cisco4400_totalmem, oid: .1.3.6.1.4.1.14179.1.1.5.2.0, output: 253064
What can be the Problem?
Attachments
query_4400_WLAN-Assoc.txt
the script (rename to .php)
(1.62 KiB) Downloaded 122 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This is not a valid script server script. It may be run as a "simple" script (judging from a first glance). See 1st link of my sig for more help and walkthroughs

Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests