Code: Select all
command_line $USER1$/check_by_ssh -z -E -S -t 20 -H $HOSTADDRESS$ -C "/usr/local/nagios/libexec/check_watchque"
Code: Select all
command_line $USER1$/check_by_ssh -z -E -t 20 -H $HOSTADDRESS$ -C "/usr/local/nagios/libexec/check_watchque"
Then edit the /usr/local/nagios/libexec/check_watchque on the remote system and change this line from
Code: Select all
MsgRate=`/bin/cat /tmp/watchqueue_1.txt | /bin/grep 'Total UDP Messages' | /bin/awk '{print $9}' | /bin/sed 's/(//g'`
Code: Select all
MsgRate=`/bin/cat /tmp/watchqueue_1.txt | /bin/grep 'Total UDP Messages' | /bin/awk '{print $9}' | /bin/sed 's/\x1b[\[(0-9a-zA-Z;]*//g'`
If the plugin returns valid data and also valid performance data, You can check that by selecting the service from the GUI, then the graph should start to populate.
With all of the changes, you may have to delete the .xml and .rrd files so the graph will rebuild itself with valid data.