Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Once you verify that the script is in your poller cache, note the host_id for the host and then run turn logging to MEDIUM and run the following from a command prompt as an Administrator account.
As I suspected, it appears you have not set the correct permissions on cmd.exe. The log reveals the the NETWORK SERVICE account is denied launching it. Nor do I see anywhere in that log of perl attempting to execute "myscript.pl".
After I gave permissions on NETWORK SERVICE Account to cmd.exe file there was not any improvement. Also I noticed that my dummy host is DOWN. My colleague was changed 10 days ago the DOWNED HOST DETECTION METHOD to "PING and SNMP" as most recommended. I changed it to SNMP Reliable. When device went UP the RRD files of my data source appeared in RRA directory. After creating the Graphs I saw that everything works fine.
I want to thank for their spent time of BSOD2600 and TheWitness.
I decided to switch back the poller method to CACTID.
After one poll interval there was a gap on my graphs and in cacti log i saw the 'Empty result....' error.
I gave the Network Service Account permissions for read&execute of CACTID.EXE, but nothing is cahanged.
Also I used full path to perl.exe i.e 'c:/perl/bin/perl.exe...' in my Data Input Methods and I have rebuilt the Poller Cache, but again nothing is changed.
Any ideas ?
I followed step-by-step troubleshooting but nothings changed at all. I still have 'Empty result...' error. I gave the network srvice account permissions for cactid.exe, cactid.conf (they are in c:\cygwin\bin folder).
Also gave permissions for the whole c:\perl folder.
Is there any other account that I should give permissions of these files ?
Probably not, but can't say for sure until you've ran Filemon.
Once you verify that the script is in your poller cache, note the host_id for the host and then run turn logging to MEDIUM and run the following from a command prompt as an Administrator account.
After some researches in source code of cactid I realized, that when the poller is cactid and the host is not snmp enabled (snmp not in use) cactid does not poll the host. There is much sense in that, because when the the host is down according to the snmp there is no need to poll it. I had to change the host ip to a fake ip with snmp enabled to let the cactid poll the host and start the perl script.
Consider this topic as SOLVED.