Manage Plugin 0.6.2 for monitoring networks, servers...

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

mcutting wrote:Gilles - I have found that using a "," instead of ";" to seperate email addresses works - please diregard my previous post, although you may want to change the wording in settings.Regds
logical since "," is the separator in thold settings
but ";" should work too, and it does for me...
Last edited by gilles on Mon Apr 23, 2007 11:31 am, edited 1 time in total.
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

mcutting,

can you test this file for the snmp poller ?

please, wait 1/2 minutes before start or stop a service
Attachments
manage_check.php.txt
(23.49 KiB) Downloaded 172 times
Dave96
Posts: 13
Joined: Sat Jan 21, 2006 7:52 pm

Post by Dave96 »

Here is what I get on the Manage tab after adding a host with simple TCP port monitoring.

Anyone know a fix for this?

I'm on Linux, PHP5, MySQL5, cmd.php poller
Attachments
manage2.JPG
manage2.JPG (22.47 KiB) Viewed 20430 times
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Hi Gilles.

I'll check this out and let you know if it works.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Hi Gilles,

I tried the modified poller, but the results are no different:

id : 41 , statut was : prob , method : 0 , result : 140620779
Host : hostname.domain.co.uk (hostname), old uptime is : 140617670, new is : 140620779
+ mail or netsend demande : mcutting@domain.co.uk
+ OK up
+ service gfi languard s.e.l.m. 5.0 alerter agent service , was down -> no change
+ service gfi languard s.e.l.m. 5.0 archiver agent service , was down -> no change
+ service gfi languard s.e.l.m. 5.0 collector agent service , was down -> no change
+ service print spooler , was down -> no change

2007-4-25, at 6:30:58

Putting the poller back to WMI (PERL) or WMI (VBS) makes it work again
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

mcutting, are you ready to debug ?

1- execute a Verbose Query for Win Services
select for exemple Audio Windows

+ Found item [ServiceIndex='Audio Windows'] index: 1.13.65.117.100.105.111.32.87.105.110.100.111.119.115


2- go to Console -> Device Managing -> Devices and enable it for manage


3- execute this in phpmyadmin :

Code: Select all

select data_input_data.value, data_local.snmp_index from data_input_data, data_template_data, data_local, data_template where data_input_data.data_input_field_id=(SELECT distinct(data_input_fields.id) FROM data_input, data_input_fields where data_input.type_id = 6 and data_input_fields.data_input_id=data_input.id and data_input_fields.name='Index Value') and data_input_data.data_template_data_id=data_template_data.id and data_template_data.local_data_id=data_local.id and data_template_data.data_template_id=data_template.id and data_template.name='Win Services' and data_local.host_id='37'
replace data_local.host_id='37' with your id host

output will be like this :
Audio Windows
1.13.65.117.100.105.111.32.87.105.110.100.111.119.115

beware : there is a space at the end of oid


4- execute this in phpmyadmin :

Code: Select all

SELECT * FROM `manage_services` where id='37'
replace id='37' with your id host

output will be like this :
Audio Windows
1.13.65.117.100.105.111.32.87.105.110.100.111.119.115

this is the same oid like before, without a space at the end


this was to see if the oid for the template is the same the plugin will use in the poller
(wmi don't use the oid)


5- execute something like this from cacti script folders :

Code: Select all

php win_services.php <ip> <snmp community> <snmp version> <id host> get servstate <oid>

Code: Select all

php win_services.php 172.22.0.84 public 1 37 get servstate 13.65.117.100.105.111.32.87.105.110.100.111.119.115
the output must be 1 for a service up (ou 0)

beware : the oid must start at the 2nd position (for me, i don't use 1.13.65...)
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Gilles,

Tried the above. All the results seem to check out. However, I am concerned by your statement "beware : the oid must start at the 2nd position (for me, i don't use 1.13.65...)"

Is it a possibility that this is the reason as to why the services are showing as down when using the snmp poller ?

From the cacti log

04/25/2007 09:59:42 AM - CMDPHP: Poller[0] Host[41] DS[822] SERVER: C:\wamp\www\Cacti\scripts\win_services.php win_services hostname.domain.co.uk <snmp_community> 2 41 get servstate 13.80.114.105.110.116.32.83.112.111.111.108.101.114 , output: 1

PHP Output

GFI LANguard S.E.L.M. 5.0 Alerter agent service 47.71.70.73.32.76.65.78.103.117.97.114.100.32.83.46.69.46.76.46.77.46.32.53.46.48.32.65.108.101.114.116.101.114.32.97.103.101.110.116.32.115.101.114.118.105.99.101

GFI LANguard S.E.L.M. 5.0 Archiver agent service 48.71.70.73.32.76.65.78.103.117.97.114.100.32.83.46.69.46.76.46.77.46.32.53.46.48.32.65.114.99.104.105.118.101.114.32.97.103.101.110.116.32.115.101.114.118.105.99.101

GFI LANguard S.E.L.M. 5.0 Collector agent service 49.71.70.73.32.76.65.78.103.117.97.114.100.32.83.46.69.46.76.46.77.46.32.53.46.48.32.67.111.108.108.101.99.116.111.114.32.97.103.101.110.116.32.115.101.114.118.105.99.101

Print Spooler 13.80.114.105.110.116.32.83.112.111.111.108.101.114

Result from SCRIPT

php win_services.php hostname.domain.co.uk <snmp_community> 2 47 get servstate 13.80.114.105.110.116.32.83.112.111.111.108.101.114

1

I'd really like this to work - any ideas ?
Last edited by mcutting on Wed Apr 25, 2007 4:48 am, edited 2 times in total.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

can you give me the result of each step from 1 to 5 ?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

STEP 1

+ Running data query [32].
+ Found type = '6 '[script query].
+ Found data query XML file at 'C:/wamp/www/Cacti/resource/script_server/win_services.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'c:\wamp\php\php.exe -q C:\wamp\www\Cacti\scripts\win_services.php hostname.domain.co.uk <snmp_community> 2 41 index'
+ Executing script query 'c:\wamp\php\php.exe -q C:\wamp\www\Cacti\scripts\win_services.php hostname.domain.co.uk <snmp_community> 2 41 query index'
+ Found item [ServiceIndex='MySQL'] index: 5.77.121.83.81.76
+ Found item [ServiceIndex='Server'] index: 6.83.101.114.118.101.114
+ Found item [ServiceIndex='Themes'] index: 6.84.104.101.109.101.115
+ Found item [ServiceIndex='Event Log'] index: 9.69.118.101.110.116.32.76.111.103
+ Found item [ServiceIndex='IIS Admin'] index: 9.73.73.83.32.65.100.109.105.110
+ Found item [ServiceIndex='Net Logon'] index: 9.78.101.116.32.76.111.103.111.110
+ Found item [ServiceIndex='Telephony'] index: 9.84.101.108.101.112.104.111.110.121
+ Found item [ServiceIndex='WebClient'] index: 9.87.101.98.67.108.105.101.110.116
+ Found item [ServiceIndex='DNS Client'] index: 10.68.78.83.32.67.108.105.101.110.116
+ Found item [ServiceIndex='DHCP Client'] index: 11.68.72.67.80.32.67.108.105.101.110.116
+ Found item [ServiceIndex='Workstation'] index: 11.87.111.114.107.115.116.97.116.105.111.110
+ Found item [ServiceIndex='Nagios Agent'] index: 12.78.97.103.105.111.115.32.65.103.101.110.116
+ Found item [ServiceIndex='SNMP Service'] index: 12.83.78.77.80.32.83.101.114.118.105.99.101
+ Found item [ServiceIndex='Windows Time'] index: 12.87.105.110.100.111.119.115.32.84.105.109.101
+ Found item [ServiceIndex='Plug and Play'] index: 13.80.108.117.103.32.97.110.100.32.80.108.97.121
+ Found item [ServiceIndex='Print Spooler'] index: 13.80.114.105.110.116.32.83.112.111.111.108.101.114
+ Found item [ServiceIndex='Windows Audio'] index: 13.87.105.110.100.111.119.115.32.65.117.100.105.111
+ Found item [ServiceIndex='IPSEC Services'] index: 14.73.80.83.69.67.32.83.101.114.118.105.99.101.115
+ Found item [ServiceIndex='Task Scheduler'] index: 14.84.97.115.107.32.83.99.104.101.100.117.108.101.114
+ Found item [ServiceIndex='Message Queuing'] index: 15.77.101.115.115.97.103.101.32.81.117.101.117.105.110.103
+ Found item [ServiceIndex='Remote Registry'] index: 15.82.101.109.111.116.101.32.82.101.103.105.115.116.114.121
+ Found item [ServiceIndex='Secondary Logon'] index: 15.83.101.99.111.110.100.97.114.121.32.76.111.103.111.110
+ Found item [ServiceIndex='Computer Browser'] index: 16.67.111.109.112.117.116.101.114.32.66.114.111.119.115.101.114
+ Found item [ServiceIndex='Help and Support'] index: 16.72.101.108.112.32.97.110.100.32.83.117.112.112.111.114.116
+ Found item [ServiceIndex='Automatic Updates'] index: 17.65.117.116.111.109.97.116.105.99.32.85.112.100.97.116.101.115
+ Found item [ServiceIndex='COM+ Event System'] index: 17.67.79.77.43.32.69.118.101.110.116.32.83.121.115.116.101.109
+ Found item [ServiceIndex='Protected Storage'] index: 17.80.114.111.116.101.99.116.101.100.32.83.116.111.114.97.103.101
+ Found item [ServiceIndex='Terminal Services'] index: 17.84.101.114.109.105.110.97.108.32.83.101.114.118.105.99.101.115
+ Found item [ServiceIndex='Network Connections'] index: 19.78.101.116.119.111.114.107.32.67.111.110.110.101.99.116.105.111.110.115
+ Found item [ServiceIndex='Logical Disk Manager'] index: 20.76.111.103.105.99.97.108.32.68.105.115.107.32.77.97.110.97.103.101.114
+ Found item [ServiceIndex='Machine Debug Manager'] index: 21.77.97.99.104.105.110.101.32.68.101.98.117.103.32.77.97.110.97.103.101.114
+ Found item [ServiceIndex='OfficeScanNT Listener'] index: 21.79.102.102.105.99.101.83.99.97.110.78.84.32.76.105.115.116.101.110.101.114
+ Found item [ServiceIndex='TCP/IP NetBIOS Helper'] index: 21.84.67.80.47.73.80.32.78.101.116.66.73.79.83.32.72.101.108.112.101.114
+ Found item [ServiceIndex='Cryptographic Services'] index: 22.67.114.121.112.116.111.103.114.97.112.104.105.99.32.83.101.114.118.105.99.101.115
+ Found item [ServiceIndex='SSDP Discovery Service'] index: 22.83.83.68.80.32.68.105.115.99.111.118.101.114.121.32.83.101.114.118.105.99.101
+ Found item [ServiceIndex='System Restore Service'] index: 22.83.121.115.116.101.109.32.82.101.115.116.111.114.101.32.83.101.114.118.105.99.101
+ Found item [ServiceIndex='Error Reporting Service'] index: 23.69.114.114.111.114.32.82.101.112.111.114.116.105.110.103.32.83.101.114.118.105.99.101
+ Found item [ServiceIndex='Message Queuing Triggers'] index: 24.77.101.115.115.97.103.101.32.81.117.101.117.105.110.103.32.84.114.105.103.103.101.114.115
+ Found item [ServiceIndex='Shell Hardware Detection'] index: 24.83.104.101.108.108.32.72.97.114.100.119.97.114.101.32.68.101.116.101.99.116.105.111.110
+ Found item [ServiceIndex='OfficeScan Master Service'] index: 25.79.102.102.105.99.101.83.99.97.110.32.77.97.115.116.101.114.32.83.101.114.118.105.99.101
+ Found item [ServiceIndex='Security Accounts Manager'] index: 25.83.101.99.117.114.105.116.121.32.65.99.99.111.117.110.116.115.32.77.97.110.97.103.101.114
+ Found item [ServiceIndex='System Event Notification'] index: 25.83.121.115.116.101.109.32.69.118.101.110.116.32.78.111.116.105.102.105.99.97.116.105.111.110
+ Found item [ServiceIndex='World Wide Web Publishing'] index: 25.87.111.114.108.100.32.87.105.100.101.32.87.101.98.32.80.117.98.108.105.115.104.105.110.103
+ Found item [ServiceIndex='OfficeScanNT RealTime Scan'] index: 26.79.102.102.105.99.101.83.99.97.110.78.84.32.82.101.97.108.84.105.109.101.32.83.99.97.110
+ Found item [ServiceIndex='Remote Procedure Call (RPC'] index: 27.82.101.109.111.116.101.32.80.114.111.99.101.100.117.114.101.32.67.97.108.108.32.40.82.80.67.41
+ Found item [ServiceIndex='Wireless Zero Configuration'] index: 27.87.105.114.101.108.101.115.115.32.90.101.114.111.32.67.111.110.102.105.103.117.114.97.116.105.111.110
+ Found item [ServiceIndex='DCOM Server Process Launcher'] index: 28.68.67.79.77.32.83.101.114.118.101.114.32.80.114.111.99.101.115.115.32.76.97.117.110.99.104.101.114
+ Found item [ServiceIndex='OfficeScanNT Personal Firewall'] index: 30.79.102.102.105.99.101.83.99.97.110.78.84.32.80.101.114.115.111.110.97.108.32.70.105.114.101.119.97.108.108
+ Found item [ServiceIndex='NT LM Security Support Provider'] index: 31.78.84.32.76.77.32.83.101.99.117.114.105.116.121.32.83.117.112.112.111.114.116.32.80.114.111.118.105.100.101.114
+ Found item [ServiceIndex='Distributed Link Tracking Client'] index: 32.68.105.115.116.114.105.98.117.116.101.100.32.76.105.110.107.32.84.114.97.99.107.105.110.103.32.67.108.105.101.110.116
+ Found item [ServiceIndex='Network Location Awareness (NLA'] index: 32.78.101.116.119.111.114.107.32.76.111.99.97.116.105.111.110.32.65.119.97.114.101.110.101.115.115.32.40.78.76.65.41
+ Found item [ServiceIndex='Remote Access Connection Manager'] index: 32.82.101.109.111.116.101.32.65.99.99.101.115.115.32.67.111.110.110.101.99.116.105.111.110.32.77.97.110.97.103.101.114
+ Found item [ServiceIndex='Application Layer Gateway Service'] index: 33.65.112.112.108.105.99.97.116.105.111.110.32.76.97.121.101.114.32.71.97.116.101.119.97.121.32.83.101.114.118.105.99.101
+ Found item [ServiceIndex='Windows Management Instrumentation'] index: 34.87.105.110.100.111.119.115.32.77.97.110.97.103.101.109.101.110.116.32.73.110.115.116.114.117.109.101.110.116.97.116.105.111.110
+ Found item [ServiceIndex='Windows User Mode Driver Framework'] index: 34.87.105.110.100.111.119.115.32.85.115.101.114.32.77.111.100.101.32.68.114.105.118.101.114.32.70.114.97.109.101.119.111.114.107
+ Found item [ServiceIndex='Distributed Transaction Coordinator'] index: 35.68.105.115.116.114.105.98.117.116.101.100.32.84.114.97.110.115.97.99.116.105.111.110.32.67.111.111.114.100.105.110.97.116.111.114
+ Found item [ServiceIndex='Background Intelligent Transfer Service'] index: 39.66.97.99.107.103.114.111.117.110.100.32.73.110.116.101.108.108.105.103.101.110.116.32.84.114.97.110.115.102.101.114.32.83.101.114.118.105.99.101
+ Found item [ServiceIndex='GFI LANguard S.E.L.M. 5.0 Alerter agent service'] index: 47.71.70.73.32.76.65.78.103.117.97.114.100.32.83.46.69.46.76.46.77.46.32.53.46.48.32.65.108.101.114.116.101.114.32.97.103.101.110.116.32.115.101.114.118.105.99.101
+ Found item [ServiceIndex='GFI LANguard S.E.L.M. 5.0 Archiver agent service'] index: 48.71.70.73.32.76.65.78.103.117.97.114.100.32.83.46.69.46.76.46.77.46.32.53.46.48.32.65.114.99.104.105.118.101.114.32.97.103.101.110.116.32.115.101.114.118.105.99.101
+ Found item [ServiceIndex='GFI LANguard S.E.L.M. 5.0 Collector agent service'] index: 49.71.70.73.32.76.65.78.103.117.97.114.100.32.83.46.69.46.76.46.77.46.32.53.46.48.32.67.111.108.108.101.99.116.111.114.32.97.103.101.110.116.32.115.101.114.118.105.99.101
+ Found item [ServiceIndex='Windows Firewall/Internet Connection Sharing (ICS'] index: 50.87.105.110.100.111.119.115.32.70.105.114.101.119.97.108.108.47.73.110.116.101.114.110.101.116.32.67.111.110.110.101.99.116.105.111.110.32.83.104.97.114.105.110.103.32.40.73.67.83.41
+ Found data query XML file at 'C:/wamp/www/Cacti/resource/script_server/win_services.xml'
+ Found data query XML file at 'C:/wamp/www/Cacti/resource/script_server/win_services.xml'
+ Found data query XML file at 'C:/wamp/www/Cacti/resource/script_server/win_services.xml'
+ Found data query XML file at 'C:/wamp/www/Cacti/resource/script_server/win_services.xml'
+ Found data query XML file at 'C:/wamp/www/Cacti/resource/script_server/win_services.xml'
+ Found data query XML file at 'C:/wamp/www/Cacti/resource/script_server/win_services.xml'
+ Found data query XML file at 'C:/wamp/www/Cacti/resource/script_server/win_services.xml'

STEP 2

(See screenshot)

STEP 3


GFI LANguard S.E.L.M. 5.0 Alerter agent service 47.71.70.73.32.76.65.78.103.117.97.114.100.32.83.46.69.46.76.46.77.46.32.53.46.48.32.65.108.101.114.116.101.114.32.97.103.101.110.116.32.115.101.114.118.105.99.101

GFI LANguard S.E.L.M. 5.0 Archiver agent service 48.71.70.73.32.76.65.78.103.117.97.114.100.32.83.46.69.46.76.46.77.46.32.53.46.48.32.65.114.99.104.105.118.101.114.32.97.103.101.110.116.32.115.101.114.118.105.99.101

GFI LANguard S.E.L.M. 5.0 Collector agent service 49.71.70.73.32.76.65.78.103.117.97.114.100.32.83.46.69.46.76.46.77.46.32.53.46.48.32.67.111.108.108.101.99.116.111.114.32.97.103.101.110.116.32.115.101.114.118.105.99.101

Print Spooler 13.80.114.105.110.116.32.83.112.111.111.108.101.114

STEP 4

41 gfi languard s.e.l.m. 5.0 alerter agent service 47.71.70.73.32.76.65.78.103.117.97.114.100.32.83.46.69.46.76.46.77.46.32.53.46.48.32.65.108.101.114.116.101.114.32.97.103.101.110.116.32.115.101.114.118.105.99.101 up
41 gfi languard s.e.l.m. 5.0 archiver agent service 48.71.70.73.32.76.65.78.103.117.97.114.100.32.83.46.69.46.76.46.77.46.32.53.46.48.32.65.114.99.104.105.118.101.114.32.97.103.101.110.116.32.115.101.114.118.105.99.101 up
41 gfi languard s.e.l.m. 5.0 collector agent service 49.71.70.73.32.76.65.78.103.117.97.114.100.32.83.46.69.46.76.46.77.46.32.53.46.48.32.67.111.108.108.101.99.116.111.114.32.97.103.101.110.116.32.115.101.114.118.105.99.101 up
41 print spooler 13.80.114.105.110.116.32.83.112.111.111.108.101.114

STEP 5

php win_services.php hostname.domain.co.uk <snmp_community> 2 47 get servstate 13.80.114.105.110.116.32.83.112.111.111.108.101.114

1


Let me know if you need anything else.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Dacob9906
Cacti User
Posts: 209
Joined: Tue Apr 03, 2007 1:01 pm
Location: Pullman Washington

Post by Dacob9906 »

I am recieving these errors after I have installed Manage 5.1... When I click on the Manage Tab, I get:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Inetpub\wwwroot\cacti\plugins\Manage\manage_ajax.php on line 349




Notice: Undefined offset: 4 in C:\Inetpub\wwwroot\cacti\plugins\Manage\manage_ajax.php on line 1428

Last poll date :


Legend
Up Waiting Alert Tresholded Down
Host
TCP Port NA NA
Windows Service NA NA
Windows Process NA NA



Powered by PHP Network Managing version 0.5.1 Settings



Notice: Undefined offset: 1 in C:\Inetpub\wwwroot\cacti\plugins\Manage\manage_ajax.php on line 1469

Notice: Undefined offset: 1 in C:\Inetpub\wwwroot\cacti\plugins\Manage\manage_ajax.php on line 1469

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Inetpub\wwwroot\cacti\plugins\Manage\manage_ajax.php on line 1578

Notice: Undefined offset: 1 in C:\Inetpub\wwwroot\cacti\plugins\Manage\manage_ajax.php on line 1595

Notice: Undefined offset: 0 in C:\Inetpub\wwwroot\cacti\plugins\Manage\manage_ajax.php on line 1598

Notice: Undefined offset: 0 in C:\Inetpub\wwwroot\cacti\plugins\Manage\manage_ajax.php on line 1603


In the Cacti Log, I get this:

04/25/2007 04:49:48 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed "select id, name from manage_sites limit 0,50"
04/25/2007 04:49:48 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed "select COUNT(id) from manage_sites"


Not sure why I am getting these, this is just after I installed the plugin, haven't done anything else...

Thanks!!
Jacob Bergman
Pullman School District
jbergman@psd267.wednet.edu

Operating System: winserv 2003
Webserver: IIS 6.0
Cacti: BETA windows installer 1.5 (BSOD2600)
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Dacob,

Looks like you are either some tables missing, or you have not yet defined any sites.

Go to the Manage tab, click settings, then click the Debug link shown at the top of the page. this should tell you what tables are there, and what is missing. If all the tables say ok, try adding a site to see if that resolves your issue.

Judging by the poller date and time being missing, I'd say you have an incomplete table setup.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

mcutting,

please use the original manage_check.php from ver 5.0.1
and replace the function exec_background with this :

Code: Select all

function exec_background($filename, $args = "") {
global $config;
print "\n executing : -".$filename . " " . $args."-\n";	
exec($filename . " " . $args, $output);
print "\n result is : -".$output[0]."-\n";
return $output[0];
}
execute this and tell me your output :

Code: Select all

php manage_check.php snmp 47
Dacob9906
Cacti User
Posts: 209
Joined: Tue Apr 03, 2007 1:01 pm
Location: Pullman Washington

Post by Dacob9906 »

This is the debug info for Manage Plugin. I verified I am missing those tables, but there is no .sql file to import those tables, and I'm not sure how to do it. And I have no idea what those CHAMP things are that are missing?? Thanks!

And oh yeah, I tried to define some sites, but it doesn't seem to save them.
Attachments
ManageTables.JPG
ManageTables.JPG (163.95 KiB) Viewed 20202 times
Last edited by Dacob9906 on Thu Apr 26, 2007 11:07 am, edited 1 time in total.
Jacob Bergman
Pullman School District
jbergman@psd267.wednet.edu

Operating System: winserv 2003
Webserver: IIS 6.0
Cacti: BETA windows installer 1.5 (BSOD2600)
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Gilles,

After 5 snmp polls - no change - the services are still shown as down...

id : 41 , statut was : prob , method : 0 , result : 153053101
Host : hostname.domain.co.uk (hostname), old uptime is : 153048919, new is : 153053101
+ mail or netsend demande : mcutting@domain.co.uk
+ OK up
+ service gfi languard s.e.l.m. 5.0 alerter agent service , was down
executing : -c:/wamp/php/php.exe -q c:/wamp/www/cacti/scripts/win_services.php hostname.domain.co.uk <snmp_community> 2 41 get servstate 47.71.70.73.32.76.65.78.103.117.97.114.100.32.83.46.69.46.76.46.77.46.32.53.46.48.32.65.108.101.114.116.101.114.32.97.103.101.110.116.32.115.101.114.118.105.99.101-

result is : -0-
-> no change
+ service gfi languard s.e.l.m. 5.0 archiver agent service , was down
executing : -c:/wamp/php/php.exe -q c:/wamp/www/cacti/scripts/win_services.php hostname.domain.co.uk <snmp_community> 2 41 get servstate 48.71.70.73.32.76.65.78.103.117.97.114.100.32.83.46.69.46.76.46.77.46.32.53.46.48.32.65.114.99.104.105.118.101.114.32.97.103.101.110.116.32.115.101.114.118.105.99.101-

result is : -0-
-> no change
+ service gfi languard s.e.l.m. 5.0 collector agent service , was down
executing : -c:/wamp/php/php.exe -q c:/wamp/www/cacti/scripts/win_services.php hostname.domain.co.uk <snmp_community> 2 41 get servstate 49.71.70.73.32.76.65.78.103.117.97.114.100.32.83.46.69.46.76.46.77.46.32.53.46.48.32.67.111.108.108.101.99.116.111.114.32.97.103.101.110.116.32.115.101.114.118.105.99.101-

result is : -0-
-> no change
+ service print spooler , was down
executing : -c:/wamp/php/php.exe -q c:/wamp/www/cacti/scripts/win_services.php hostname.domain.co.uk <snmp_community> 2 41 get servstate 13.80.114.105.110.116.32.83.112.111.111.108.101.114-

result is : -0-
-> no change

2007-4-26, at 17:3:9
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Dacob:

Do the following:

1. Drop all MANAGE_ tables from the CACTI database, using the below from phpMyAdmin (execute as SQL - watch out for forum line wrapping)


ALTER TABLE `host` DROP `manage`;
ALTER TABLE `host` DROP `manage_group`;

DROP TABLE `manage_host`;
DROP TABLE `manage_method`;
DROP TABLE `manage_alerts`;
DROP TABLE `manage_host_services`;
DROP TABLE `manage_device_type`;
DROP TABLE `manage_templates`;
DROP TABLE `manage_groups`;
DROP TABLE `manage_services`;
DROP TABLE `manage_process`;

DELETE FROM `plugin_update_info` WHERE `plugin` = 'manage';

DELETE FROM `settings` WHERE `name` = 'manage_poller';
DELETE FROM `settings` WHERE `name` = 'manage_events';
DELETE FROM `settings` WHERE `name` = 'manage_method';
DELETE FROM `settings` WHERE `name` = 'manage_date';
DELETE FROM `settings` WHERE `name` = 'manage_use_patch';
DELETE FROM `settings` WHERE `name` = 'manage_send';
DELETE FROM `settings` WHERE `name` = 'manage_netsend_events';
DELETE FROM `settings` WHERE `name` = 'manage_netsend_method';
DELETE FROM `settings` WHERE `name` = 'manage_list';
DELETE FROM `settings` WHERE `name` = 'manage_list_separator';
DELETE FROM `settings` WHERE `name` = 'manage_full_separator';
DELETE FROM `settings` WHERE `name` = 'manage_simple_separator';
DELETE FROM `settings` WHERE `name` = 'manage_legend';
DELETE FROM `settings` WHERE `name` = 'manage_poller_hosts';

2. Insert the following code into the database, again, using SQL

alter table host add manage char(3) default '' not null after disabled;
CREATE TABLE manage_host ( id mediumint(8) unsigned NOT NULL default '0', uptime bigint(20) default NULL, type mediumint(8) unsigned NOT NULL default '0', services text, statut text);
CREATE TABLE manage_method ( id mediumint(8) unsigned NOT NULL default '0', method text);
CREATE TABLE manage_alerts (idh mediumint(8) unsigned NOT NULL default '0', datetime datetime NOT NULL default '0000-00-00 00:00:00', ids mediumint(8) unsigned default '0', message text, note text, ida mediumint(9) unsigned NOT NULL auto_increment, PRIMARY KEY (ida));
CREATE TABLE manage_host_services ( id mediumint(8) unsigned NOT NULL default '0', services mediumint(8) unsigned NOT NULL default '0', statut text);
INSERT INTO settings VALUES ('manage_events', '5');
INSERT INTO settings VALUES ('manage_poller', '0');
INSERT INTO settings VALUES ('manage_method', '0');
INSERT INTO settings VALUES ('manage_date', '0');
ALTER TABLE manage_host ADD `force` MEDIUMINT(8) unsigned NOT NULL default '9';
CREATE TABLE manage_device_type ( id MEDIUMINT(8) NOT NULL AUTO_INCREMENT , name TEXT, image TEXT, PRIMARY KEY ( id ) );
INSERT INTO manage_device_type VALUES (1, 'Windows 2003 Host', 'win2003.png');
INSERT INTO manage_device_type VALUES (2, 'Windows XP Host', NULL);
INSERT INTO manage_device_type VALUES (3, 'Windows 2000 Host', 'win2000.png');
INSERT INTO manage_device_type VALUES (4, 'Windows NT4 Host', 'winnt.png');
INSERT INTO manage_device_type VALUES (5, 'Windows 9x Host', NULL);
INSERT INTO manage_device_type VALUES (6, 'Linux Host', 'linux.png');
INSERT INTO manage_device_type VALUES (7, 'Router', 'router.png');
INSERT INTO manage_device_type VALUES (8, 'Switch', 'switch.png');
INSERT INTO manage_device_type VALUES (9, 'Other', 'other.png');
CREATE TABLE manage_templates ( id MEDIUMINT(8) NOT NULL auto_increment, name TEXT, tcp_ports TEXT, PRIMARY KEY (id) );
INSERT INTO manage_templates VALUES (1, 'Mail Server (Basic)', '110;25');
INSERT INTO manage_templates VALUES (2, 'Mail Server (Enhanced)', '110;995;25;143;993;80;443');
INSERT INTO manage_templates VALUES (3, 'Switch/Router', '23');
INSERT INTO manage_templates VALUES (4, 'Web Server', '80;443');
INSERT INTO manage_templates VALUES (5, 'Windows 200x Domain Controler', '389');
INSERT INTO manage_templates VALUES (6, 'DNS Server', '53');
alter table manage_host add `group` MEDIUMINT(8) default '0';
CREATE TABLE manage_groups ( id MEDIUMINT(8) NOT NULL auto_increment, name TEXT, PRIMARY KEY (id) );
INSERT INTO manage_groups VALUES (1, 'Test');
CREATE TABLE manage_services ( id MEDIUMINT(8) NOT NULL, name TEXT, oid TEXT, statut TEXT );
CREATE TABLE manage_process ( id MEDIUMINT(8) NOT NULL, name TEXT, tag TEXT, statut TEXT );
ALTER TABLE `manage_alerts` ADD `oid` TEXT;
INSERT INTO settings VALUES ('manage_use_patch', '0');
INSERT INTO settings VALUES ('manage_send', '');
INSERT INTO settings VALUES ('manage_netsend_events', '5');
INSERT INTO settings VALUES ('manage_netsend_method', '1');
INSERT INTO settings VALUES ('manage_list', '0');
INSERT INTO settings VALUES ('manage_list_separator', '25');
INSERT INTO settings VALUES ('manage_full_separator', '6');
INSERT INTO settings VALUES ('manage_simple_separator', '12');
INSERT INTO settings VALUES ('manage_legend', 'on');
INSERT INTO settings VALUES ('manage_poller_hosts', '5');

Give the MANAGE plugin another try. Hopefully, this may help.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests