Draw graph based on bash script
Posted: Tue May 23, 2017 7:43 am
Hello everyone,
I'm a new in Nagios XI, but i decided to use it to monitor my server environment, mainly windows.
I have a small bash script which uses windows performance counter to monitor network usage. the script convert bytes to Mbps.
#########################
!The SCRIPT
#!/bin/bash
#computer name $1
# Secure, password
value=`/usr/local/nagios/libexec/check_nt -H $1-p 12489 -s $2-v COUNTER -l "\network interface(*)\bytes total/sec"`
echo "scale=2; $value*0.000008" | bc
exit $exitcode
#########################
The QUESTION is: why Nagios XI does not draw graphs?
I'm a new in Nagios XI, but i decided to use it to monitor my server environment, mainly windows.
I have a small bash script which uses windows performance counter to monitor network usage. the script convert bytes to Mbps.
#########################
!The SCRIPT
#!/bin/bash
#computer name $1
# Secure, password
value=`/usr/local/nagios/libexec/check_nt -H $1-p 12489 -s $2-v COUNTER -l "\network interface(*)\bytes total/sec"`
echo "scale=2; $value*0.000008" | bc
exit $exitcode
#########################
The QUESTION is: why Nagios XI does not draw graphs?