Splunk Search

Unable to retrieve data from Splunk

pratapa
Explorer

Hi,

In our environment Nagios and Splunk are integrated. We configured an alert in Nagios monitoring tool which fetches data from Splunk but in Nagios monitoring tool, it is showing as "UNKNOWN - Error in Application name "wms" ".

The alert is configured in such that it is using the script check_splunk_savedsearch_value.sh and it is taking three arguments.

check_splunk_savedsearch_value.sh -a wms -s "WMOS - EW - Number of Allocation records" -w 1

[root@nagios server]# ./check_splunk_savedsearch_value.sh -a wms -s "WMOS - EW - Number of Allocation records" -w 1
UNKNOWN - no output returned from splunk.ce.corp|"wms:WMOS - EW - Number of Allocation records"=ERROR

When we ran the script in debugging mode, the following command is not returning any output.

[root@nagios server ]# /usr/bin/curl -s -k -u username:password https://splunk.ce.corp:8089/servicesNS/monitor/wms/search/jobs/export -d 'search=savedsearch %22WMOS%20%2d%20EW%20%2d%20Number%20of%20Allocation%20records%22' -d output_mode=csv|sed 1d
[root@nagios server]#

What could be the reason.

We see that Splunk forwarder is not installed on Nagios Production server. Is Splunk forwarder needs to be installed on Nagios production server.

0 Karma

nickhills
Ultra Champion

Does the saved search "WMOS - EW - Number of Allocation records" exist on that search head, and does the user invoking the Rest API call have permission to view it?

If my comment helps, please give it a thumbs up!
0 Karma

pratapa
Explorer

Yes, the saved search "WMOS - EW - Number of Allocation records" is existing. When we click on "Edit Permissions" under "More Info" we see that only monitor is having read permissions.

Following is the output of the saved search in Splunk GUI.

WMOS - EW - Number of Allocation records
WMOS - EW - Number of Allocation records

Error in 'script': Getinfo probe failed for external search command 'dbquery'
The search job has failed due to an error. You may be able view the job in the Job Inspector.

alt text

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Monitoring AI Agents with Splunk Observability Cloud

Let’s say I’m running a travel planning AI app in production. A user asks for three concise hotel options in ...

[Puzzles] Solve, Learn, Repeat: Tiling

This puzzle (first published here) is based on finding groups of tessellated tiles (inspired by floor tiles I ...

SOK it to Me: Top 3 Benefits of Using Splunk Operator on Kubernetes that’ll Make ...

    Thursday, July 9, 2026  |  11:00AM–12:00PM PDT Duration: 1 hour (includes Q&A) Managing can feel like a ...