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

external python scripts don't produce any graph #20

Open
agroszer opened this Issue Dec 19, 2012 · 4 comments

Comments

Projects
None yet
1 participant
@agroszer
Contributor

agroszer commented Dec 19, 2012

Original author: jeanmarc...@gmail.com (April 02, 2011 16:00:59)

What is the expected output? What do you see instead?

I enabled external plugins in python ( mine + diskfree.py) and no graph are produced. munin-update.log shows a lot off

2011/04/02 17:55:01 at /usr/share/perl5/Munin/Master/UpdateWorker.pm line 157
2011/04/02 17:55:01 [ERROR] Error in node communication with ...4949: [FATAL] Socket read timed out to host: alarm

Sniffing port 4949 shows that config order is not followed by fetch

fetch network
down.value 1161515
up.value 1021591
.
config drive_free
graph_title Filesystem free (in %)

graph_category disk

graph_info This graph shows the amount of free space on each disk.

graph_args --upper-limit 100 -l 0

graph_vlabel %

drive_free_c.label C:

.

What version of the product are you using? On what operating system?

munin-node 2.6.1.beta on windows seven sp1 french

thanks for your reply

jean-marc

Original issue: http://code.google.com/p/munin-node-win32/issues/detail?id=15

@agroszer

This comment has been minimized.

Show comment
Hide comment
@agroszer

agroszer Dec 19, 2012

Contributor

From jeanmarc...@gmail.com on April 02, 2011 16:30:27
same behaviour for 1.6.0
using telnel host 4949 is ok. I can fetch values

Contributor

agroszer commented Dec 19, 2012

From jeanmarc...@gmail.com on April 02, 2011 16:30:27
same behaviour for 1.6.0
using telnel host 4949 is ok. I can fetch values

@agroszer

This comment has been minimized.

Show comment
Hide comment
@agroszer

agroszer Dec 19, 2012

Contributor

From jeff.gei...@gmail.com on June 01, 2011 14:10:20
I am seeing the same behavior with a plugin I wrote in AutoIt. Version 1.6.0

[root@munin-host munin]# su - munin -c "/usr/share/munin/munin-update --debug --nofork --host host-redacted --service shares"
<...>
2011/06/01 08:35:01 [DEBUG] Writing to socket: "list HOST-REDACTED
".
2011/06/01 08:35:01 [DEBUG] Reading from socket to host-redacted: "df memory processes network cpu shares disktime processor uptime ".
2011/06/01 08:35:01 [DEBUG] Fetching service configuration for 'shares'
2011/06/01 08:35:01 [DEBUG] Writing to socket: "config shares
".
2011/06/01 08:37:01 [FATAL] Socket read timed out to host-redacted: alarm
2011/06/01 08:37:01
2011/06/01 08:37:01 at /usr/lib/perl5/vendor_perl/5.8.8/Munin/Master/UpdateWorker.pm line 157
2011/06/01 08:37:01 [ERROR] Error in node communication with host-redacted/xx.xx.xx.xx:4949: [FATAL] Socket read timed out to host-redacted: alarm
at /usr/lib/perl5/vendor_perl/5.8.8/Munin/Master/UpdateWorker.pm line 157

[root@munin-host munin]# su - munin -c "telnet xx.xx.xx.xx 4949"
Trying xx.xx.xx.xx...
Connected to host-redacted.xx.xx.xx (xx.xx.xx.xx).
Escape character is '^]'.

munin node at HOST-REDACTED

list
df memory processes network cpu hdd speedfan shares disktime processor uptime
config shares
graph_title Share Status
graph_args -l 0
graph_vlabel Number
graph_category system
lock.label Locked Files
share.label Open Shares
max.warning 1000
max.critical 1200
.
fetch shares
lock.value 245
share.value 92
.
quit
Connection closed by foreign host.

Contributor

agroszer commented Dec 19, 2012

From jeff.gei...@gmail.com on June 01, 2011 14:10:20
I am seeing the same behavior with a plugin I wrote in AutoIt. Version 1.6.0

[root@munin-host munin]# su - munin -c "/usr/share/munin/munin-update --debug --nofork --host host-redacted --service shares"
<...>
2011/06/01 08:35:01 [DEBUG] Writing to socket: "list HOST-REDACTED
".
2011/06/01 08:35:01 [DEBUG] Reading from socket to host-redacted: "df memory processes network cpu shares disktime processor uptime ".
2011/06/01 08:35:01 [DEBUG] Fetching service configuration for 'shares'
2011/06/01 08:35:01 [DEBUG] Writing to socket: "config shares
".
2011/06/01 08:37:01 [FATAL] Socket read timed out to host-redacted: alarm
2011/06/01 08:37:01
2011/06/01 08:37:01 at /usr/lib/perl5/vendor_perl/5.8.8/Munin/Master/UpdateWorker.pm line 157
2011/06/01 08:37:01 [ERROR] Error in node communication with host-redacted/xx.xx.xx.xx:4949: [FATAL] Socket read timed out to host-redacted: alarm
at /usr/lib/perl5/vendor_perl/5.8.8/Munin/Master/UpdateWorker.pm line 157

[root@munin-host munin]# su - munin -c "telnet xx.xx.xx.xx 4949"
Trying xx.xx.xx.xx...
Connected to host-redacted.xx.xx.xx (xx.xx.xx.xx).
Escape character is '^]'.

munin node at HOST-REDACTED

list
df memory processes network cpu hdd speedfan shares disktime processor uptime
config shares
graph_title Share Status
graph_args -l 0
graph_vlabel Number
graph_category system
lock.label Locked Files
share.label Open Shares
max.warning 1000
max.critical 1200
.
fetch shares
lock.value 245
share.value 92
.
quit
Connection closed by foreign host.

@agroszer

This comment has been minimized.

Show comment
Hide comment
@agroszer
Contributor

agroszer commented Dec 19, 2012

@agroszer

This comment has been minimized.

Show comment
Hide comment
@agroszer

agroszer Dec 19, 2012

Contributor

From xq262...@gmail.com on February 21, 2012 17:10:42
I have met same problem before but solved by this tip:
http://munin-monitoring.org/wiki/HowToMonitorWindows

change the open mode of sys.stdout to O_BINARY, in order to prevent windows from rewriting the endline from "\n" to "\r\n"

it seems munin does not like anything like "\r\n"

:)

Contributor

agroszer commented Dec 19, 2012

From xq262...@gmail.com on February 21, 2012 17:10:42
I have met same problem before but solved by this tip:
http://munin-monitoring.org/wiki/HowToMonitorWindows

change the open mode of sys.stdout to O_BINARY, in order to prevent windows from rewriting the endline from "\n" to "\r\n"

it seems munin does not like anything like "\r\n"

:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment