Discovery rules errors
- Dominant language
- PowerShell
- Stars
- 165
- Forks
- 251
- PR merge metrics
- No merged PRs in 30d
Description
Invalid discovery rule value: cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'The argument 'C:\Program Files\zabbix-agent\scripts\os_windows_active.ps1' to the -File parameter does not exist. Provide the path to an existing '.ps1
Invalid discovery rule value: cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: '#< CLIXML
{
"data":[
{ "{#DISKNUMLET}" : "0 C:" },
{ "{#DISKNUMLET}" : "1 F:" },
{ "{#DISKNUMLET}" : "2 D:" },
{ "{#DISKNUMLET}" : "3" },
{ "{#DISKN
Invalid discovery rule value: cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'The argument 'C:\Program Files\zabbix-agent\scripts\os_windows_active.ps1' to the -File parameter does not exist. Provide the path to an existing '.ps1
Invalid discovery rule value: cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'The argument 'C:\Program Files\zabbix-agent\scripts\os_windows_active.ps1' to the -File parameter does not exist. Provide the path to an existing '.ps1
Windows Physical Disk IOPS: Discover PhysicalDisk | Item prototypes 10 | Trigger prototypes 2 | Graph prototypes 3 | Host prototypes | system.run[%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -executionpolicy ByPass -nologo -EncodedCommand {$DISCOVERDISK1}{$DISCOVERDISK2}{$DISCOVERDISK3}{$DISCOVERDISK4}{$DISCOVERDISK5}] | 1d | Zabbix agent (active) | Not supported |
-- | -- | -- | -- | -- | -- | -- | -- | -- | --
| Template OS Windows Active (itmicus.ru): Logical Disk discover | Item prototypes 7 | Trigger prototypes 5 | Graph prototypes 2 | Host prototypes | os.windows.active[discover,ldisk] | 1d | Zabbix agent (active) | Not supported |
| Template OS Windows Active (itmicus.ru): Network Interface discover | Item prototypes 9 | Trigger prototypes 5 | Graph prototypes 2 | Host prototypes | os.windows.active[discover,pnetwork] | 1d | Zabbix agent (active) | Not supported |
| Template OS Windows Active (itmicus.ru): Physical Disk discover | Item prototypes 5 | Trigger prototypes 2 | Graph prototypes 3 | Host prototypes | os.windows.active[discover,pdisk] | 1d | Zabbix agent (active) | Not supported
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the Template OS Windows Active discovery rules and the os_windows_active.ps1 script referenced in the error output. Check the Windows discovery entry points for logical disks, physical disks, and network interfaces, then verify that each produces valid JSON and no longer reports the script path or discovery-rule parsing errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- observability-sre
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100