Hi, can someone help me to create a easy Pers or Shell script to make the same like:
check_snmp -H $HOSTADDRESS$ -o 1.3.6.1.4.1.6302.2.1.2.2.0 -C public -u mV -l OutPower -w 48000:40000 -c 39999:0
BUT the Outpower must be in V (not in mV like the Output from the check_snmp plugin)
I neet a 1:1000 Output
THANKS:)
HELP -easy perl script-
Re: HELP -easy perl script-
Can you show us an example of the script being run from the command line and the output it currently shows?
Former Nagios employee
Re: HELP -easy perl script-
In perl you can easily divide your variable like this:
Code: Select all
$output_V=$output_mV/1000;
Rob Hassing
Re: HELP -easy perl script-
Thanks Rob!
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.