Search found 4 matches

by Cybergod
Tue Sep 25, 2007 2:49 pm
Forum: Scripts and Templates
Topic: Monitor Windows Services from Linux Cacti
Replies: 27
Views: 31110

I installed the nsclient on my windows xp test box and ran the following command from my cacti server: /usr/bin/perl /usr/local/cacti/scripts/windows_chk.pl jho Which gave me the following: snmp:1 dns:0.2 wins:0.2 spoolsv:1 dhcp:0.2 However when i go to my graphs i dont have any data and i get "...
by Cybergod
Tue Sep 25, 2007 12:19 pm
Forum: Scripts and Templates
Topic: Monitor Windows Services from Linux Cacti
Replies: 27
Views: 31110

I deleted the windows_chk.pl file and transferred it from my windows machine, instead of creating the file and pasting the contents.
That seems to have fixed the error. When i run the command now i get:

snmp:0.2 dns:0.2 wins:0.2 spoolsv:0.2 dhcp:0.2 :0.2 :0.2 :0.2 :0.2
by Cybergod
Tue Sep 25, 2007 11:37 am
Forum: Scripts and Templates
Topic: Monitor Windows Services from Linux Cacti
Replies: 27
Views: 31110

The script is: #!/usr/bin/perl # Decalare some variables $Debug = "1"; # Set this to 0 for Cacti after debugging complete for Cacti to function correctly! $CheckNTPath='/usr/local/nagios/libexec'; $Services = "snmp.exe,dns.exe,wins.exe,spoolsv.exe,tcpsvcs.exe"; $ServiceName = &qu...
by Cybergod
Tue Sep 25, 2007 11:27 am
Forum: Scripts and Templates
Topic: Monitor Windows Services from Linux Cacti
Replies: 27
Views: 31110

I'm very new to the world of Cacti and have a small problem. When I run "/usr/bin/perl /usr/local/cacti/scripts/windows_chk.pl" I get the output below? sh: line 1: snmp.exe,dns.exe,wins.exe,spoolsv.exe,tcpsvcs.exe: command not found snmp:0.2 dns:0.2 wins:0.2 spoolsv:0.2 dhcp:0.2 :0.2 :0.2 ...