I have this munin plugin:
#!/bin/sh
if [ "$1" = "autoconf" ]; then
# Test for requirements, and return "yes" if met, "no" if not met
echo "yes"
exit 0
fi
if [ "$1" = "config" ]; then
echo "graph_title xrdp process count"
echo "graph_vlabel count"
echo "graph_category processes"
echo "graph_info This graph shows the count of xrdp processes"
echo "my_proc_count_dummy_var.label count"
exit 0
fi
echo "my_proc_count_dummy_var.value $(pgrep -f -a xrdp | grep -c -e 'xrdp$')"
The problem is that it doesn't show output as integer , it's a counter but I have values that are not correct on the graphs and makes not sense.
For example:
I read some faq about integer/float values on munin and looked other solution based on other plugins, for example the psu_
plugin where the output is correct but I was not able to resolve the problem.
Maybe I need to delete (or in some way regenerate) the old data?
Thanks for the help