Refine your search:

I am hoping to get pinger up and running within windows. Can it work through a proxy?

I have created pinger.conf but within pinger overview I am not getting anything in the drop down list site: it only has "all sites"

guessing it will have a list of the sites you add to the pinger.conf site.

I have restarted splunk and modified the inputs.conf so it looks like:

[script://.\bin\heartbeat.py] interval = 60 index = main sourcetype = sla_heartbeat source = sla_heartbeat disabled = false

What am I missing. Is there a log file I can look into somewhere for more info.

Updated Ok so with the new version of pinger released hours ago I now get errors in the splunkd.log

05-17-2012 10:30:29.195 +1000 ERROR ExecProcessor - message from "python "C:Program FilesSplunketcappspingerbinheartbeat.py"" Traceback (most recent call last): 05-17-2012 10:30:29.195 +1000 ERROR ExecProcessor - message from "python "C:Program FilesSplunketcappspingerbinheartbeat.py"" File "C:Program FilesSplunketcappspingerbinheartbeat.py", line 151, in <module> 05-17-2012 10:30:29.195 +1000 ERROR ExecProcessor - message from "python "C:Program FilesSplunketcappspingerbinheartbeat.py"" print dt.strftime("%Y-%m-%d %H:%M:%S") + " site=" + uselabel + " domain=" + settings["host"] + " resource=" + useresource + " location=" + location + " status=" + code + " connect_time=" + str(cdelta.seconds) + "." + str(cdelta.microseconds) + " request_time=0.0 bytes=0 dns=0.0 prod=" + prod + " ext=" + ext + " message="" + msg + """ 05-17-2012 10:30:29.195 +1000 ERROR ExecProcessor - message from "python "C:Program FilesSplunketcappspingerbinheartbeat.py"" NameError: name 'dt' is not defined 05-17-2012 10:30:29.195 +1000 INFO ExecProcessor - Ran script: python "C:Program FilesSplunketcappspingerbinheartbeat.py", took 10.92 seconds to run, 0 bytes read, exited with code 1

asked 15 May '12, 21:10

ilv2splunk's gravatar image

ilv2splunk
164
accept rate: 0%

edited 16 May '12, 17:39


5 Answers:

OK , did you succeeded in running the script manually via the CLI splunk cmd python .bin\heartbeat.py maybe that will give you some errors to follow on ...

link

answered 15 May '12, 23:20

gooza's gravatar image

gooza
28527
accept rate: 22%

C:\Program Files\Splunk\bin> .\splunk.exe cmd python .\heartbeat.py splunk.exe : No handlers could be found for logger "splunk.clilib.cli_common"

I have searched and found the following: http://splunk-base.splunk.com/answers/38496/43-breaks-the-python-api-searches

That must not be the issue as I still can not run it after following the answer provided.

Thanks for the assistance Gooza I am very much a Splunk noob.

(16 May '12, 15:43) ilv2splunk

Dear gooza I’m working in a research and consulting company Axience, www.axience.com. We are currently conducting a survey among messenger users and would appreciate if you could spend several minutes answering our questions. One lucky respondent will win an iPad (mini). This is not spam – you can approach us directly at gleb.zhukov@axience.com. Please follow this link to for the survey: https://www.surveymonkey.com/s/5KC7T33 Best regards, Axience

(14 Dec '12, 05:37) Axience

Hi! I'm Paul and Pinger is my creation.

I included Windows directions in the README.txt in the app root but I'll paste the net here:

Windows uses different path delimiters from *NIX or Mac.  You must recreate
the scripted input in local/inputs.conf and reverse the direction of the
slashes.  i.e.:

[script://./bin/heartbeat.py]

should become:

[script://.\bin\heartbeat.py]

on Windows ONLY. Be sure that you clone the stanza in inputs.conf and don't
edit the default!

Sorry for the confusion! I'll try to find a way to make that more visible.

Also, the list of sites will populate within one hour. You can run the saved search "pinger_populate_sites" manually if you want it to populate before that. It builds a lookup table to populate the dropdown much more quickly.

link

answered 16 May '12, 22:02

pstout's gravatar image

pstout
36815
accept rate: 14%

edited 16 May '12, 22:12

Hey Paul I read the readme.txt I noted how I put the script in my original message.

Still have not had any luck getting it going have started using webmon instead. I do like the layout of pinger's overview better but just cant get it working or loggin any useful error messages.

(16 May '12, 22:15) ilv2splunk

Ok thanks -- please let me know if you change your mind. More than happy to work with you through the config.

(16 May '12, 22:16) pstout

I traced the issue in your original report from the logfiles. I just posted 2.2 to address this issue -- it is a bug with Pinger introduced in 2.1. Thanks for helping me find it!

link

answered 16 May '12, 23:04

pstout's gravatar image

pstout
36815
accept rate: 14%

edited 16 May '12, 23:05

Dear pstout I’m working in a research and consulting company Axience, www.axience.com. We are currently conducting a survey among messenger users and would appreciate if you could spend several minutes answering our questions. One lucky respondent will win an iPad (mini). This is not spam – you can approach us directly at gleb.zhukov@axience.com. Please follow this link to for the survey: https://www.surveymonkey.com/s/5KC7T33 Best regards, Axience

(14 Dec '12, 05:36) Axience

How do you run saved search "pinger_populate_sites"? I notice with WebMon the saved searches are added as a link in the app portal. I am new to Splunk and exploring some of the features. So I apologize for my ignorance :)

Update: I found it under "Searches and Reports" when clicking "Manager" link at the top right. But it doesn't update the list :P

link

answered 03 Aug '12, 10:48

johnlockie's gravatar image

johnlockie
211
accept rate: 0%

edited 06 Aug '12, 11:20

Dear johnlockie I’m working in a research and consulting company Axience, www.axience.com. We are currently conducting a survey among messenger users and would appreciate if you could spend several minutes answering our questions. One lucky respondent will win an iPad (mini). This is not spam – you can approach us directly at gleb.zhukov@axience.com. Please follow this link to for the survey: https://www.surveymonkey.com/s/5KC7T33 Best regards, Axience

(14 Dec '12, 05:37) Axience

Survey for messengers – Chance to win iPad mini Are you using a messenger such as Skype, Whatsapp, pinger etc.? One lucky respondent will win an iPad (mini)! This is not spam – you can contact us directly: Gleb Zhukov at gleb.zhukov@axience.com. Please follow the link for the survey: https://www.surveymonkey.com/s/5KC7T33

link

answered 14 Dec '12, 05:34

Axience's gravatar image

Axience
9
accept rate: 0%

Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

Asked: 15 May '12, 21:10

Seen: 1,090 times

Last updated: 14 Dec '12, 05:37

Copyright © 2005-2012 Splunk Inc. All rights reserved.