Splunk AppDynamics

Github Backup monitoring

CommunityUser
Splunk Employee
Splunk Employee

Hi,

I want to monitor backup of onpremise Github Enterprise using backup-util

https://github.com/github/backup-utils

I want to use AppD monitoring extension using scripts

https://docs.appdynamics.com/display/PRO44/Build+a+Monitoring+Extension+Using+Scripts

Can someone provide me sample script already created for monitoring extension using scripts.

Labels (1)
0 Karma
1 Solution

Bhuvnesh_Kumar
Explorer

Hi Vaibhav,

Please make sure that your metrics start with Custom Metrics in the beginning, and the values return a numerical value.

name="Custom Metrics|GHEBackup|backupStatus,value="$backupStatus
name="Custom Metrics|GHEBackup|backupDuration,value="$backupDuration

Thanks,

Bhuvnesh

View solution in original post

0 Karma

Bhuvnesh_Kumar
Explorer

Hi Vaibhav,

You can use the example listed here. The script here gets some values, and returns them following the requirements listed in the documentation so that they can be picked up by the Machine Agent and sent to the controller. You can modify this script to meet your requirements. The documentation has all the details that you would need to create/modify that script. 

Please let us know if you have any other questions regarding this.

Thanks,

Bhuvnesh

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi Bhuvnesh,

My check_backup.sh echo's below

echo "name=GHEBackup|backupStatus,value="$backupStatus
echo "name=GHEBackup|backupDuration,value="$backupDuration

And my monitor.xml does a periodic run of the my script. After restarting agent, I see in monitor-agent.log that my script runs periodically. But in metric browser I dont see the custom metrics yet. Please point where if I am wrong.

<monitor-run-task>
<execution-style>periodic</execution-style>
<execution-frequency-in-seconds>60</execution-frequency-in-seconds>
<name>Run</name>
<type>executable</type>
<task-arguments>
</task-arguments>
<executable-task>
<type>file</type>
<file os-type="linux">check_backup.sh</file>
 
</executable-task>
</monitor-run-task>
0 Karma

Bhuvnesh_Kumar
Explorer

Hi Vaibhav,

Please make sure that your metrics start with Custom Metrics in the beginning, and the values return a numerical value.

name="Custom Metrics|GHEBackup|backupStatus,value="$backupStatus
name="Custom Metrics|GHEBackup|backupDuration,value="$backupDuration

Thanks,

Bhuvnesh

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...