Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upate docs, small fixes and improvements #9

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix formatting
  • Loading branch information
Patrik Majer committed Feb 7, 2016
commit c016b0f55fec4f29fbaa2f0ae392eb94cf32e9ba
20 changes: 10 additions & 10 deletions README-DEBUGGING.md
Original file line number Diff line number Diff line change
@@ -52,13 +52,13 @@ https://github.com/czhujer/Zabbix-Template-Linux-Collectd_libvirt/blob/master/do

## DEBUG

1. install template https://github.com/czhujer/Zabbix-Template-Linux-Collectd_libvirt
* install template https://github.com/czhujer/Zabbix-Template-Linux-Collectd_libvirt

2. check if script collect-libvirt-handler.pl works
* check if script collect-libvirt-handler.pl works

3. uncomment line 45 (print "DEBUG: command: " . $command . " val: " . $val . " \n";)
* uncomment line 45 (print "DEBUG: command: " . $command . " val: " . $val . " \n";)

4. check results ..
* check results ..


~~~
@@ -68,33 +68,33 @@ DEBUG: command: GETVAL instance-00000841/libvirt/virt_cpu_total val: instance-00
2000000
~~~

5. if dont have, download exmaple script for collectd unixsocket communication..
* if dont have, download exmaple script for collectd unixsocket communication..

```
[root@localhost]# wget https://raw.githubusercontent.com/collectd/collectd/master/contrib/cussh.pl
```

6. run example script
* run example script

```
[root@localhost]# ./cussh.pl or ./cussh.pl /var/run/collectd-unixsock
```

7. send command from $command value into cussh shel..
* send command from $command value into cussh shel..

```
cussh> GETVAL instance-00000841/libvirt/virt_cpu_total
ns: 2000000
```

8. check if this number is same as returns collect-libvirt-handler.pl
* check if this number is same as returns collect-libvirt-handler.pl


### DEBUG items name

simillar like a DEBUG

7. run commnad "LISTVAL" in cussh shel..
* run commnad "LISTVAL" in cussh shel..

cussh> LISTVAL

@@ -108,7 +108,7 @@ cussh> LISTVAL
1413985396 instance-00000935/libvirt/virt_vcpu-0
1413985396 instance-00000935/libvirt/virt_vcpu-1

8. modify script collect-libvirt-handler.pl like that, so print to the same things as you see in LISTVAL part...
* modify script collect-libvirt-handler.pl like that, so print to the same things as you see in LISTVAL part...

LINES 21 - 24 is for "cpu_total"